Lines 1-8
Link Here
|
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /home/cvsroot/gentoo-x86/dev-util/documancer/documancer-0.1.7.ebuild,v 1.2 2003/09/06 08:39:20 msterret Exp $ |
3 |
# $Header$ |
4 |
|
4 |
|
5 |
S=${WORKDIR}/${P} |
5 |
inherit python |
|
|
6 |
|
7 |
IUSE="" |
6 |
DESCRIPTION="Programmer's documentation reader with very fast fulltext searching" |
8 |
DESCRIPTION="Programmer's documentation reader with very fast fulltext searching" |
7 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
8 |
HOMEPAGE="http://documancer.sourceforge.net" |
10 |
HOMEPAGE="http://documancer.sourceforge.net" |
Lines 10-42
Link Here
|
10 |
SLOT="0" |
12 |
SLOT="0" |
11 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
12 |
|
14 |
|
13 |
DEPEND=">=net-www/mozilla-1.0 |
15 |
RDEPEND=">=x11-libs/wxmozilla-0.5.2 |
14 |
>=x11-libs/gtk+-2.0 |
16 |
>=net-www/mozilla-1.3 |
15 |
>=dev-lang/python-2.1 |
17 |
>=dev-lang/python-2.2 |
|
|
18 |
>=dev-python/wxPython-2.4.0 |
16 |
>=net-www/swish-e-2.2.2 |
19 |
>=net-www/swish-e-2.2.2 |
17 |
dev-lang/perl |
20 |
dev-lang/perl |
18 |
net-misc/wget" |
21 |
net-misc/wget" |
19 |
|
22 |
|
20 |
pkg_setup () { |
23 |
pkg_setup () { |
21 |
if [ ! -f ${ROOT}/usr/lib/mozilla/components/libwidget_gtk2.so ] |
24 |
# Note: can't use "python_mod_exists wxPython.mozilla" here because |
|
|
25 |
# it doesn't work (some strange import stuff in wxPython) |
26 |
python_version |
27 |
if [ ! -f /usr/lib/python${PYVER}/site-packages/wxPython/mozilla.py ] |
22 |
then |
28 |
then |
23 |
eerror "you need mozilla-1.3_beta compiled against gtk+-2" |
29 |
eerror "you need wxmozilla compiled with Python module:" |
24 |
eerror "export USE=\"gtk2\" ;emerge mozilla -p " |
30 |
eerror "export USE=\"python\" ;emerge wxmozilla -p " |
25 |
die "Need Mozilla compiled with gtk+-2.0!!" |
31 |
die "Need wxMozilla compiled with Python module!" |
26 |
fi |
32 |
fi |
27 |
} |
33 |
} |
28 |
|
34 |
|
29 |
src_compile() { |
35 |
src_compile() { |
30 |
cd ${S} |
36 |
econf || die "configure failed" |
31 |
./autogen.sh |
37 |
emake || die "make failed" |
32 |
./configure --enable-gtk2 --prefix=/usr || die |
|
|
33 |
emake || die |
34 |
} |
38 |
} |
35 |
|
39 |
|
36 |
src_install () { |
40 |
src_install () { |
37 |
make prefix=${D}/usr \ |
41 |
make install DESTDIR=${D} || die |
38 |
install || die |
|
|
39 |
cp ${FILESDIR}/documancer.backend ${D}/usr/bin/ |
40 |
|
42 |
|
41 |
dodoc AUTHORS Hacking.txt COPYING FAQ NEWS README TODO |
43 |
dodoc AUTHORS COPYING FAQ NEWS README TODO |
42 |
} |
44 |
} |