# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.0_rc7.ebuild,v 1.2 2005/03/12 15:18:28 corsair Exp $ # Stefan Skotte | sfs@NOSPAMsteflo.dk | 16-05-2005 # =========================================================================== # Updated for amule 2.0.0 final: # a) --enable-optimize (with a "z" because "enable-optimise" is deprecated) # b) wxGTK >= 2.6 required (WX_GTK_VER=2.6) # =========================================================================== inherit wxwidgets MY_P=${P/m/M} MY_P=${MY_P/_/} S=${WORKDIR}/${MY_P} DESCRIPTION="aMule, the all-platform eMule p2p client" HOMEPAGE="http://www.amule.org/" SRC_URI="http://download.berlios.de/${PN}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86 ~ppc64" IUSE="debug gtk2 nls remote stats unicode gd" WX_GTK_VER="2.6" DEPEND="remote? ( =x11-libs/wxGTK-2.6* ) !remote? ( >=x11-libs/wxGTK-2.6.0-r1 ) >=net-misc/curl-7.11.0 >=sys-libs/zlib-1.2.1 stats? ( >=media-libs/gd-2.0.26 ) gd? ( >=media-libs/gd-2.0.26 ) !net-p2p/xmule" pkg_setup() { need-wxwidgets gtk if ! use gtk2 >& /dev/null ; then need-wxwidgets gtk || die "gtk version of x11-libs/wxGTK not found" elif use unicode >& /dev/null ; then need-wxwidgets unicode || die "You need to emerge unicoded wxGTK with USE='gtk2 unicode'" else need-wxwidgets gtk2 || die "You need to emerge wxGTK with USE='gtk2'" fi } src_compile() { econf \ --enable-optimize \ --with-wx-config=${WX_CONFIG} \ --with-wxbase-config=${WX_CONFIG} \ `use_enable nls` \ `use_enable remote amulecmd` \ `use_enable remote amulecmdgui` \ `use_enable remote webserver` \ `use_enable remote webservergui` \ `use_enable stats cas` \ `use_enable stats wxcas` \ `use_enable stats alc` \ `use_enable stats alcc` \ `use_enable debug` || die emake -j1 || die } src_install() { make DESTDIR=${D} install || die }