# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A yacc-like parser generator for Haskell" HOMEPAGE="http://haskell.org/happy/" SRC_URI="http://haskell.cs.yale.edu/happy/dist/1.13/happy-1.13-src.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" # This should really depend on the GHC package, but this one # doesn't compile under Gentoo yet, so I leave it out here in # order to make the package usable for those who have GHC # installed manually. RDEPEND="" src_compile() { # Try to find an already-running GHC. (This is a work around until # GHC is officially part of Gentoo.) if test -z "${GHC}"; then if which_ghc=`which ghc`; then GHC="${which_ghc}" fi fi econf --with-ghc=${GHC} || die # "emake" does not work reliably. Probably due to the classic # dependency problem in make with parallel builds. make || die } src_install() { einstall || die }