summaryrefslogtreecommitdiff
path: root/dev-haskell/hunit
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/hunit')
-rw-r--r--dev-haskell/hunit/Manifest7
-rw-r--r--dev-haskell/hunit/files/hunit-1.6.2.0-prevent-abi-change.patch20
-rw-r--r--dev-haskell/hunit/hunit-1.6.2.0-r1.ebuild29
-rw-r--r--dev-haskell/hunit/hunit-1.6.2.0.ebuild2
-rw-r--r--dev-haskell/hunit/metadata.xml6
5 files changed, 57 insertions, 7 deletions
diff --git a/dev-haskell/hunit/Manifest b/dev-haskell/hunit/Manifest
index d80182865cd7..69bf40ffd05b 100644
--- a/dev-haskell/hunit/Manifest
+++ b/dev-haskell/hunit/Manifest
@@ -1,3 +1,6 @@
+AUX hunit-1.6.2.0-prevent-abi-change.patch 699 BLAKE2B 73f9b0a32157c050d2891194218fb01f81a0692a3a1a50681c41a5227ed41d6557ca9e7b2fc05dc4d622810949eee44b0f9943c7785d7a868138f33101629abd SHA512 68f7c26aa0008294630b7c27f2b04bab1d4eb1192fb7dd5f4605e5b8caea00c73ebc68ef4818301a3935546f4331c5d4022a15faca992632c635b3f90818b82a
DIST HUnit-1.6.2.0.tar.gz 21179 BLAKE2B c3a299cbe8f6cfe2859baf1c8a212420fd745cb5927d54ad8aae5d13dfc657a27b972de73b405d1464695405ba932e6bfd2073386e0bb9b1f398178ef1a7ba2d SHA512 b27c33545fcb4ca78dd9543eb0ab2f09e5edd989d116fe2136d876eb94745e6d384967ea4b3c6dbf0f03511091a82ecd0b299c8ab00769c57d6dddcddc27e8e5
-EBUILD hunit-1.6.2.0.ebuild 683 BLAKE2B 04b08cdb6fc595d389add3e63172b07e2c5ea1cfba7dabbdf56fb5b99361b063e70bd259e0282894f204654e8475ffe49cb615b1ef4efe88796971b39a626d24 SHA512 b9916caa5e9d91041f4d619fe1cad1dc88a962caf8ffcc914e94718aae3450b1dc30024c60b9d40b21e9877aaa574cbb38687e5abdac1f020c3ddfa7d58095fa
-MISC metadata.xml 487 BLAKE2B b40040a474e1e64173567f22f7194ebb6048940eda03ad2f89838019e2d89557117dd1c00b55eda74488d82c1f1ac55d32145b55a2513c91337b6a04d12cfb35 SHA512 e673ac6663a271b6f2f8878841028aa77b9b4a6e796f50c4e32922ce4e5df0e66a9d10630bdae882ed5601c32e4d27115e46c0073532a85ac45b8778a033098c
+DIST hunit-1.6.2.0.tar.gz 21179 BLAKE2B c3a299cbe8f6cfe2859baf1c8a212420fd745cb5927d54ad8aae5d13dfc657a27b972de73b405d1464695405ba932e6bfd2073386e0bb9b1f398178ef1a7ba2d SHA512 b27c33545fcb4ca78dd9543eb0ab2f09e5edd989d116fe2136d876eb94745e6d384967ea4b3c6dbf0f03511091a82ecd0b299c8ab00769c57d6dddcddc27e8e5
+EBUILD hunit-1.6.2.0-r1.ebuild 633 BLAKE2B 05079e1e180b135c3ffdc3f598c16463bea35ee52b36d0c20e7501d894a4ff5c1d8ae6d504dea54d1eda98190882cf8465fbc470f49d7dc82f050a37d6652b3e SHA512 188211580b0f3217e49cb67ef3d420aa606241e1c24337e727ec52f62719bf78b578532bc352410c527e9397cd31527b495ef68d56f124284b7538fdb39331dd
+EBUILD hunit-1.6.2.0.ebuild 683 BLAKE2B 9a51174195290b9b9aed38a9c8d6b632e1019d1915a13c55b0b7c4fcb060adcc32d4429ad3c05728e5f8fe1d37b8611f9a78a9e99c6d5bab53944ed307a4a058 SHA512 f1bfe2e64c6734bfb5b6049c7a58b8febceacc2f1926088ca24acadc2075011556063a848eb3bb912ac4ee110f423111920e437b4f500fdf48c3f04810464d3c
+MISC metadata.xml 422 BLAKE2B 502817b2ee8f8421e7d6cc230eccae956d7fa999df488f2bcada84266a6bed904051b35b73db5a4277b0ecba1bf5574b09c8f035c71567f5be3794671ef4f378 SHA512 51168f7c25278077d8341f63208585eb908266c5d656f18fed9bad587428cc94e7b3732fbb031d7f4356570cd971838b8d7901b5e90c39bef1d386c7bc16c237
diff --git a/dev-haskell/hunit/files/hunit-1.6.2.0-prevent-abi-change.patch b/dev-haskell/hunit/files/hunit-1.6.2.0-prevent-abi-change.patch
new file mode 100644
index 000000000000..42d1027aba22
--- /dev/null
+++ b/dev-haskell/hunit/files/hunit-1.6.2.0-prevent-abi-change.patch
@@ -0,0 +1,20 @@
+From: hololeap <hololeap@protonmail.com>
+Signed-off-by: hololeap <hololeap@protonmail.com>
+
+When dependencies change (for instance switching from USE=-test to USE=test)
+the ABI hash for the package changes, causing reverse-dependencies to break.
+This keeps the dependencies the same whether tests are enabled or not.
+
+diff -urN HUnit-1.6.2.0/HUnit.cabal HUnit-1.6.2.0-r1/HUnit.cabal
+--- HUnit-1.6.2.0/HUnit.cabal 2022-08-28 14:11:57.178837140 -0600
++++ HUnit-1.6.2.0-r1/HUnit.cabal 2022-08-28 14:12:38.558837160 -0600
+@@ -32,7 +32,8 @@
+ build-depends:
+ base ==4.*,
+ call-stack >=0.3.0,
+- deepseq
++ deepseq,
++ filepath
+ exposed-modules:
+ Test.HUnit.Base
+ Test.HUnit.Lang
diff --git a/dev-haskell/hunit/hunit-1.6.2.0-r1.ebuild b/dev-haskell/hunit/hunit-1.6.2.0-r1.ebuild
new file mode 100644
index 000000000000..69a8f58dcad5
--- /dev/null
+++ b/dev-haskell/hunit/hunit-1.6.2.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ebuild generated by hackport 0.7.2.2.9999
+
+CABAL_PN="HUnit"
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="A unit testing framework for Haskell"
+HOMEPAGE="https://github.com/hspec/HUnit#readme"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.2.0-prevent-abi-change.patch"
+)
+
+RDEPEND=">=dev-haskell/call-stack-0.3.0:=[profile?]
+ >=dev-lang/ghc-8.4.3:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-2.2.0.1
+"
diff --git a/dev-haskell/hunit/hunit-1.6.2.0.ebuild b/dev-haskell/hunit/hunit-1.6.2.0.ebuild
index 0f3b97d80a6d..bd88e63271d2 100644
--- a/dev-haskell/hunit/hunit-1.6.2.0.ebuild
+++ b/dev-haskell/hunit/hunit-1.6.2.0.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
# ebuild generated by hackport 0.6.7.9999
diff --git a/dev-haskell/hunit/metadata.xml b/dev-haskell/hunit/metadata.xml
index c659a3510515..f49a11c4e034 100644
--- a/dev-haskell/hunit/metadata.xml
+++ b/dev-haskell/hunit/metadata.xml
@@ -5,11 +5,9 @@
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
- <longdescription>
- HUnit is a unit testing framework for Haskell, inspired by the
- JUnit tool for Java, see: &lt;http://www.junit.org&gt;.
- </longdescription>
<upstream>
+ <remote-id type="hackage">HUnit</remote-id>
+ <remote-id type="github">hspec/HUnit</remote-id>
<remote-id type="sourceforge">hunit</remote-id>
</upstream>
</pkgmetadata>