# Copyright 1999-2005 Gentoo Foundation # Frittella Laurento (mrfree_AT_infinito_DOT_it) # Distributed under the terms of the GNU General Public License v2 inherit eutils DESCRIPTION="The embedded mldonkey gtk2 GUI. It is written in Objective-Caml." HOMEPAGE="http://www.nongnu.org/mldonkey/" SRC_URI="http://savannah.nongnu.org/download/mldonkey/mldonkey-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64" RDEPEND=">=dev-lang/ocaml-3.08.3 dev-lang/perl net-misc/wget >=dev-ml/lablgtk-2.4" DEPEND="${RDEPEND} >=sys-devel/autoconf-2.58" src_unpack() { unpack mldonkey-${PV}.tar.bz2 } src_compile() { cd ${WORKDIR}/mldonkey-${PV} export WANT_AUTOCONF=2.5 cd config; autoconf; cd .. # the dirs are not (yet) used, but it doesn't hurt to specify them anyway econf \ --sysconfdir=/etc/mldonkey \ --sharedstatedir=/var/mldonkey \ --localstatedir=/var/mldonkey \ --enable-batch \ --enable-checks \ --enable-pthread \ --disable-multinet \ --disable-donkey \ --enable-gtk2 || die export OCAMLRUNPARAM="l=256M" emake -j1 || die } src_install() { dobin ${WORKDIR}/mldonkey-${PV}/mlgui }