summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/missingh')
-rw-r--r--dev-haskell/missingh/Manifest4
-rw-r--r--dev-haskell/missingh/files/missingh-1.2.0.2-ghc-7.7.patch47
-rw-r--r--dev-haskell/missingh/metadata.xml11
-rw-r--r--dev-haskell/missingh/missingh-1.2.0.0.ebuild71
-rw-r--r--dev-haskell/missingh/missingh-1.2.0.2.ebuild52
-rw-r--r--dev-haskell/missingh/missingh-1.2.1.0.ebuild40
-rw-r--r--dev-haskell/missingh/missingh-1.3.0.1.ebuild41
7 files changed, 266 insertions, 0 deletions
diff --git a/dev-haskell/missingh/Manifest b/dev-haskell/missingh/Manifest
new file mode 100644
index 000000000000..614dcfd6bafc
--- /dev/null
+++ b/dev-haskell/missingh/Manifest
@@ -0,0 +1,4 @@
+DIST MissingH-1.2.0.0.tar.gz 115761 SHA256 a15a7c33ecea71c729de8ac11c430a77c115df2c39776d57ee11d47d850c0f2f SHA512 03b7c1747c69e67f1e9665ecb38cac397f00ac640120602862e2227b8d6c7fa002fcfc9f5a70b355e959a3783925bcad8f1039d061aedb6216d174fa351997bd WHIRLPOOL 27e696cea7e2c53ec2027e2edc784d5d52f25f43201c53172c339865e128530808c68e57a177dbbfab7a79d77f98c3119de11d1bd96efcbd0a68a1246d602873
+DIST MissingH-1.2.0.2.tar.gz 115774 SHA256 d61226c66c697c45392f63436ce2d27c722467e35ffee046610002df907239f3 SHA512 148146468688d855af988874b28ec3e3ebafb99b8168d50734294ecc5400c832826e11c9714727f83381979f8f8a7c6e7bf6479e582e484ec0abcb741d22a0a9 WHIRLPOOL f66e96b25d34a8aafc4cf3982d6fe8cc638f770a52c7436e221adf59cbbd96ef1ce9dae3e1b810e564d2945124ecc4f4c544054229239462aa92785423f8901c
+DIST MissingH-1.2.1.0.tar.gz 116445 SHA256 5aafea2d9e8e64644c8b7b6c149bb74422501aaff1aa3d422f838741a1fbf723 SHA512 54ad72973ef20a2eb6a0e72ae8ff496ee48d359ba491bf094957737e02fce217fb00e950735f8c0b36a7fe48a7322a122e447b0c67e0205e8d1b6450ac4df3e3 WHIRLPOOL 1723d07ac7ced05f0b115c13e7d49a3950bdd90c3c286b22633816a4dae2dae2a42b1fde09cb685546e465fa22927a235119b814349d12a843ccacce0ecf4c7b
+DIST MissingH-1.3.0.1.tar.gz 116812 SHA256 ba0d60673e70c64c6eebe785fb4da729bcfd3dae37fba721c7318b8df1838db3 SHA512 e7c6f95d5437d86516f9aba79026b2abdd5131917a09da452623be68b2377067f8f093412c9919ebc904c4e61d43e755282d5bb333596de935c705958111dcf3 WHIRLPOOL ddbb533806c8f66c0eac5933d20003455895d0b80c28e22ce22ed21f997f2f4cad3d3a93e0c64a1a825809022dfb225a88bceb28cca1de887436b61aa4c05c01
diff --git a/dev-haskell/missingh/files/missingh-1.2.0.2-ghc-7.7.patch b/dev-haskell/missingh/files/missingh-1.2.0.2-ghc-7.7.patch
new file mode 100644
index 000000000000..0b249462fa51
--- /dev/null
+++ b/dev-haskell/missingh/files/missingh-1.2.0.2-ghc-7.7.patch
@@ -0,0 +1,47 @@
+--- MissingH-1.2.0.2-orig/src/System/Cmd/Utils.hs 2013-08-22 00:35:27.000000000 +1000
++++ MissingH-1.2.0.2/src/System/Cmd/Utils.hs 2013-09-28 01:17:29.697333968 +1000
+@@ -325,7 +325,11 @@
+ Just (Exited (ExitSuccess)) -> return ()
+ Just (Exited (ExitFailure fc)) ->
+ cmdfailed funcname fp args fc
++#if (__GLASGOW_HASKELL__ >= 707)
++ Just (Terminated sig _) ->
++#else
+ Just (Terminated sig) ->
++#endif
+ warnfail fp args $ "Terminated by signal " ++ show sig
+ Just (Stopped sig) ->
+ warnfail fp args $ "Stopped by signal " ++ show sig
+@@ -351,7 +355,11 @@
+ case ec of
+ Exited ExitSuccess -> return ()
+ Exited (ExitFailure fc) -> cmdfailed "safeSystem" command args fc
++#if (__GLASGOW_HASKELL__ >= 707)
++ Terminated s _ -> cmdsignalled "safeSystem" command args s
++#else
+ Terminated s -> cmdsignalled "safeSystem" command args s
++#endif
+ Stopped s -> cmdsignalled "safeSystem" command args s
+ #endif
+
+--- MissingH-1.2.0.2-orig/testsrc/Eithertest.hs 2013-08-22 00:35:27.000000000 +1000
++++ MissingH-1.2.0.2/testsrc/Eithertest.hs 2013-09-28 01:19:32.177332800 +1000
+@@ -6,6 +6,7 @@
+ For license and copyright information, see the file LICENSE
+
+ -}
++{-# LANGUAGE CPP #-}
+
+ module Eithertest(tests) where
+ import Test.HUnit
+@@ -13,8 +14,10 @@
+ import Test.HUnit.Tools
+ import Control.Exception
+
++#if (__GLASGOW_HASKELL__ < 707)
+ instance Eq ErrorCall where
+ (ErrorCall x) == (ErrorCall y) = x == y
++#endif
+
+ test_maybeToEither =
+ let f msg inp exp = TestLabel msg $ TestCase $ assertEqual "" exp inp in
diff --git a/dev-haskell/missingh/metadata.xml b/dev-haskell/missingh/metadata.xml
new file mode 100644
index 000000000000..60db33df846b
--- /dev/null
+++ b/dev-haskell/missingh/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jgoerzen/missingh</remote-id>
+ </upstream>
+</pkgmetadata>
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..869a3e756c49
--- /dev/null
+++ b/dev-haskell/missingh/missingh-1.2.0.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 x86 ~amd64-linux"
+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-lang/ghc-6.10.4:="
+DEPEND=">=dev-haskell/cabal-1.2.3
+ virtual/libiconv
+ ${RDEPEND}
+ test? ( dev-haskell/testpack[profile?]
+ dev-haskell/quickcheck[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() {
+ CABAL_FILE=${MY_PN}.cabal cabal_chdeps \
+ 'QuickCheck >= 1.0 && <2.0' 'QuickCheck'
+ # (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"
+}
diff --git a/dev-haskell/missingh/missingh-1.2.0.2.ebuild b/dev-haskell/missingh/missingh-1.2.0.2.ebuild
new file mode 100644
index 000000000000..69d7fcb78081
--- /dev/null
+++ b/dev-haskell/missingh/missingh-1.2.0.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.3.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit base 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 x86 ~amd64-linux"
+IUSE=""
+
+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-lang/ghc-6.12.1:=
+"
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ >=dev-haskell/cabal-1.8.0.2
+ test? ( dev-haskell/quickcheck
+ dev-haskell/testpack )
+"
+
+# libiconv is needed for the trick below to make it compile with ghc-6.12
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=("${FILESDIR}/${PN}-1.2.0.2-ghc-7.7.patch")
+
+src_prepare() {
+ base_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"
+}
diff --git a/dev-haskell/missingh/missingh-1.2.1.0.ebuild b/dev-haskell/missingh/missingh-1.2.1.0.ebuild
new file mode 100644
index 000000000000..4a06ae9926cf
--- /dev/null
+++ b/dev-haskell/missingh/missingh-1.2.1.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.6.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit 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 ~x86 ~amd64-linux"
+IUSE=""
+
+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-lang/ghc-6.12.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8.0.2
+ test? ( dev-haskell/errorcall-eq-instance
+ dev-haskell/quickcheck
+ dev-haskell/testpack )
+"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/dev-haskell/missingh/missingh-1.3.0.1.ebuild b/dev-haskell/missingh/missingh-1.3.0.1.ebuild
new file mode 100644
index 000000000000..b76a2e529247
--- /dev/null
+++ b/dev-haskell/missingh/missingh-1.3.0.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.4.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+MY_PN="MissingH"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Large utility library"
+HOMEPAGE="https://github.com/jgoerzen/missingh/wiki"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="dev-haskell/hslogger:=[profile?]
+ dev-haskell/hunit:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/network:=[profile?]
+ dev-haskell/old-time:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/random:=[profile?]
+ dev-haskell/regex-compat:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/errorcall-eq-instance
+ dev-haskell/quickcheck
+ dev-haskell/testpack )
+"
+
+S="${WORKDIR}/${MY_P}"