|
Lines 8-23
Link Here
|
| 8 |
LICENSE="GPL-2" |
8 |
LICENSE="GPL-2" |
| 9 |
SLOT="0" |
9 |
SLOT="0" |
| 10 |
KEYWORDS="~x86" |
10 |
KEYWORDS="~x86" |
| 11 |
IUSE="" |
11 |
IUSE="gtk gtk2 tcltk" |
| 12 |
|
12 |
|
| 13 |
DEPEND="|| ( >=x11-base/xfree-4.3.0-r6 x11-base/xorg-x11 )" |
13 |
RDEPEND="|| ( >=x11-base/xfree-4.3.0-r6 x11-base/xorg-x11 ) |
|
|
14 |
gtk? ( |
| 15 |
gtk2? ( >=x11-libs/gtk+-2 ) : ( =x11-libs/gtk-1.2* ) |
| 16 |
) |
| 17 |
tcltk? ( dev-lang/tcl dev-lang/tk ) |
| 18 |
sys-libs/ncurses" |
| 19 |
DEPEND="${RDEPEND} |
| 20 |
sys-devel/libtool |
| 21 |
dev-util/pkgconfig" |
| 14 |
|
22 |
|
| 15 |
pkg_setup() { |
23 |
pkg_setup() { |
| 16 |
if [ ! "`grep sdk /var/db/pkg/x11-base/xfree-[0-9]*/USE`" ] |
24 |
if has_version ">=x11-base/xfree-4.3.0-r6" |
| 17 |
then |
25 |
then |
| 18 |
eerror "This package builds against the XFree86 SDK, and therefore requires" |
26 |
if [ ! "`grep sdk /var/db/pkg/x11-base/xfree-[0-9]*/USE`" ] |
| 19 |
eerror "that you have emerged xfree with the sdk USE flag enabled." |
27 |
then |
| 20 |
die "Please remerge xfree with the sdk USE flag enabled." |
28 |
eerror "This package builds against the XFree86 SDK, and therefore requires" |
|
|
29 |
eerror "that you have emerged xfree with the sdk USE flag enabled." |
| 30 |
die "Please remerge xfree with the sdk USE flag enabled." |
| 31 |
fi |
| 32 |
else |
| 33 |
if [ ! "`grep sdk /var/db/pkg/x11-base/xorg-x11-[0-9]*/USE`" ] |
| 34 |
then |
| 35 |
eerror "This package builds against the X.Org SDK, and therefore requires" |
| 36 |
eerror "that you have emerged xorg-x11 with the sdk USE flag enabled." |
| 37 |
die "Please remerge xorg-x11 with the sdk USE flag enabled." |
| 38 |
fi |
| 21 |
fi |
39 |
fi |
| 22 |
} |
40 |
} |
| 23 |
|
41 |
|
|
Lines 31-38
Link Here
|
| 31 |
} |
49 |
} |
| 32 |
|
50 |
|
| 33 |
src_compile() { |
51 |
src_compile() { |
| 34 |
myconf="--enable-wacomdrv --enable-wacomdrvv3 --with-xf86=/usr/X11R6/lib/Server \ |
52 |
if [ `use gtk` ]; |
| 35 |
--with-xf86v3=/usr/X11R6/lib/Server" |
53 |
then |
|
|
54 |
if [ `use gtk2` ]; |
| 55 |
then |
| 56 |
withgtk="--with-gtk=2.0" |
| 57 |
else |
| 58 |
withgtk="--with-gtk=1.2" |
| 59 |
fi |
| 60 |
else |
| 61 |
withgtk="--with-gtk=no" |
| 62 |
fi |
| 63 |
if [ `use tcltk` ]; |
| 64 |
then |
| 65 |
withtcltk="--with-tcl --with-tk" |
| 66 |
else |
| 67 |
withtcltk="--without-tcl --without-tk" |
| 68 |
fi |
| 69 |
|
| 70 |
myconf="--enable-wacomdrv --with-xf86=/usr/X11R6/lib/Server $withgtk $withtcltk" |
| 36 |
econf ${myconf} || die "configure failed." |
71 |
econf ${myconf} || die "configure failed." |
| 37 |
|
72 |
|
| 38 |
# Makefile fix for build against SDK |
73 |
# Makefile fix for build against SDK |
|
Lines 48-51
Link Here
|
| 48 |
|
83 |
|
| 49 |
src_install() { |
84 |
src_install() { |
| 50 |
emake DESTDIR=${D} install || die "Install failed." |
85 |
emake DESTDIR=${D} install || die "Install failed." |
|
|
86 |
dohtml -r docs/* |
| 87 |
dodoc AUTHORS ChangeLog NEWS README |
| 51 |
} |
88 |
} |