diff options
Diffstat (limited to 'dev-haskell/parser-combinators')
3 files changed, 65 insertions, 33 deletions
diff --git a/dev-haskell/parser-combinators/Manifest b/dev-haskell/parser-combinators/Manifest index f015bcd6f432..68426a8ea7c1 100644 --- a/dev-haskell/parser-combinators/Manifest +++ b/dev-haskell/parser-combinators/Manifest @@ -1,3 +1,4 @@ -DIST parser-combinators-1.0.0.tar.gz 10349 BLAKE2B c8b21ab8c1afd8fdc931f60258245596a70adb404366f5926743b61b6c7b802558436e7869d012dabaaa8d36097028269cec3c99f647958d0b15d14402c05c6b SHA512 308b38faca865801c2356b9eb0128824956f00a31d98de075166018b34d53a04bad0dc7f1afabafa9946b307ef3fb77df303db78ac7bd6ff476c9b96a3020e9c -EBUILD parser-combinators-1.0.0.ebuild 746 BLAKE2B 770ba4532043bc2d4eefa221aead6a2d701d857356b93e51d179d76739d298ed1b85cdee2c2f23b7aa8fc3ae6324fd174ac8f589ecfc28f68d2f75d588cc815f SHA512 23f3b5ae61aea7ba680b0edb7a100dcdba1d1396016226fcbbdcd3054dbe0f087b88c87f8a4b5312e14bcc36b126354000fe117acd7b2e959b8150b1fe3e7651 +DIST parser-combinators-1.3.0.tar.gz 11699 BLAKE2B 0a24e95c52627a3219cc8e89ed49ebc12e759a487e7daf333f3ab788837576aef88d295f585aecd0831866319ee0445369cc3cd26255d6ef85d602f44d7767fa SHA512 f7a4581d229b788e841d844003e058a6c63827c5cadeb6fe8f1b94e2a920b11d3b08a8a7a412fa95e1b75bca24f6957f88162f8d1af5bb174ca7f91ef47c0b71 +DIST parser-combinators-tests-1.3.0.tar.gz 6860 BLAKE2B ececd5d8a47501a90e68ba77da679aed2c00da225c234f8afeebd43bf4cb821c988cd5612e8411e70179b39f0fcf8c15fcd93accd81e42ce1b8999d0cd8c7bdf SHA512 ac863afcbe81ea83c20cbab3229c5321860d1d45b4b04031db1a8cc493239096aef80d24148fe3cd5a18dfc811d806855386736be94e32cecabab3ae656d5389 +EBUILD parser-combinators-1.3.0.ebuild 1681 BLAKE2B 17242e0cffb303f26ba44daec6666eaae676c2023e2b129b2500744a3fb17ba29177f2b8966da50f189a9e33e209e8b3a83f30bdd709e0c2dbf75e8dacfb4a84 SHA512 3cde3247d462d4f95765d097ca90eb4168105403b6c2c223c69b56c268c01aee78387177c405fbde43f213fc2a6b32167257620419cd5a4e5a253501633ef783 MISC metadata.xml 250 BLAKE2B 3adf9597d5114c480b4cc9fb5c3e231d8475b795cd6dce77986e13583ab6e59b43857cf2328570490abef0062a8b8a6b73d231867f9b62124855515cdc044d6d SHA512 5ef2c1d34a3438b39a38c041d45bb06bd0f1ae8a3f8b971bd5aaf36dee560f380e9abefab0c2a4cd7b518e151f5c6a0d0c7cd53caee9a384818f1bdc7deeadc4 diff --git a/dev-haskell/parser-combinators/parser-combinators-1.0.0.ebuild b/dev-haskell/parser-combinators/parser-combinators-1.0.0.ebuild deleted file mode 100644 index e5d497098a32..000000000000 --- a/dev-haskell/parser-combinators/parser-combinators-1.0.0.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# ebuild generated by hackport 0.5.5 -#hackport: flags: -dev - -CABAL_FEATURES="lib profile haddock hoogle hscolour" -inherit haskell-cabal - -DESCRIPTION="Lightweight package providing commonly useful parser combinators" -HOMEPAGE="https://github.com/mrkkrp/parser-combinators" -SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0/${PV}" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND=">=dev-haskell/semigroups-0.18:=[profile?] <dev-haskell/semigroups-0.19:=[profile?] - >=dev-lang/ghc-7.10.1:= -" -DEPEND="${RDEPEND} - >=dev-haskell/cabal-1.22.2.0 -" - -src_configure() { - haskell-cabal_src_configure \ - --flag=-dev -} diff --git a/dev-haskell/parser-combinators/parser-combinators-1.3.0.ebuild b/dev-haskell/parser-combinators/parser-combinators-1.3.0.ebuild new file mode 100644 index 000000000000..fc3e4a9d5cb2 --- /dev/null +++ b/dev-haskell/parser-combinators/parser-combinators-1.3.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.7.1.1.9999 +#hackport: flags: -dev + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +TESTS_PN="${PN}-tests" +TESTS_P="${TESTS_PN}-${PV}" + +DESCRIPTION="Lightweight package providing commonly useful parser combinators" +HOMEPAGE="https://github.com/mrkkrp/parser-combinators" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz + https://hackage.haskell.org/package/${TESTS_P}/${TESTS_P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc64 ~x86" +RESTRICT="test" # tests only work if not already installed + +RDEPEND=">=dev-lang/ghc-8.6.3:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-2.4.0.1 + test? ( >=dev-haskell/hspec-2.0 <dev-haskell/hspec-3.0 + >=dev-haskell/hspec-expectations-0.8 <dev-haskell/hspec-expectations-0.9 + >=dev-haskell/hspec-megaparsec-2.0 <dev-haskell/hspec-megaparsec-3.0 + >=dev-haskell/megaparsec-8.0 <dev-haskell/megaparsec-10.0 + >=dev-haskell/megaparsec-tests-8.0 <dev-haskell/megaparsec-tests-10.0 + >=dev-haskell/quickcheck-2.7 <dev-haskell/quickcheck-2.15 ) +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=-dev +} + +src_test() { + if use test; then + ./setup register --inplace --gen-pkg-config || die + ghc-pkg init pkgdb || die + ghc-pkg -f pkgdb register "${P}.conf" + + old_S="${S}" + export S="${WORKDIR}/${TESTS_P}" + pushd "${S}" > /dev/null || die + + haskell-cabal_src_configure \ + --package-db="${old_S}/pkgdb" \ + --flag=-dev + + haskell-cabal_src_compile + haskell-cabal_src_test + + popd > /dev/null || die + export S="${old_S}" + fi +} |