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.2_rc1.ebuild
Date: Fri, 01 Aug 2008 19:12:26
Message-Id: E1KP036-0000cx-4l@stork.gentoo.org
1 armin76 08/08/01 19:12:24
2
3 Modified: ChangeLog
4 Added: amule-2.2.2_rc1.ebuild
5 Log:
6 Add RC
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.118 net-p2p/amule/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?rev=1.118&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?rev=1.118&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?r1=1.117&r2=1.118
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v
19 retrieving revision 1.117
20 retrieving revision 1.118
21 diff -u -r1.117 -r1.118
22 --- ChangeLog 13 Jun 2008 10:21:53 -0000 1.117
23 +++ ChangeLog 1 Aug 2008 19:12:23 -0000 1.118
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.117 2008/06/13 10:21:53 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.118 2008/08/01 19:12:23 armin76 Exp $
29 +
30 +*amule-2.2.2_rc1 (01 Aug 2008)
31 +
32 + 01 Aug 2008; Raúl Porcel <armin76@g.o> +amule-2.2.2_rc1.ebuild:
33 + Add RC
34
35 *amule-2.2.1 (13 Jun 2008)
36
37
38
39
40 1.1 net-p2p/amule/amule-2.2.2_rc1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/amule-2.2.2_rc1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/amule-2.2.2_rc1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: amule-2.2.2_rc1.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.2_rc1.ebuild,v 1.1 2008/08/01 19:12:23 armin76 Exp $
50
51 inherit eutils flag-o-matic wxwidgets
52
53 MY_P=${PN/m/M}-${PV/_rc/rc}
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 )
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 make_desktop_entry amulegui "aMule Remote" amule "Network;P2P"
160 fi
161 }