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