# Distributed under the terms of the GNU General Public License v2 inherit eutils DESCRIPTION="Münster Curry compiler" # The Münster Curry compiler is a native code compiler for the # declarative multi-paradigm language Curry. HOMEPAGE="http://danae.uni-muenster.de/~lux/curry" SRC_URI="http://danae.uni-muenster.de/~lux/curry/download/${P}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="trampoline noptrtags copynondet suspnondet cam2c mach noghcmake nomprotect" DEPEND=">=dev-lang/ghc-6.4" src_unpack() { unpack "${A}" # removing stripping of executables (taken from Fedora 6 SRPM) epatch "${FILESDIR}/${P}-strip.patch" } src_compile() { myconf="$(use_enable trampoline trampoline)" myconf="$myconf $(use_disable noptrtags no-pointer-tags)" myconf="$myconf $(use_enable copynondet copying)" myconf="$myconf $(use_enable suspnondet stability)" myconf="$myconf $(use_enable cam2c cam2c)" myconf="$myconf $(use_enable mach mach)" myconf="$myconf $(use_disable noghcmake ghc-make)" myconf="$myconf $(use_disable nomprotect mprotect)" econf ${myconf} || die "econf failed" # curry says that it build badly with parallels emake -j1 || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" dodoc LICENSE README NEWS doc/report.pdf doc/user.pdf dohtml doc/user.html }