diff options
author | hololeap <hololeap@protonmail.com> | 2023-10-02 23:09:23 -0600 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-23 04:10:02 +0100 |
commit | ada8ea942f75b332be3888007b9ff4fc2afedf6e (patch) | |
tree | 62a319ce30f1e931937841334e901e24dc8a1435 /dev-haskell/regex-tdfa | |
parent | dev-haskell/regex-posix: Migrate to CABAL_CHDEPS (diff) | |
download | gentoo-ada8ea942f75b332be3888007b9ff4fc2afedf6e.tar.gz gentoo-ada8ea942f75b332be3888007b9ff4fc2afedf6e.tar.bz2 gentoo-ada8ea942f75b332be3888007b9ff4fc2afedf6e.zip |
dev-haskell/regex-tdfa: add 1.3.2.2
Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell/regex-tdfa')
-rw-r--r-- | dev-haskell/regex-tdfa/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2.2-disable-doctests.patch | 24 | ||||
-rw-r--r-- | dev-haskell/regex-tdfa/metadata.xml | 3 | ||||
-rw-r--r-- | dev-haskell/regex-tdfa/regex-tdfa-1.3.2.2.ebuild | 39 |
4 files changed, 66 insertions, 1 deletions
diff --git a/dev-haskell/regex-tdfa/Manifest b/dev-haskell/regex-tdfa/Manifest index 6feaf270d664..8e5ff0f84c27 100644 --- a/dev-haskell/regex-tdfa/Manifest +++ b/dev-haskell/regex-tdfa/Manifest @@ -1 +1,2 @@ +DIST regex-tdfa-1.3.2.2.tar.gz 83016 BLAKE2B 77f6698a5c42eece0eb9f2166017a6a9334f917ba2134e963d06a443088e6d594765e846083052d91fc7944b8fea776c5e188afcbad2b25ce57939255f5cc3b4 SHA512 be5d93b0e989a3232f9d0e37f002085d500d334ec554ade30177b22dd0d873321aa2a4f8b3cacb4156d002659f67b6d6f50d5f8c8b2da513a43be49572dc9c6c DIST regex-tdfa-1.3.2.tar.gz 82839 BLAKE2B e381bc951dfad53b0cd2c83f6c77e3a71fe6b1fd64988f75544e631f49a9d108f39e27bc5bb42fbccc4887321c7655d609c0c13cc58f7be3b93e8131059f4320 SHA512 88bbf8f4d7ac15fb85c899bdeb8f8556c7a284075bf2b600051f529f0e2109dcda6ba74fc95969b824cfb03f00a9eb47e9c375c70b1b9e17096c95acbe517168 diff --git a/dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2.2-disable-doctests.patch b/dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2.2-disable-doctests.patch new file mode 100644 index 000000000000..769ff7f34191 --- /dev/null +++ b/dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2.2-disable-doctests.patch @@ -0,0 +1,24 @@ +From: hololeap <hololeap@protonmail.com> +Signed-off-by: hololeap <hololeap@protonmail.com> + +doctests don't seem to work with Setup.hs + +The hackage tarball doesn't include cabal.project which seems to be necessary +for doctest-parallel to work. Even when this file is copied to $S, Setup.hs +doesn't seem to recognize it. + +The necessary flag is not recognized by `./setup configure`: + --write-ghc-environment-files=always +See: <https://cabal.readthedocs.io/en/3.4/cabal-project.html#cfg-field-write-ghc-environment-files> + +diff -urN regex-tdfa-1.3.2/regex-tdfa.cabal regex-tdfa-1.3.2-r1/regex-tdfa.cabal +--- regex-tdfa-1.3.2/regex-tdfa.cabal 2022-08-14 00:42:54.578227087 -0600 ++++ regex-tdfa-1.3.2-r1/regex-tdfa.cabal 2022-08-14 00:43:17.428227098 -0600 +@@ -175,6 +175,7 @@ + ghc-options: -O2 + + test-suite doctest ++ buildable: False + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: DocTestMain.hs diff --git a/dev-haskell/regex-tdfa/metadata.xml b/dev-haskell/regex-tdfa/metadata.xml index 6883f6fe98a6..1192b9e7aef1 100644 --- a/dev-haskell/regex-tdfa/metadata.xml +++ b/dev-haskell/regex-tdfa/metadata.xml @@ -6,6 +6,7 @@ <name>Gentoo Haskell</name> </maintainer> <upstream> - <remote-id type="github">ChrisKuklewicz/regex-tdfa</remote-id> + <remote-id type="hackage">regex-tdfa</remote-id> + <remote-id type="github">haskell-hvr/regex-tdfa</remote-id> </upstream> </pkgmetadata> diff --git a/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.2.ebuild b/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.2.ebuild new file mode 100644 index 000000000000..a47592f6b41f --- /dev/null +++ b/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.8.4.0.9999 +#hackport: flags: +base4,-devel,+force-o2,-doctest + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Pure Haskell Tagged DFA Backend for \"Text.Regex\" (regex-base)" +HOMEPAGE="https://wiki.haskell.org/Regular_expressions" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" + +PATCHES=( + "${FILESDIR}/${P}-disable-doctests.patch" +) + +RDEPEND=">=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?] + >=dev-haskell/regex-base-0.94:=[profile?] <dev-haskell/regex-base-0.95:=[profile?] + >=dev-haskell/text-1.2.3:=[profile?] <dev-haskell/text-2.1:=[profile?] + >=dev-lang/ghc-8.8.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-3.0.0.0 + test? ( >=dev-haskell/utf8-string-1.0.1 <dev-haskell/utf8-string-1.1 + ) +" + +src_configure() { + haskell-cabal_src_configure \ + --flag=base4 \ + --flag=-devel \ + --flag=force-o2 +} |