diff options
Diffstat (limited to 'dev-haskell/cabal-install')
8 files changed, 322 insertions, 0 deletions
diff --git a/dev-haskell/cabal-install/Manifest b/dev-haskell/cabal-install/Manifest new file mode 100644 index 000000000000..5bc999df5ee0 --- /dev/null +++ b/dev-haskell/cabal-install/Manifest @@ -0,0 +1,13 @@ +AUX cabal-install-0.13.3-nopref.patch 775 SHA256 a6c5fbf367fd0f5854036a046f1a20e738ff09afeb547e83767522025fe688bc SHA512 e0abaebca3d85bf09cffe76a7cdc0dc4df9ef7d0b13950932cbb0bedaeea59173cbf28b2a89f3f1b9e8ea15cb5c611678cf79ea63ea5a3f5acb4417082de19e5 WHIRLPOOL 186d73bfcc9963a5b88dcc334e9c9d3202aa4376b03b2ee04d5f9d99176b1674763c4678805217afd001de625a3b94c6fce78380a4385bf9aec0d6e26be688a7 +AUX cabal-install-1.24.0.0-nopref.patch 651 SHA256 9b24cade9975ca064d5713340d6a70c7782475f63b89641fc4d8c55503e09531 SHA512 052241ec023ffd24fdb45902835f79d639ea8ae0bb745b1456e5a730448880739f3a050a48f5af1715b7669f1168f52c28f967fb8a6c7a47d5064efcad501d48 WHIRLPOOL 1cd211bd29400e8575d54d2b67c9cc145b69afee8055e290902081aa99bb95eb15e31de24129f8fa7e3c5d1d2298f41d927b7ca22f2ee1ed903722cfd4e6d2fe +DIST cabal-install-1.18.1.0.tar.gz 257577 SHA256 d6abb6fef8204780a41aff2e93dfa297883673507cec557348aebf6b37843ae4 SHA512 252304480ebde673fba873b9d7f709e47d1acfc7ab936a2b19f663d8e3c8ef7a20abeaac0cf9bbdb4bf0d1c30688e8a9b1cf1f73c27ce8f47845c3431de6752e WHIRLPOOL 1d2bd46e88a3ac48fcd46cc229f2a90059b0d48ceec9bb04cb91c68adf7690bbe599adc518cce0e76bdffe80eff0cd615f7d25843a7f0f0090d59a34f5b37df2 +DIST cabal-install-1.20.0.3.tar.gz 274779 SHA256 d2bd56f3bcae92b7b97325be5216f94544fbcb30e10e24b40bccc149584b0b14 SHA512 a272c7eb1c87a933b30697afa7bf78f95fb0afa203e791448d5e96d5c62105533347b8b777af7a7e6db5703654c319045e089d46d2263a09ed5ada10144ce12f WHIRLPOOL da95f8a386c751c8c83ffa965422ab8fcf047693300f6d7ed39ec046354c8b00753fd3f0936b56eb5a6e854e5176ad2e20282e2bbcc0745f5ef4d462e59f4d0d +DIST cabal-install-1.22.7.0.tar.gz 302579 SHA256 b30fd14f20fdd11b028cba68fefeed7eeadcacf919e7c29bc4d7289a656d19f3 SHA512 a88895ee38bf7451ba6a2e929ff224643ea0a536a9633d463d91a471e41b6aae302af2c3ca4fc914e4b3401fcadb137bb0c68c9fb7d0f768835374aef1b22766 WHIRLPOOL 2315f7b510456fdc4db7348d67fcf5c3ceb3ee03684297d6f429f4aff62a681c70aeeb34beac48d3481f7920d4b123369a21a4f340b899f7b52431119d3e680b +DIST cabal-install-1.24.0.2.tar.gz 499937 SHA256 2ac8819238a0e57fff9c3c857e97b8705b1b5fef2e46cd2829e85d96e2a00fe0 SHA512 bd055a52ff0ac697e6f21a588d53dd811d50ee9410659a242c00a5665b360ef10c024df4872b9070c33aa49f779c8817b883b40087d3f4e0be4096a54b2ad5f0 WHIRLPOOL fd891e023789208d5ea96a1de4ecd20449ec2d39f3214140f70157e26c258c623beaaf9d38f006b683fc8aa80a81ecd9346f31359213f1620f2b51b516b856df +EBUILD cabal-install-1.18.1.0.ebuild 1436 SHA256 bf1e17df948c603b6015ca4348c1cb712f0412a2196972a609ae988732f12060 SHA512 82ef1131f400f7adc5556a143ae4afa1bdb95e9207f7d7f1a52674316387f642f2dbad5e5b267c946b1259949756dc7958438ce5ef24f717378a441bb5c1308b WHIRLPOOL 64e16e41f0d3f1599bb9be0081cf2e2f659a3706675bf7f84bf9fb6036f1981bf0ca1730c8ad44e9c71c05f600f2528a219a050ff8cba91de74032af934b20b2 +EBUILD cabal-install-1.20.0.3-r2.ebuild 1656 SHA256 45cfccb7c4b1d8ae6bb8ac27e5660c8e9446cd58d577e115419fdea8b112e06e SHA512 2d286c5acdbc6559735b2200e212431247636206d398f2d6240b9807ef48cb98de5a8bb6176660c964c5f5b4ed1503e63ff923bd4abf0b7e21a2aeaaad4a672e WHIRLPOOL 897af1c2ad2e4eda177b7307ffe6b024df3602f6a6a0939d50f848836db18c3c3b1edb6b690f86c5f53aa21f57c42ec55bf49ec64e142c467ddfa8d85bb8057c +EBUILD cabal-install-1.22.7.0.ebuild 1908 SHA256 a37be202437774dcecd6c308ec66bd1ffb40092960ddcc1d4012d7432f0f3b39 SHA512 71baf6a677b9137e737d900b321b082d44e86d6d99a013b724d034c6fd734f5ee4d94424934d5a2fb72dc4206ce1c1082fa7334079ec11167344b8624c695962 WHIRLPOOL a94d460b51b34240bc364b49ab39e5065a7d638868fabde22c59d714143e80a8def05aceb1c978dc1856351cbabbaed9efb46ba91aaea013435e30dd4a48eb42 +EBUILD cabal-install-1.24.0.2.ebuild 2413 SHA256 dde753292b9b39bee1a64cb8a518ae1771b92139886e10ac0496744591bbab9b SHA512 8f64c5126e138baf995bb769aa9361bb2eb6115d5c8ab85905d91b817e163e2304c186e8869e7dc8dfb027c6cd58824655b1faa01d3dc343f91f5ae259d7d481 WHIRLPOOL bef059f8d621c3d87b77f90e042e41029f5c897f6ed2c9ffb66a85dafe020f4973a178f730a75762b0b9db809952275e57692d52010df56f85f91094c55c046d +MISC ChangeLog 4137 SHA256 f2d4ad8c0ce885c19769262354ee6d5c5d3f3497858ec2d1460bbaad64977bb3 SHA512 d5d5eb0bd68e1941a472ab131a705b422835c52f5bc8a65dbe265196c44d9703df62b673a2a9e3d42b709be9dbe2b2209bbfe47d7410022ef3e3232a8f7a4f5e WHIRLPOOL 6de30e816ad1eda3be2694e8aa0892f479e1ead98f10b40889101e5f539d76c2b26af1a6101b2896c4170330a50068e9f50052ef5a5dae5439e3398355e218fd +MISC ChangeLog-2015 5512 SHA256 35c4ea9fc4398d0445eb09365b4991c89ca10c9ebb46942477e159229846aa06 SHA512 38b7d65b1eb7d4a8dbe739d0981b41b98fb9bd52233a6f980099a1236996e0fd9591160551a234e17bc18a92ccbe9562a315d8ed7976a2686dac8ce22dbfcff8 WHIRLPOOL 02a532a5a87948ed4f7456eacbf9c8e883b6ac837c4b4d7bb404aef899c8988c8e0354a436bad10baad6d15595a2604d339a0b3db4a0cdaedaec49c545e18f57 +MISC metadata.xml 668 SHA256 61bf007e74d9ed16aa9b2b0856ee7f5fb2a0b98449645f1bda3aca98fe0cf798 SHA512 fcf0bad8448b59a5019e8cb993952fb1f073ca0a7f78a41d83d403759837099900fcb03ce2a38c800515c4e88ee5fe49fa108b6b8b384eda0d28e08b2d3d2e13 WHIRLPOOL e17affea494d961328d7444b7527af5625469358fa23aa231966a9574527634c1b245a85887abc2c24bd60ea7d5993a3c2d32f2f648568c12fc7783ddbb5e523 diff --git a/dev-haskell/cabal-install/cabal-install-1.18.1.0.ebuild b/dev-haskell/cabal-install/cabal-install-1.18.1.0.ebuild new file mode 100644 index 000000000000..fcd25ce5adfa --- /dev/null +++ b/dev-haskell/cabal-install/cabal-install-1.18.1.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.6.9999 + +CABAL_FEATURES="bin test-suite" +inherit bash-completion-r1 eutils haskell-cabal + +DESCRIPTION="The command-line interface for Cabal and Hackage" +HOMEPAGE="http://www.haskell.org/cabal/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86" +IUSE="+noprefs" + +RDEPEND="" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.0 <dev-haskell/cabal-1.19 + >=dev-haskell/http-4000.0.8 <dev-haskell/http-4001 + >=dev-haskell/mtl-2.0 <dev-haskell/mtl-3 + >=dev-haskell/network-1 <dev-haskell/network-3 + dev-haskell/network-uri + >=dev-haskell/random-1 <dev-haskell/random-1.1 + >=dev-haskell/stm-2.0 <dev-haskell/stm-3 + >=dev-haskell/zlib-0.5.3 <dev-haskell/zlib-0.6 + >=dev-lang/ghc-6.12.1 + test? ( dev-haskell/hunit + >=dev-haskell/quickcheck-2.5 + dev-haskell/test-framework + dev-haskell/test-framework-hunit + >=dev-haskell/test-framework-quickcheck2-0.3 ) +" + +src_prepare() { + if use noprefs; then + epatch "${FILESDIR}/${PN}"-0.13.3-nopref.patch + fi + + # no chance to link to -threaded on ppc64, alpha and others + # who use UNREG, not only ARM + if ! ghc-supports-threaded-runtime; then + cabal_chdeps '-threaded' ' ' + fi +} + +src_install() { + haskell-cabal_src_install + + dobashcomp "${S}/bash-completion/cabal" +} diff --git a/dev-haskell/cabal-install/cabal-install-1.20.0.3-r2.ebuild b/dev-haskell/cabal-install/cabal-install-1.20.0.3-r2.ebuild new file mode 100644 index 000000000000..fa0e9c1806fb --- /dev/null +++ b/dev-haskell/cabal-install/cabal-install-1.20.0.3-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.9999 + +CABAL_FEATURES="bin test-suite" +inherit bash-completion-r1 eutils haskell-cabal + +DESCRIPTION="The command-line interface for Cabal and Hackage" +HOMEPAGE="http://www.haskell.org/cabal/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="+noprefs" + +RDEPEND="" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.20.0 <dev-haskell/cabal-1.21 + >=dev-haskell/http-4000.2.5 <dev-haskell/http-4000.3 + >=dev-haskell/mtl-2.0 <dev-haskell/mtl-3 + >=dev-haskell/network-2.0 <dev-haskell/network-2.7 + dev-haskell/network-uri + >=dev-haskell/random-1 <dev-haskell/random-1.2 + >=dev-haskell/stm-2.0 <dev-haskell/stm-3 + >=dev-haskell/zlib-0.5.3 <dev-haskell/zlib-0.6 + >=dev-lang/ghc-7.4.1 + test? ( dev-haskell/hunit + >=dev-haskell/quickcheck-2.5 + dev-haskell/test-framework + dev-haskell/test-framework-hunit + >=dev-haskell/test-framework-quickcheck2-0.3 ) +" + +src_prepare() { + if use noprefs; then + epatch "${FILESDIR}/${PN}"-0.13.3-nopref.patch + fi + + # no chance to link to -threaded on ppc64, alpha and others + # who use UNREG, not only ARM + if ! ghc-supports-threaded-runtime; then + cabal_chdeps '-threaded' ' ' + fi + + cabal_chdeps \ + 'network >= 2.0 && < 2.6' 'network >= 2.0 && < 2.7, network-uri' \ + 'network,' 'network,network-uri,' \ + 'random >= 1 && < 1.1' 'random >= 1 && < 1.2' +} + +src_install() { + haskell-cabal_src_install + + dobashcomp "${S}/bash-completion/cabal" +} diff --git a/dev-haskell/cabal-install/cabal-install-1.22.7.0.ebuild b/dev-haskell/cabal-install/cabal-install-1.22.7.0.ebuild new file mode 100644 index 000000000000..ad649a3ad7e3 --- /dev/null +++ b/dev-haskell/cabal-install/cabal-install-1.22.7.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.5.9999 + +CABAL_FEATURES="bin test-suite" +inherit bash-completion-r1 eutils haskell-cabal + +DESCRIPTION="The command-line interface for Cabal and Hackage" +HOMEPAGE="http://www.haskell.org/cabal/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="+network-uri +noprefs" + +RESTRICT=test # missing files + +RDEPEND=">=dev-haskell/cabal-1.22.2:= <dev-haskell/cabal-1.23:= + >=dev-haskell/http-4000.2.5:= <dev-haskell/http-4000.3:= + >=dev-haskell/mtl-2.0:= <dev-haskell/mtl-3:= + >=dev-haskell/old-time-1:= <dev-haskell/old-time-1.2:= + >=dev-haskell/random-1:= <dev-haskell/random-1.2:= + >=dev-haskell/stm-2.0:= <dev-haskell/stm-3:= + >=dev-haskell/zlib-0.5.3:= <dev-haskell/zlib-0.7:= + >=dev-lang/ghc-7.4.1:= + network-uri? ( >=dev-haskell/network-2.6:= + >=dev-haskell/network-uri-2.6:= ) + !network-uri? ( >=dev-haskell/network-2.4:= <dev-haskell/network-2.6:= ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.10 + test? ( dev-haskell/extensible-exceptions + dev-haskell/hunit + >=dev-haskell/quickcheck-2.5 + dev-haskell/regex-posix + dev-haskell/test-framework + dev-haskell/test-framework-hunit + >=dev-haskell/test-framework-quickcheck2-0.3 + !network-uri? ( <dev-haskell/network-uri-2.6 ) ) +" + +src_prepare() { + if use noprefs; then + epatch "${FILESDIR}/${PN}"-0.13.3-nopref.patch + fi + + # no chance to link to -threaded on ppc64, alpha and others + # who use UNREG, not only ARM + if ! ghc-supports-threaded-runtime; then + cabal_chdeps '-threaded' ' ' + fi + + cabal_chdeps \ + 'QuickCheck >= 2.1.0.1 && < 2.9' 'QuickCheck >= 2.1.0.1' +} + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag network-uri network-uri) + + dobashcomp "${S}/bash-completion/cabal" +} diff --git a/dev-haskell/cabal-install/cabal-install-1.24.0.2.ebuild b/dev-haskell/cabal-install/cabal-install-1.24.0.2.ebuild new file mode 100644 index 000000000000..14f9f6461f84 --- /dev/null +++ b/dev-haskell/cabal-install/cabal-install-1.24.0.2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ebuild generated by hackport 0.5.9999 + +CABAL_FEATURES="test-suite" +inherit bash-completion-r1 haskell-cabal + +DESCRIPTION="The command-line interface for Cabal and Hackage" +HOMEPAGE="http://www.haskell.org/cabal/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+network-uri +noprefs" + +RESTRICT=test + +RDEPEND=">=dev-haskell/async-2.0:= <dev-haskell/async-3:= + >=dev-haskell/base16-bytestring-0.1.1:= <dev-haskell/base16-bytestring-0.2:= + >=dev-haskell/bytestring-builder-0.10:= <dev-haskell/bytestring-builder-1:= + >=dev-haskell/cabal-1.24.2:= <dev-haskell/cabal-1.25:= + >=dev-haskell/cryptohash-sha256-0.11:= <dev-haskell/cryptohash-sha256-0.12:= + >=dev-haskell/hackage-security-0.5.2.2:= <dev-haskell/hackage-security-0.6:= + >=dev-haskell/hashable-1.0:= <dev-haskell/hashable-2:= + >=dev-haskell/http-4000.1.5:= <dev-haskell/http-4000.4:= + >=dev-haskell/mtl-2.0:= <dev-haskell/mtl-3:= + >=dev-haskell/old-time-1:= <dev-haskell/old-time-1.2:= + >=dev-haskell/random-1:= <dev-haskell/random-1.2:= + >=dev-haskell/stm-2.0:= <dev-haskell/stm-3:= + >=dev-haskell/tar-0.5.0.3:= <dev-haskell/tar-0.6:= + >=dev-haskell/zlib-0.5.3:= <dev-haskell/zlib-0.7:= + >=dev-lang/ghc-7.4.1:= + network-uri? ( >=dev-haskell/network-2.6:= <dev-haskell/network-2.7:= + >=dev-haskell/network-uri-2.6:= <dev-haskell/network-uri-2.7:= ) + !network-uri? ( >=dev-haskell/network-2.4:= <dev-haskell/network-2.6:= ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.10 + test? ( >=dev-haskell/quickcheck-2.8.2 + dev-haskell/regex-posix + dev-haskell/tagged + dev-haskell/tasty + dev-haskell/tasty-hunit + dev-haskell/tasty-quickcheck + !network-uri? ( <dev-haskell/network-uri-2.6 ) ) +" + +src_prepare() { + default + if use noprefs; then + epatch "${FILESDIR}/${PN}"-1.24.0.0-nopref.patch + fi + + # no chance to link to -threaded on ppc64, alpha and others + # who use UNREG, not only ARM + if ! ghc-supports-threaded-runtime; then + cabal_chdeps '-threaded' ' ' + fi +} + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag network-uri network-uri) +} + +src_install() { + haskell-cabal_src_install + + dobashcomp "${S}/bash-completion/cabal" + + # fixup perms in such an an awkward way + mv "${ED}/usr/share/man/man1/cabal.1" "${S}/cabal.1" || die + doman "${S}/cabal.1" +} diff --git a/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch b/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch new file mode 100644 index 000000000000..c36582680a56 --- /dev/null +++ b/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch @@ -0,0 +1,20 @@ +diff --git a/Distribution/Client/IndexUtils.hs b/Distribution/Client/IndexUtils.hs +index 48d8d49..3a38ee1 100644 +--- a/Distribution/Client/IndexUtils.hs ++++ b/Distribution/Client/IndexUtils.hs +@@ -312,10 +312,15 @@ extractPkg entry = case Tar.entryContent entry of + + extractPrefs :: Tar.Entry -> Maybe [Dependency] + extractPrefs entry = case Tar.entryContent entry of ++{- ++ -- get rid of hackage's preferred-versions ++ -- I'd like to have bleeding-edge packages in system and I don't fear of ++ -- broken packages with improper depends + Tar.NormalFile content _ + | takeFileName (Tar.entryPath entry) == "preferred-versions" + -> Just . parsePreferredVersions + . BS.Char8.unpack $ content ++-} + _ -> Nothing + + parsePreferredVersions :: String -> [Dependency] diff --git a/dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch b/dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch new file mode 100644 index 000000000000..40b281073c0e --- /dev/null +++ b/dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch @@ -0,0 +1,15 @@ +diff --git a/Distribution/Client/IndexUtils.hs b/Distribution/Client/IndexUtils.hs +index 95545fc..a9c8417 100644 +--- a/Distribution/Client/IndexUtils.hs ++++ b/Distribution/Client/IndexUtils.hs +@@ -345,2 +345,6 @@ extractPrefs :: Tar.Entry -> Maybe [Dependency] + extractPrefs entry = case Tar.entryContent entry of ++{- ++ -- get rid of hackage's preferred-versions ++ -- I'd like to have bleeding-edge packages in system and I don't fear of ++ -- broken packages with improper depends + Tar.NormalFile content _ +@@ -351,2 +355,3 @@ extractPrefs entry = case Tar.entryContent entry of + prefs = parsePreferredVersions content ++-} + _ -> Nothing diff --git a/dev-haskell/cabal-install/metadata.xml b/dev-haskell/cabal-install/metadata.xml new file mode 100644 index 000000000000..31f7b7e26dba --- /dev/null +++ b/dev-haskell/cabal-install/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + The 'cabal' command-line program simplifies the process of managing + Haskell software by automating the fetching, configuration, compilation + and installation of Haskell libraries and programs. + </longdescription> + <use> + <flag name="noprefs">Ignore 'preferred-versions' file from hackage's tarball.</flag> + <flag name="network-uri">Get Network.URI from the network-uri package.</flag> + </use> +</pkgmetadata> |