1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils flag-o-matic wxwidgets user git-r3
9 DESCRIPTION
="aMule with DLP patch, the all-platform eMule p2p client"
10 HOMEPAGE
="https://github.com/persmule/amule-dlp"
11 EGIT_REPO_URI
="https://github.com/persmule/amule-dlp.git"
16 IUSE
="daemon debug +dynamic geoip +gtk nls remote stats unicode upnp"
17 REQUIRED_USE
="|| ( gtk remote daemon )"
21 >=dev-libs/boost-1.57[nls,threads,context]
24 stats? ( >=media-libs/gd-2.0.26[jpeg] )
25 geoip? ( dev-libs/geoip )
26 upnp? ( >=net-libs/libupnp-1.6.6 )
27 remote? ( >=media-libs/libpng-1.2.0
28 unicode? ( >=media-libs/gd-2.0.26 ) )
31 RDEPEND
="${DEPEND} dynamic? ( net-p2p/amule-dlp-antileech )"
34 DOCS
=( docs
/{amulesig.txt
,AUTHORS
,ChangeLog
,EC_Protocol.txt
,ED2K-Links.HOWTO
,INSTALL
,README
,TODO
} )
37 if use stats
&& ! use gtk
; then
38 einfo
"Note: You would need both the gtk and stats USE flags"
39 einfo
"to compile aMule Statistics GUI."
40 einfo
"I will now compile console versions only."
45 if use daemon || use remote
; then
47 enewuser p2p
-1 -1 /home
/p2p p2p
52 # fix the missing amule.xpm
53 cp "${FILESDIR}/amule.xpm" .
/
55 # hack because of non-standard generation
56 cd src
/pixmaps
/flags_xpm
60 WANT_AUTOCONF
="2.5" eautoreconf
61 WANT_AUTOMAKE
="1.7" eautomake
63 epatch
"${FILESDIR}/amule-dlp-scanner-header.patch"
72 einfo
"wxGTK with X / GTK support will be used"
73 need-wxwidgets unicode
75 einfo
"wxGTK without X support will be used"
76 need-wxwidgets base-unicode
80 use stats
&& myconf
="${myconf}
83 use remote
&& myconf
="${myconf}
94 --with-wx-config=${WX_CONFIG} \
98 $
(use_enable
!debug optimize
) \
99 $
(use_enable daemon amule-daemon
) \
100 $
(use_enable geoip
) \
102 $
(use_enable remote webserver
) \
103 $
(use_enable stats cas
) \
104 $
(use_enable stats alcc
) \
110 emake DESTDIR
="${D}" install || die
113 newconfd
"${FILESDIR}"/amuled.confd amuled
114 newinitd
"${FILESDIR}"/amuled.initd amuled
117 newconfd
"${FILESDIR}"/amuleweb.confd amuleweb
118 newinitd
"${FILESDIR}"/amuleweb.initd amuleweb