Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/amule: ChangeLog amule-2.2.3.ebuild
Date: Tue, 30 Dec 2008 11:43:39
Message-Id: E1LHd0a-0007b8-U3@stork.gentoo.org
1 armin76 08/12/30 11:43:36
2
3 Modified: ChangeLog
4 Added: amule-2.2.3.ebuild
5 Log:
6 Version bump wrt #2525838
7 (Portage version: 2.1.4.5)
8
9 Revision Changes Path
10 1.122 net-p2p/amule/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?rev=1.122&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?rev=1.122&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?r1=1.121&r2=1.122
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v
19 retrieving revision 1.121
20 retrieving revision 1.122
21 diff -u -r1.121 -r1.122
22 --- ChangeLog 27 Nov 2008 20:45:24 -0000 1.121
23 +++ ChangeLog 30 Dec 2008 11:43:36 -0000 1.122
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-p2p/amule
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.121 2008/11/27 20:45:24 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.122 2008/12/30 11:43:36 armin76 Exp $
29 +
30 +*amule-2.2.3 (30 Dec 2008)
31 +
32 + 30 Dec 2008; Raúl Porcel <armin76@g.o> +amule-2.2.3.ebuild:
33 + Version bump wrt #2525838
34
35 27 Nov 2008; Raúl Porcel <armin76@g.o> -amule-2.2.1.ebuild,
36 amule-2.2.2.ebuild:
37
38
39
40 1.1 net-p2p/amule/amule-2.2.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/amule-2.2.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/amule-2.2.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: amule-2.2.3.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.2.3.ebuild,v 1.1 2008/12/30 11:43:36 armin76 Exp $
50
51 inherit eutils flag-o-matic wxwidgets
52
53 MY_P=${PN/m/M}-${PV}
54 S="${WORKDIR}"/${MY_P}
55
56 DESCRIPTION="aMule, the all-platform eMule p2p client"
57 HOMEPAGE="http://www.amule.org/"
58 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
63 IUSE="daemon debug geoip gtk nls remote stats unicode upnp"
64
65 DEPEND="=x11-libs/wxGTK-2.8*
66 >=dev-libs/crypto++-5.5.2
67 >=sys-libs/zlib-1.2.1
68 stats? ( >=media-libs/gd-2.0.26 )
69 geoip? ( dev-libs/geoip )
70 upnp? ( >=net-libs/libupnp-1.6.6 )
71 remote? ( >=media-libs/libpng-1.2.0
72 unicode? ( >=media-libs/gd-2.0.26 ) )"
73
74 pkg_setup() {
75 if ! use gtk && ! use remote && ! use daemon; then
76 eerror ""
77 eerror "You have to specify at least one of gtk, remote or daemon"
78 eerror "USE flag to build amule."
79 eerror ""
80 die "Invalid USE flag set"
81 fi
82
83 if use stats && ! use gtk; then
84 einfo "Note: You would need both the gtk and stats USE flags"
85 einfo "to compile aMule Statistics GUI."
86 einfo "I will now compile console versions only."
87 fi
88
89 if use stats && ! built_with_use media-libs/gd jpeg; then
90 die "media-libs/gd should be compiled with the jpeg use flag when you have the stats use flag set"
91 fi
92 }
93
94 pkg_preinst() {
95 if use daemon || use remote; then
96 enewgroup p2p
97 enewuser p2p -1 -1 /home/p2p p2p
98 fi
99 }
100
101 src_compile() {
102 local myconf
103
104 WX_GTK_VER="2.8"
105
106 if use gtk; then
107 einfo "wxGTK with gtk support will be used"
108 need-wxwidgets unicode
109 else
110 einfo "wxGTK without X support will be used"
111 need-wxwidgets base
112 fi
113
114 if use gtk ; then
115 use stats && myconf="${myconf}
116 --enable-wxcas
117 --enable-alc"
118 use remote && myconf="${myconf}
119 --enable-amule-gui"
120 else
121 myconf="
122 --disable-monolithic
123 --disable-amule-gui
124 --disable-wxcas
125 --disable-alc"
126 fi
127
128 econf \
129 --with-wx-config=${WX_CONFIG} \
130 --with-wxbase-config=${WX_CONFIG} \
131 --enable-amulecmd \
132 $(use_enable debug) \
133 $(use_enable !debug optimize) \
134 $(use_enable daemon amule-daemon) \
135 $(use_enable geoip) \
136 $(use_enable nls) \
137 $(use_enable remote webserver) \
138 $(use_enable stats cas) \
139 $(use_enable stats alcc) \
140 ${myconf} || die
141
142 # we filter ssp until bug #74457 is closed to build on hardened
143 filter-flags -fstack-protector -fstack-protector-all
144
145 emake -j1 || die
146 }
147
148 src_install() {
149 emake DESTDIR="${D}" install || die
150
151 if use daemon; then
152 newconfd "${FILESDIR}"/amuled.confd amuled
153 newinitd "${FILESDIR}"/amuled.initd amuled
154 fi
155
156 if use remote; then
157 newconfd "${FILESDIR}"/amuleweb.confd amuleweb
158 newinitd "${FILESDIR}"/amuleweb.initd amuleweb
159 fi
160 }