# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/c2hs/c2hs-0.13.4.ebuild,v 1.5 2005/05/04 11:02:25 dholm Exp $ inherit ghc-package DESCRIPTION="An interface generator for Haskell" HOMEPAGE="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/" SRC_URI="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~ppc" IUSE="" DEPEND=">=virtual/ghc-6.0 >=dev-haskell/cabal-1.0.1" RDEPEND="" src_compile() { ./Setup.hs configure \ --ghc --prefix=/usr \ --with-compiler="$(ghc-getghc)" \ --with-hc-pkg="$(ghc-getghcpkg)" \ || die "setup configure failed" ./Setup.hs build || die "setup build failed" } src_install() { exeinto /usr/bin doexe dist/build/c2hs/c2hs }