Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 1999-2009 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: $ | ||
|
||
EAPI="2" | ||
WX_GTK_VER="2.8" | ||
|
||
inherit wxwidgets | ||
|
||
MY_PN="iMule" | ||
|
||
DESCRIPTION="P2P sharing software which connects through I2P and Kad network" | ||
HOMEPAGE="http://www.imule.i2p.tin0.de/" | ||
SRC_URI="http://echelon.i2p/imule/${PV}/${MY_PN}-${PV}-src.tbz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" | ||
IUSE="daemon irouter imulecmd webserver" | ||
|
||
DEPEND="x11-libs/wxGTK:2.8 | ||
irouter? ( sys-devel/gcc[gcj] ) | ||
sys-devel/flex | ||
sys-apps/texinfo" | ||
|
||
RDEPEND="x11-libs/wxGTK:2.8" | ||
|
||
S="${WORKDIR}/${MY_PN}-${PV}-src" | ||
|
||
src_configure() { | ||
local myopts | ||
|
||
use daemon && myopts="${myopts} --enable-imule-daemon" | ||
use irouter && myopts="${myopts} --enable-irouter" | ||
use imulecmd && myopts="${myopts} --enable-imulecmd" | ||
use webserver && myopts="${myopts} --enable-webserver" | ||
export WX_GTK_VER="2.8" | ||
need-wxwidgets unicode | ||
econf --with-wx-config=${WX_CONFIG} \ | ||
--with-wxbase-config=${WX_CONFIG} \ | ||
--enable-optimize --disable-debug --enable-alc \ | ||
${myopts} || die | ||
} | ||
|
||
src_install() { | ||
make DESTDIR="${D}" install || die | ||
} | ||
|
||
pkg_postinst() { | ||
if use irouter ; then | ||
ewarn "You have irouter USE disabled, to use iMule you must have I2P installed and running" | ||
fi | ||
|
||
} |