# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils flag-o-matic DESCRIPTION="Munster Curry compiler" HOMEPAGE="http://danae.uni-muenster.de/~lux/curry/" SRC_URI="http://danae.uni-muenster.de/~lux/curry/download/${P}/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 -ia64 ~ppc -sparc ~x86" IUSE="" DEPEND=">=virtual/ghc-6.4 !>=virtual/ghc-6.6" RDEPEND="dev-libs/gmp sys-devel/gcc" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-ghc-6.4.patch" } src_compile() { filter-flags "-O3 -finline-function" # The option -finline-function [which is included in -O3] breaks MCC. econf --enable-trampoline || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" dodoc README doc/*.pdf }