summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2012-11-18 11:48:41 +0000
committerMark Wright <gienah@gentoo.org>2012-11-18 11:48:41 +0000
commit6f4b47708d79f5d7474287569db2660e1d081a92 (patch)
tree63da75c10e6897dab26ec04b13b80846c08bd40b /dev-haskell
parentPatch hs3 0.5.6 for ghc 7.6.1, EAPI=5 (diff)
downloadgentoo-2-6f4b47708d79f5d7474287569db2660e1d081a92.tar.gz
gentoo-2-6f4b47708d79f5d7474287569db2660e1d081a92.tar.bz2
gentoo-2-6f4b47708d79f5d7474287569db2660e1d081a92.zip
Bump missingh to 1.2.0.0
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/missingh/ChangeLog7
-rw-r--r--dev-haskell/missingh/missingh-1.2.0.0.ebuild70
2 files changed, 76 insertions, 1 deletions
diff --git a/dev-haskell/missingh/ChangeLog b/dev-haskell/missingh/ChangeLog
index 4e175a904337..65ef8efa9570 100644
--- a/dev-haskell/missingh/ChangeLog
+++ b/dev-haskell/missingh/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-haskell/missingh
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/ChangeLog,v 1.21 2012/09/13 01:08:58 gienah Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/ChangeLog,v 1.22 2012/11/18 11:48:41 gienah Exp $
+
+*missingh-1.2.0.0 (18 Nov 2012)
+
+ 18 Nov 2012; Mark Wright <gienah@gentoo.org> +missingh-1.2.0.0.ebuild:
+ Bump missingh to 1.2.0.0
13 Sep 2012; Mark Wright <gienah@gentoo.org>
+files/missingh-1.1.1.0-ghc-7.6.patch, missingh-1.1.1.0.ebuild:
diff --git a/dev-haskell/missingh/missingh-1.2.0.0.ebuild b/dev-haskell/missingh/missingh-1.2.0.0.ebuild
new file mode 100644
index 000000000000..eba3454a13e1
--- /dev/null
+++ b/dev-haskell/missingh/missingh-1.2.0.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/missingh-1.2.0.0.ebuild,v 1.1 2012/11/18 11:48:41 gienah Exp $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit eutils haskell-cabal
+
+MY_PN="MissingH"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Large utility library"
+HOMEPAGE="http://software.complete.org/missingh"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="test"
+
+# testpack dependency is a workaround for cabal-1.8 bug, which pulls
+# depends even for 'Buildable: false' target
+RDEPEND="dev-haskell/hslogger:=[profile?]
+ dev-haskell/hunit:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/network:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/random:=[profile?]
+ dev-haskell/regex-compat:=[profile?]
+ dev-haskell/time:=[profile?]
+ >=dev-lang/ghc-6.10.4:="
+DEPEND=">=dev-haskell/cabal-1.2.3
+ virtual/libiconv
+ ${RDEPEND}
+ test? ( dev-haskell/testpack[profile?]
+ dev-haskell/quickcheck:1[profile?]
+ dev-haskell/hunit[profile?] )"
+
+# libiconv is needed for the trick below to make it compile with ghc-6.12
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # (non-ASCII non-UTF-8 source breaks hscolour)
+ cd src/System/Time
+ mv ParseDate.hs ParseDate.hs.ISO-8859-1
+ iconv -f ISO-8859-1 -t UTF-8 -c ParseDate.hs.ISO-8859-1 > ParseDate.hs || die "unable to recode ParseDate.hs to UTF-8"
+}
+
+src_configure() {
+ cabal_src_configure $(cabal_flag test buildtests)
+}
+
+src_test() {
+ # default tests
+ haskell-cabal_src_test || die "cabal test failed"
+
+ # built custom tests
+ "${S}/dist/build/runtests/runtests" || die "unit tests failed"
+}
+
+src_install() {
+ cabal_src_install
+
+ # if tests were enabled, make sure the unit test driver is deleted
+ rm -f "${D}/usr/bin/runtests"
+}