1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 DESCRIPTION="P2P sharing software which connects through I2P and Kad networks"
12 # New homepage has a few resources and a working nodes.dat file users need
13 # in order to get iMule to work
14 HOMEPAGE="http://echelon.i2p/imule"
15 SRC_URI="https://dev.gentoo.org/~zlg/extra/net-p2p/imule/${MY_PN}-${PV}-src.tbz https://dev.gentoo.org/~zlg/extra/net-p2p/imule/2015-03-22_nodes.dat"
19 IUSE="webserver static-libs nls"
22 # wxGTK 2.8 is required; later versions result in failed compile
23 # Other versions indicated are from the tarball's INSTALL file
24 DEPEND="x11-libs/wxGTK:2.8
26 >=net-libs/libupnp-1.6.6
29 >=dev-libs/crypto++-5.1
31 RDEPEND="x11-libs/wxGTK:2.8 net-p2p/i2p"
33 S="${WORKDIR}/${MY_PN}-${PV}-src"
37 cp "${DISTDIR}"/2015-03-22_nodes.dat "${WORKDIR}"
41 WX_GTK_VER="2.8" need-wxwidgets unicode
42 # Enabling imulecmd results in a compilation error.
43 econf --with-wx-config=${WX_CONFIG} \
44 --enable-imule-daemon \
50 $(use_enable webserver) \
51 $(use_enable static-libs static)
56 insinto /usr/share/${PN}
57 newins "${WORKDIR}"/2015-03-22_nodes.dat nodes.dat
61 elog "iMule will not function without a valid 'nodes.dat' file and"
62 elog "an I2P router running."
63 elog "A nodes.dat file can be found in /usr/share/imule. It can"
64 elog "be copied to ~/.iMule/nodes.dat for convenience."