diff options
Diffstat (limited to 'dev-haskell/cabal-install')
8 files changed, 320 insertions, 0 deletions
diff --git a/dev-haskell/cabal-install/Manifest b/dev-haskell/cabal-install/Manifest new file mode 100644 index 000000000000..88086fb1946e --- /dev/null +++ b/dev-haskell/cabal-install/Manifest @@ -0,0 +1,11 @@ +AUX cabal-install-0.13.3-nopref.patch 775 BLAKE2B c2c9478da820ffd22ab5450a38f54d74249b8b5000732be2e9cb68229876cdd50062ad7a668bef860be53161b2a820d0e31e3701f5c5f28602e964267a8ad30b SHA512 e0abaebca3d85bf09cffe76a7cdc0dc4df9ef7d0b13950932cbb0bedaeea59173cbf28b2a89f3f1b9e8ea15cb5c611678cf79ea63ea5a3f5acb4417082de19e5 +AUX cabal-install-1.24.0.0-nopref.patch 651 BLAKE2B baf9f0b75bdfe0c49c0c54f9cfb63a917c778a4983db9d79672244b3c424488686914e0a3fee58e249510e489d45f358f33645a427762583c65c5233c0e4905a SHA512 052241ec023ffd24fdb45902835f79d639ea8ae0bb745b1456e5a730448880739f3a050a48f5af1715b7669f1168f52c28f967fb8a6c7a47d5064efcad501d48 +DIST cabal-install-1.18.1.0.tar.gz 257577 BLAKE2B ea5d1eb3458657b81f04b2de1bd17b3f006912d0eb9a4d6e1bd23f0ecea5560912409603e8a58154c64f6863165fbc850e1015243b727e4d9bdc4bcb4006d7f0 SHA512 252304480ebde673fba873b9d7f709e47d1acfc7ab936a2b19f663d8e3c8ef7a20abeaac0cf9bbdb4bf0d1c30688e8a9b1cf1f73c27ce8f47845c3431de6752e +DIST cabal-install-1.20.0.3.tar.gz 274779 BLAKE2B 4b46e3722305566e9671677292a3ef64df9ca018dc54c088759a396b04bbbfbe28a72dc058cc98cf8ec552846d47a07d9d792a02a5834aa7808052183b4a93b0 SHA512 a272c7eb1c87a933b30697afa7bf78f95fb0afa203e791448d5e96d5c62105533347b8b777af7a7e6db5703654c319045e089d46d2263a09ed5ada10144ce12f +DIST cabal-install-1.22.7.0.tar.gz 302579 BLAKE2B e8a92bc69f0b00e5fc12145277216652fa52fb1de9ce3458b5fc3d9bc6f89cfe3a95d26dd7585566b55c55c2a9b2d021336baa10694aa39ca442bdb58c6997e7 SHA512 a88895ee38bf7451ba6a2e929ff224643ea0a536a9633d463d91a471e41b6aae302af2c3ca4fc914e4b3401fcadb137bb0c68c9fb7d0f768835374aef1b22766 +DIST cabal-install-1.24.0.2.tar.gz 499937 BLAKE2B c2e1ea88e20b1a43064010117e1830b052c339464f3188a931e7ca72220287a2862ea25423e5190e8f3fe6ed6b38dc7b688474796faf3d049626b04cf6c191cc SHA512 bd055a52ff0ac697e6f21a588d53dd811d50ee9410659a242c00a5665b360ef10c024df4872b9070c33aa49f779c8817b883b40087d3f4e0be4096a54b2ad5f0 +EBUILD cabal-install-1.18.1.0.ebuild 1436 BLAKE2B 0546f0dcf49ac06d2116fbffc73df5141d08c909107fe49a42d697fc16655aebb87bbf484bc0e1e2ab623e2a9f1eb1519004622b9e75166e358f6564f2e5b439 SHA512 82ef1131f400f7adc5556a143ae4afa1bdb95e9207f7d7f1a52674316387f642f2dbad5e5b267c946b1259949756dc7958438ce5ef24f717378a441bb5c1308b +EBUILD cabal-install-1.20.0.3-r2.ebuild 1656 BLAKE2B f472b04bc884f0560c8aff0ab65260832419533f1e13329cd4c4149dd9f44474cb4d4775a05e00a6e62f523c4082dde6ab8d929998853bdc93475b1b835ddbb5 SHA512 2d286c5acdbc6559735b2200e212431247636206d398f2d6240b9807ef48cb98de5a8bb6176660c964c5f5b4ed1503e63ff923bd4abf0b7e21a2aeaaad4a672e +EBUILD cabal-install-1.22.7.0.ebuild 1908 BLAKE2B 1f87b2d0821fb498de0bd32ab55df30d18c2068d95b84c101204a526cedaeb4caa9b56fcc4fb1dfa7c84fc33a0fa76fbc30cca3489a400bc91f1be5dee8768e0 SHA512 71baf6a677b9137e737d900b321b082d44e86d6d99a013b724d034c6fd734f5ee4d94424934d5a2fb72dc4206ce1c1082fa7334079ec11167344b8624c695962 +EBUILD cabal-install-1.24.0.2.ebuild 2413 BLAKE2B 3c0d3dca33fbf06f4a799dfcca795f10fa55f3dc289a42f1be0200eea1ad7916f18cda4e7c7fcabc4ad0890c2612169fdd221b6ad901fa885376031989ae935f SHA512 8f64c5126e138baf995bb769aa9361bb2eb6115d5c8ab85905d91b817e163e2304c186e8869e7dc8dfb027c6cd58824655b1faa01d3dc343f91f5ae259d7d481 +MISC metadata.xml 668 BLAKE2B acbff9d85af49bb29555d6a9d98d0b4342c5617e19bbb087d767bd5d1167df74e804890b4b1cd4d93f06b6565fa73f66e6f3d9b53e2923312fb6ceaa75a494d1 SHA512 fcf0bad8448b59a5019e8cb993952fb1f073ca0a7f78a41d83d403759837099900fcb03ce2a38c800515c4e88ee5fe49fa108b6b8b384eda0d28e08b2d3d2e13 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> |