# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools subversion eutils ESVN_REPO_URI="http://pure-lang.svn.sourceforge.net/svnroot/pure-lang/pure/trunk/" ESVN_CO_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}"/svn-src/${P/-svn}/"${ESVN_REPO_URI##*/}" ESVN_PROJECT="${P}" DESCRIPTION="Pure Universal Rewriting Engine, a pure algebraic and functional language" HOMEPAGE="http://pure-lang.sourceforge.net/" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug" RDEPEND=">=sys-devel/llvm-2.3 dev-libs/gmp !dev-lang/pure" DEPEND="${RDEPEND}" src_unpack() { subversion_src_unpack cd ${S} ./configure || die "Died in action: shipped bootstrap ..." } src_compile() { local myconf="" if use debug; then myconf="${myconf} --enable-debug" else myconf="${myconf} --enable-release" fi econf ${myconf} || die "Died in action: econf ..." make || die "Died in action: make ..." } src_install() { make DESTDIR="${D}" install || die "Died in action: make install ... " } pkg_postinst() { ewarn "This is an unofficial ebuild for Pure language interpreter" }