# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: # Ebuild contributed by: Adam Peacock, apeacock@rsd.net.au inherit 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/curry-0.9.9/curry-0.9.9.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="x86 amd64 sparc ppc ~alpha ~ia64" IUSE="" RESTRICT="nomirror" DEPEND="virtual/ghc" RDEPEND="dev-libs/gmp sys-devel/gcc" src_compile() { filter-flags "-O3 -finline-function -fomit-frame-pointer" # The option -finline-function [which is included in -O3] breaks MCC. # The option -fomit-frame-pointer is included in the default # configuration, hence there is no reason to include it twice. econf || die "could not configure" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die }