Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/amule/
Date: Sat, 01 Oct 2016 14:20:03
Message-Id: 1475331591.8d06a65cb72da5389edd4979e802beb662d7fc4f.pacho@gentoo
1 commit: 8d06a65cb72da5389edd4979e802beb662d7fc4f
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 14:19:35 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 14:19:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d06a65c
7
8 net-p2p/amule: Version bump, also use wxGTK3.0 (supported now officially by upstream).
9
10 Package-Manager: portage-2.3.0
11
12 net-p2p/amule/Manifest | 1 +
13 net-p2p/amule/amule-2.3.2.ebuild | 107 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/net-p2p/amule/Manifest b/net-p2p/amule/Manifest
17 index f28d61e..2503136 100644
18 --- a/net-p2p/amule/Manifest
19 +++ b/net-p2p/amule/Manifest
20 @@ -1 +1,2 @@
21 DIST aMule-2.3.1.tar.bz2 4565232 SHA256 d2eda19c34ec574fa123efb95726c7cc241b093c95d074a5161ee7330dece69d SHA512 3310aa6e92dde0e27df032da701bc28533c703277ddeec3766fb0e945725ed340b2d3fe54016172621a47559b6c13fb2893cba0d2469a1038ab35c3ee2d5a3c3 WHIRLPOOL 1e1a27ebaed1c8f49093dc6a75a0b9c5fd1ad5a3390585d08b1db2b8cd00397e2d519b01720d5d2131b779f9bc0137d9a6aba603117295b185c3db716cc7dba2
22 +DIST aMule-2.3.2.tar.xz 3895300 SHA256 f64720fdc8c6cfa06bdcd4ca3922d30a0ddddba9c897f5bec7605009c7683928 SHA512 3064b086f8459b4372ea0c11f239a08167c7beac3dde26889f056f617b480b487bea10c2cae8fdfa1ae99c10fc9e715adc8e01e4b968389861aa47c3ec8c0016 WHIRLPOOL 2907069f705dcb438fb78e049d9a417d42401bff659924c7ed66451b22c6dd35baf52e8100ca81e06c24cd1418ba586e16746bcb4e27314c15fd29407b4e3298
23
24 diff --git a/net-p2p/amule/amule-2.3.2.ebuild b/net-p2p/amule/amule-2.3.2.ebuild
25 new file mode 100644
26 index 00000000..1445fd5
27 --- /dev/null
28 +++ b/net-p2p/amule/amule-2.3.2.ebuild
29 @@ -0,0 +1,107 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +WX_GTK_VER="3.0"
36 +
37 +inherit wxwidgets user
38 +
39 +MY_P=${PN/m/M}-${PV}
40 +S="${WORKDIR}"/${MY_P}
41 +
42 +DESCRIPTION="aMule, the all-platform eMule p2p client"
43 +HOMEPAGE="http://www.amule.org/"
44 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
49 +IUSE="daemon debug geoip nls remote stats unicode upnp +X"
50 +
51 +DEPEND="
52 + >=dev-libs/crypto++-5
53 + sys-libs/binutils-libs:0=
54 + >=sys-libs/zlib-1.2.1
55 + x11-libs/wxGTK:${WX_GTK_VER}[X?]
56 + stats? ( >=media-libs/gd-2.0.26:=[jpeg] )
57 + geoip? ( dev-libs/geoip )
58 + upnp? ( >=net-libs/libupnp-1.6.6 )
59 + remote? ( >=media-libs/libpng-1.2.0:0=
60 + unicode? ( >=media-libs/gd-2.0.26:= ) )
61 + !net-p2p/imule
62 +"
63 +RDEPEND="${DEPEND}"
64 +
65 +PATCHES=(
66 + "${FILESDIR}"/${PN}-2.2.6-fallocate.diff
67 +)
68 +
69 +pkg_setup() {
70 + if use stats && ! use X; then
71 + einfo "Note: You would need both the X and stats USE flags"
72 + einfo "to compile aMule Statistics GUI."
73 + einfo "I will now compile console versions only."
74 + fi
75 +}
76 +
77 +pkg_preinst() {
78 + if use daemon || use remote; then
79 + enewgroup p2p
80 + enewuser p2p -1 -1 /home/p2p p2p
81 + fi
82 +}
83 +
84 +src_configure() {
85 + local myconf
86 +
87 + if use X; then
88 + einfo "wxGTK with X support will be used"
89 + need-wxwidgets unicode
90 + else
91 + einfo "wxGTK without X support will be used"
92 + need-wxwidgets base-unicode
93 + fi
94 +
95 + if use X ; then
96 + use stats && myconf="${myconf}
97 + --enable-wxcas
98 + --enable-alc"
99 + use remote && myconf="${myconf}
100 + --enable-amule-gui"
101 + else
102 + myconf="
103 + --disable-monolithic
104 + --disable-amule-gui
105 + --disable-wxcas
106 + --disable-alc"
107 + fi
108 +
109 + econf \
110 + --with-denoise-level=0 \
111 + --with-wx-config="${WX_CONFIG}" \
112 + --enable-amulecmd \
113 + --without-boost \
114 + $(use_enable debug) \
115 + $(use_enable daemon amule-daemon) \
116 + $(use_enable geoip) \
117 + $(use_enable nls) \
118 + $(use_enable remote webserver) \
119 + $(use_enable stats cas) \
120 + $(use_enable stats alcc) \
121 + $(use_enable upnp) \
122 + ${myconf}
123 +}
124 +
125 +src_install() {
126 + default
127 +
128 + if use daemon; then
129 + newconfd "${FILESDIR}"/amuled.confd amuled
130 + newinitd "${FILESDIR}"/amuled.initd amuled
131 + fi
132 + if use remote; then
133 + newconfd "${FILESDIR}"/amuleweb.confd amuleweb
134 + newinitd "${FILESDIR}"/amuleweb.initd amuleweb
135 + fi
136 +}