Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: da3a0cbd2f
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (39 sloc) 1.252 kB
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
# nocabaldep - uses uuagc-cabal
CABAL_FEATURES="bin nocabaldep"
inherit eutils git-2 haskell-cabal
MY_PN="HNC"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="source-to-source translator of a variant of ML core into C++"
HOMEPAGE="http://github.com/kayuri/HNC"
EGIT_REPO_URI="git://github.com/kayuri/${MY_PN}.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND=""
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.10
=dev-haskell/hunit-1*
=dev-haskell/mtl-2*
>=dev-haskell/parsec-3.1
dev-haskell/quickcheck:2
dev-haskell/uuagc
>=dev-lang/ghc-7.2"
S="${WORKDIR}/${MY_P}"
src_prepare() {
find "${S}" -name '*.ag' | while read bad_file; do
mv -v "${bad_file}" "${bad_file}.orig" || die
# uuagc does not handle NON-ASCII encodings
iconv -c -f UTF-8 -t ASCII < "${bad_file}.orig" >"${bad_file}" || die
done
epatch "${FILESDIR}"/0001-SPL-Parser2.hs-fix-foldl-symbol-clash-base-4.4.patch
epatch "${FILESDIR}"/0002-require-hoopl-with-runWithFuel.patch
epatch "${FILESDIR}"/0003-workaround-uuagc-s-inability-to-handle-setup-configu.patch
}
src_configure() {
cabal_src_configure $(use_enable test tests)
}
Jump to Line
Something went wrong with that request. Please try again.