Lines 2-7
Link Here
|
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: /var/cvsroot/gentoo-x86/net-p2p/xmule/xmule-1.8.2-r2.ebuild,v 1.2 2004/06/04 01:30:08 squinky86 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/xmule-1.8.2-r2.ebuild,v 1.2 2004/06/04 01:30:08 squinky86 Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit eutils |
6 |
|
5 |
MY_P=${P}c |
7 |
MY_P=${P}c |
6 |
S=${WORKDIR}/${PN} |
8 |
S=${WORKDIR}/${PN} |
7 |
|
9 |
|
Lines 16-24
Link Here
|
16 |
IUSE="nls" |
18 |
IUSE="nls" |
17 |
|
19 |
|
18 |
DEPEND=">=x11-libs/wxGTK-2.4.2 |
20 |
DEPEND=">=x11-libs/wxGTK-2.4.2 |
|
|
21 |
dev-libs/crypto++ |
19 |
nls? ( sys-devel/gettext ) |
22 |
nls? ( sys-devel/gettext ) |
20 |
>=sys-libs/zlib-1.2.1" |
23 |
>=sys-libs/zlib-1.2.1" |
21 |
|
24 |
|
|
|
25 |
RSCDIR=/usr/lib/${PN}/resource #resource directory |
26 |
|
22 |
pkg_setup() { |
27 |
pkg_setup() { |
23 |
# FIXME: Is this really how we want to do this ? |
28 |
# FIXME: Is this really how we want to do this ? |
24 |
GREP=`grep ' unicode' /var/db/pkg/x11-libs/wxGTK*/USE` |
29 |
GREP=`grep ' unicode' /var/db/pkg/x11-libs/wxGTK*/USE` |
Lines 33-38
Link Here
|
33 |
src_unpack() { |
38 |
src_unpack() { |
34 |
unpack ${A} |
39 |
unpack ${A} |
35 |
cd ${S} |
40 |
cd ${S} |
|
|
41 |
epatch ${FILESDIR}/${PF}-gcc-3.4.patch || die "Failed to patch" |
36 |
sed -i 's/@datadir@/${DESTDIR}@datadir@/' Makefile.in |
42 |
sed -i 's/@datadir@/${DESTDIR}@datadir@/' Makefile.in |
37 |
} |
43 |
} |
38 |
|
44 |
|
Lines 42-53
Link Here
|
42 |
use nls \ |
48 |
use nls \ |
43 |
|| myconf="${myconf} --disable-nls" |
49 |
|| myconf="${myconf} --disable-nls" |
44 |
|
50 |
|
45 |
myconf="${myconf} --with-zlib=/tmp/zlib/" |
51 |
myconf="${myconf} --with-zlib=/tmp/zlib/ --enable-cryptopp" |
46 |
|
52 |
|
47 |
econf ${myconf} || die |
53 |
econf ${myconf} || die |
48 |
MAKEOPTS="${MAKEOPTS} -j1" emake || die |
54 |
MAKEOPTS="${MAKEOPTS} -j1" emake || die |
49 |
} |
55 |
} |
50 |
|
56 |
|
51 |
src_install () { |
57 |
src_install () { |
|
|
58 |
dodir ${RSCDIR} |
59 |
fperms 755 ${RSCDIR} |
60 |
insinto ${RSCDIR} |
61 |
doins ${S}/src/resource/* |
52 |
einstall mkinstalldirs=${S}/mkinstalldirs DESTDIR=${D} || die |
62 |
einstall mkinstalldirs=${S}/mkinstalldirs DESTDIR=${D} || die |
53 |
} |
63 |
} |
|
|
64 |
pkg_postinst() { |
65 |
einfo "" |
66 |
einfo "If you are upgrade from xmule-1.8.2-r2" |
67 |
einfo "please do: cp -a $RSCDIR/*.pm ~/.xMule" |
68 |
einfo "before running this program next time." |
69 |
einfo "" |
70 |
} |