blob: c9008dcd21570380c31d0b75972b35983e452bfa (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.0_rc3.ebuild,v 1.6 2004/07/02 20:26:25 squinky86 Exp $
MY_P=${P/m/M}
MY_P=${MY_P/_/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="aNOTHER wxWindows based eMule P2P Client"
HOMEPAGE="http://www.amule.org"
SRC_URI="http://download.berlios.de/${PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
# this is a release candidate- do not put in the stable tree yet
KEYWORDS="~x86 ~amd64"
IUSE="debug nls stats remote"
RESTRICT="nomirror"
EXTRA_ECONF="--disable-optimise"
# optimizations disabled for better stability
# new USE "noamulestats" disables aMule GUI statistics (wxCas) (require gd)
# new USE "noamuleremote" disables remote control utilities: webserver,
# web client, amulecmd text client
DEPEND=">=x11-libs/wxGTK-2.4.2
>=net-misc/curl-7.11.0
>=dev-libs/crypto++-5.1
>=sys-libs/zlib-1.2.1
stats? ( >=media-libs/gd-2.0.22 )"
pkg_setup() {
# GTK2 is unstable and not supported by aMule developers
if wx-config --cppflags | grep gtk2 >& /dev/null; then
einfo "Compiling ${PN} against wxGTK2 is not supported."
die "wxGTK must be re-emerged with USE=-gtk2."
fi
# aMule doesn't compile against unicoded wxGTK at all.
if wx-config --cppflags | grep gtk2u >& /dev/null; then
einfo "${PN} will not build if wxGTK was compiled"
einfo "with unicode support. If you are using a version of"
einfo "wxGTK <= 2.4.2, you must set USE=-gtk2. In newer versions,"
einfo "you must set USE=-unicode."
die "wxGTK must be re-emerged without unicode suport"
fi
}
src_compile() {
use remote || EXTRA_ECONF="${EXTRA_ECONF} --disable-amulecmd \
--disable-amulecmdgui \
--disable-webserver \
--disable-webservergui" \
|| EXTRA_ECONF="${EXTRA_ECONF} --enable-amulecmd \
--enable-amulecmdgui \
--enable-webserver \
--enable-webservergui"
#workaround for broken configure (doesn't recognize --enable-wxcas)
use stats || EXTRA_ECONF="${EXTRA_ECONF} --disable-wxcas"
econf `use_enable nls` \
`use_enable debug` || die
emake -j1 || die
}
src_install() {
make DESTDIR=${D} install || die
}
|