# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/xmule-1.6.1.ebuild,v 1.10 2004/07/17 03:06:26 squinky86 Exp $ MY_P=${P//a} S=${WORKDIR}/${MY_P} DESCRIPTION="wxWindows based client for the eDonkey/eMule/lMule network" HOMEPAGE="http://xmule.ws/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="nls" DEPEND=">=x11-libs/wxGTK-2.4.1 nls? ( sys-devel/gettext ) >=sys-libs/zlib-1.1.4" pkg_setup() { # FIXME: Is this really how we want to do this ? GREP=`grep ' unicode' /var/db/pkg/x11-libs/wxGTK*/USE` if [ "${GREP}" != "" ]; then eerror "This package doesn't work with wxGTK" eerror "compiled with gtk2 and unicode in USE" eerror "Please re-compile wxGTK with -unicode" die "aborting..." fi } src_compile () { aclocal autoconf autoheader automake local myconf= use nls \ || myconf="${myconf} --disable-nls" econf ${myconf} || die MAKEOPTS="${MAKEOPTS} -j1" emake || die } src_install () { einstall || die }