summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2007-07-26 16:17:33 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2007-07-26 16:17:33 +0000
commit20165867fea63472a1f198eac3ff1232c256a8ae (patch)
tree00c3e4bf70593532eb28aa582229443543feefdd /dev-haskell/hscolour/hscolour-1.8.ebuild
parentdosed -> sed, bug 179249 (diff)
downloadgentoo-2-20165867fea63472a1f198eac3ff1232c256a8ae.tar.gz
gentoo-2-20165867fea63472a1f198eac3ff1232c256a8ae.tar.bz2
gentoo-2-20165867fea63472a1f198eac3ff1232c256a8ae.zip
Initial version.
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-haskell/hscolour/hscolour-1.8.ebuild')
-rw-r--r--dev-haskell/hscolour/hscolour-1.8.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-haskell/hscolour/hscolour-1.8.ebuild b/dev-haskell/hscolour/hscolour-1.8.ebuild
new file mode 100644
index 000000000000..3c2ddfe3d734
--- /dev/null
+++ b/dev-haskell/hscolour/hscolour-1.8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/hscolour-1.8.ebuild,v 1.1 2007/07/26 16:17:33 dcoutts Exp $
+
+CABAL_FEATURES="bin lib profile haddock"
+inherit haskell-cabal
+
+DESCRIPTION="Colourise Haskell code"
+HOMEPAGE="http://www.cs.york.ac.uk/fp/darcs/hscolour/"
+SRC_URI="ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/ghc"
+RDEPEND=""
+
+src_unpack() {
+ unpack "${A}"
+
+ # Fix for a haddock parse error, hopefully fixed after version 1.8
+ sed -i -e 's|document/fragment|document\\/fragment|' \
+ "${S}/Language/Haskell/HsColour/LaTeX.hs"
+
+ # Correct version number. Doh!
+ sed -i -e 's|version = "1.7"|version = "1.8"|' "${S}/HsColour.hs"
+
+ # Lower -O2 to -O
+ sed -i -e 's/-O2/-O/' "${S}/hscolour.cabal"
+}
+
+src_install() {
+ cabal_src_install
+ if use doc; then
+ dohtml index.html hscolour.css
+ dodoc README
+ fi
+}