summaryrefslogtreecommitdiff
path: root/dev-haskell/c2hs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/c2hs')
-rw-r--r--dev-haskell/c2hs/Manifest4
-rw-r--r--dev-haskell/c2hs/c2hs-0.28.8-r2.ebuild42
-rw-r--r--dev-haskell/c2hs/metadata.xml11
3 files changed, 47 insertions, 10 deletions
diff --git a/dev-haskell/c2hs/Manifest b/dev-haskell/c2hs/Manifest
index 6858c0565b49..416c5e183a04 100644
--- a/dev-haskell/c2hs/Manifest
+++ b/dev-haskell/c2hs/Manifest
@@ -1,3 +1,5 @@
+DIST c2hs-0.28.8-rev2.cabal 9397 BLAKE2B fa4f8c6394f9d86d010a2224840483a3cd154223fbd5a993dc56250f1c49629f10a630bb33db047c091fb9ea62188728b8fe71eb044e173cc77dcdce78516706 SHA512 e8db51a51d26ef8df83e0e6a2fa643e2540135f73f1ad6409304dbd1b98e340a9aaaedf858d5fe5f18f19ce4df86568d3ad540be1c257ee352c5c3d838c879ea
DIST c2hs-0.28.8.tar.gz 207816 BLAKE2B 6d912fd93c6076ccd86ed62e075f1addb7b44378c82acc0cbaf04b6b91a2ed4530cde60a9139316d928a2867474bafde5c14aedb4ab9e78e5faaa99830276a71 SHA512 ff9119acecddd853f2f797385f971c249bcd92d4b141e8e7ea5f5d3e63aa257502c80ded2720a46e3186260026b94c9e518f08f8e452a64c9f888d0183ee1749
+EBUILD c2hs-0.28.8-r2.ebuild 883 BLAKE2B 754f0298fd838af022aa71fb21b47206278a73234c5fdc7afc0578179ae95c97b3f68b11e15ff498823e38cbb9102b0f78226f704fbef212b56117de1d2120c2 SHA512 48054d28f9ed6232d1136a9958fbfc31185b36974c2cd26c7cb2620c4069ccd17fc97a890b831bfec2685a1095532476d6e1cd8919688cf7a5042088e789e9ad
EBUILD c2hs-0.28.8.ebuild 1090 BLAKE2B 79b31ddd51049ab33186a59c88d5837b28a7578bd7bf39d85d82c4d0ac09a182a51539980c6140abc40d21d062f1b80d65c952178906743a7dae180b77cb405c SHA512 b02a126c1c203d339fbf91a2602ce0386c5459c32893201dbe1451c02ec77e54789219776edfc5db80c6a3fedf5e035bc3f752bf9b7a457e6b4dd8e00a647e81
-MISC metadata.xml 775 BLAKE2B d57e7bfb66cf558914ebbfb029294df8bc0383fb39fcf528f0fed45949193aefe2931a006e5b4f1c95c4c22faf6ba324abddce5bb1f8d79d9e5ff3d4bed00103 SHA512 791234ce7ca1326bf3ed4f9b6cb1b6947adff0019bf42ea37202eb398042d918fc2953a847dd7a368b49730b3af64db0b65e962eab36cc32ad1cf1659113a2bc
+MISC metadata.xml 451 BLAKE2B 42743ef5216ad1eae14baab621ffad0142dc5cfe62a6ce4441b0c7a8157969a26ea3506fb6083fb00be74582c9c0d74b4fd4a05685dc809a1cfde29bd41791df SHA512 7ff90351d2c5c5689f2bab9e65801a121eab00d00b185fca568feb9bc8d4dd484f6b1c88e9a906596999ef473a8930d1a9cf597979c330362c47f47b0d001163
diff --git a/dev-haskell/c2hs/c2hs-0.28.8-r2.ebuild b/dev-haskell/c2hs/c2hs-0.28.8-r2.ebuild
new file mode 100644
index 000000000000..8e23dfe4647f
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.28.8-r2.ebuild
@@ -0,0 +1,42 @@
+# 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: -regression
+
+CABAL_HACKAGE_REVISION=2
+
+CABAL_FEATURES="test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
+HOMEPAGE="https://github.com/haskell/c2hs"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+
+RESTRICT=test # needs unprefixed 'cpp'
+
+RDEPEND="
+ dev-haskell/dlist:=
+ >=dev-haskell/language-c-0.7.1:= <dev-haskell/language-c-0.10:=
+ >=dev-lang/ghc-9.0.2:=
+"
+DEPEND="
+ ${RDEPEND}
+ >=dev-haskell/cabal-3.4.1.0
+ test? (
+ dev-haskell/hunit
+ >=dev-haskell/shelly-1.9.0
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/text
+ )
+"
+
+src_configure() {
+ haskell-cabal_src_configure --flag=-regression
+}
diff --git a/dev-haskell/c2hs/metadata.xml b/dev-haskell/c2hs/metadata.xml
index 057927a3d82a..7c8b6c407a28 100644
--- a/dev-haskell/c2hs/metadata.xml
+++ b/dev-haskell/c2hs/metadata.xml
@@ -5,18 +5,11 @@
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
- <longdescription>
- C-&gt;Haskell assists in the development of Haskell bindings to C
- libraries. It extracts interface information from C header
- files and generates Haskell code with foreign imports and
- marshaling. Unlike writing foreign imports by hand (or using
- hsch2s), this ensures that C functions are imported with the
- correct Haskell types.
- </longdescription>
<use>
- <flag name="regression">run regression tests</flag>
+ <flag name="regression">Enable regression suite build.</flag>
</use>
<upstream>
+ <remote-id type="hackage">c2hs</remote-id>
<remote-id type="github">haskell/c2hs</remote-id>
</upstream>
</pkgmetadata>