blob: 4bf50d1c45c4c4fae8bdc92db60345c03428112e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Joe Bormolini <lordjoe@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/bbkeys/bbkeys-0.3.6-r1.ebuild,v 1.2 2001/08/15 19:27:50 lordjoe Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="bbkeys"
SRC_URI="http://movingparts.thelinuxcommunity.org/bbkeys/${A}"
HOMEPAGE="http://movingparts.thelinuxcommunity.org"
DEPEND=">=x11-wm/blackbox-0.61 qt? ( >=x11-libs/qt-x11-2.3.0 )"
src_compile() {
if [ "`use qt`" ] ; then
cd ${S}/bbkeysconf-1.3
local qtdir=${QTDIR}
try make MOC=${qtdir}/bin/moc CXXFLAGS="-I${qtdir}/include" LIBS="-L${qtdir}/lib -L/usr/X11R6/lib -lqt -lX11"
fi
cd ${S}
try ./configure --prefix=/usr/X11R6 --host=${CHOST}
try emake
}
src_install () {
if [ "`use qt`" ] ; then
cd ${S}/bbkeysconf-1.3
into /usr/X11R6
dobin bbkeysconf
fi
cd ${S}
try make DESTDIR=${D} install
cd /usr/X11R6/bin/wm
cp blackbox blackbox.bak
sed -e s:.*blackbox:"exec /usr/X11R6/bin/bbkeys \&\n&": blackbox.bak > blackbox
}
|