Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-haskell/haskell-src-exts
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haskell-src-exts/ChangeLog,v 1.11 2007/12/13 05:41:30 dcoutts Exp $
13 Dec 2007; Duncan Coutts
haskell-src-exts-0.2.ebuild:
Updates for upward compatability with cabal-1.2 and ghc-6.8
31 Oct 2007; Duncan Coutts
haskell-src-exts-0.2.ebuild:
Drop virtual/ghc in favour of dev-lang/ghc
17 Oct 2006; Duncan Coutts
haskell-src-exts-0.2.ebuild:
Need to inherit eutils eclass.
11 Oct 2006; Duncan Coutts
+files/haskell-src-exts-0.2-hiding-isSymbol.patch,
haskell-src-exts-0.2.ebuild:
Added patch to fix building with ghc-6.6
09 Mar 2006; Duncan Coutts
haskell-src-exts-0.2.ebuild:
Add ~sparc to KEYWORDS. See bug #124902
01 Mar 2006; Michael Hanselmann
haskell-src-exts-0.2.ebuild:
Added to ~ppc. See bug #124469.
01 Mar 2006; Markus Rothe
haskell-src-exts-0.2.ebuild:
Added ~ppc64; bug #124469
16 Feb 2006;
Correct license, remove unnecessary dep on dev-haskell/harp and mark ~amd64
16 Feb 2006;
Add "lib" to CABAL_FEATURES in preparation for pending eclass updates.
10 Dec 2005;
Patch to make it work with ghc-6.2.2. Hopefully this fixes bug #115034.
Also disable the doc USE flag since it doesn't work.
*haskell-src-exts-0.2 (24 Oct 2005)
24 Oct 2005; Luis F. Araujo
+haskell-src-exts-0.2.ebuild:
Added new package: haskell-src-exts
AUX haskell-src-exts-0.2-hiding-isSymbol.patch 3016 RMD160 b6030108cbe3fc3a187854e751c179cf794dbb0f SHA1 2d49f3cb4e9651fccba162a4e91b3b5747a80190 SHA256 4bf72b759ff79278e67fa91f830fcbd8f3e6a26025234bd4e7889abc19148078
DIST haskell-src-exts-0.2.tar.gz 59520 RMD160 4fb15828c41cce431f947dcb549b3aa579367dcb SHA1 c4b9a76dbc6be91ba58835f7646b21750af68701 SHA256 f818f7f9ea079e4ee9689d8cb0a5d86b23603a9ba58f2fb047439e3c6f29b4d2
EBUILD haskell-src-exts-0.2.ebuild 1279 RMD160 62c857cff7359a0e9e34c73508be70f04caaa290 SHA1 bed1421f92de86a4ec3acbfe5557ea19495e34ee SHA256 b0b623d66c406c33cf9b91fb7072d601eb63da022717d76aa54e2500612e267e
MISC ChangeLog 1799 RMD160 b7217015bde99411dfcb574b4501890e358ed597 SHA1 cb3895714a288f51609f0b4fadd56f7df70018c3 SHA256 afecc8816447bd6e48f74a929b485c50a26860ab34deb26ec1117f45d76d466b
MISC metadata.xml 671 RMD160 fd9612929239d60ebebb881ba6f46fbe7c436fef SHA1 1ad0b0c59ee28e08d9849c9542411f0d28c78346 SHA256 7acde279d06a1095afbb79856ee028b68346cd45ebee58f734e965045e625c1d
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haskell-src-exts/haskell-src-exts-0.2.ebuild,v 1.11 2007/12/13 05:41:30 dcoutts Exp $
CABAL_FEATURES="lib happy"
inherit base haskell-cabal eutils versionator
DESCRIPTION="An extension to haskell-src that handles most common syntactic extensions to Haskell"
HOMEPAGE="http://www.cs.chalmers.se/~d00nibro/haskell-src-exts/"
SRC_URI="http://www.cs.chalmers.se/~d00nibro/haskell-src-exts/haskell-src-exts-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
DEPEND=">=dev-lang/ghc-6.2
dev-haskell/happy"
S=${WORKDIR}/haskell-src-exts/src/haskell-src-exts
src_unpack() {
base_src_unpack
# Make it work with ghc 6.6
cd "${S}"
epatch "${FILESDIR}/${P}-hiding-isSymbol.patch"
# Make it work with ghc pre-6.4
sed -i 's/{-# OPTIONS_GHC /{-# OPTIONS /' \
"${S}/Language/Haskell/Hsx/Syntax.hs" \
"${S}/Language/Haskell/Hsx/Pretty.hs"
sed -i 's/#ifdef __GLASGOW_HASKELL__/#if __GLASGOW_HASKELL__>=604/' \
"${S}/Language/Haskell/Hsx/Syntax.hs"
if version_is_at_least "6.8" "$(ghc-version)"; then
sed -i -e '/Build-Depends:/a \
, array, pretty' \
"${S}/${PN}.cabal"
fi
}
Haskell-Source with eXtensions (HSX, haskell-src-exts) is an extension of the
standard haskell-src package, and handles most common syntactic extensions to
Haskell, including:
* Multi-parameter type classes with functional dependencies
* Empty data declarations
* GADTs
* Implicit parameters (ghc and hugs style)
* Template Haskell (broken for 6.4, needs redoing)