summaryrefslogtreecommitdiff
path: root/dev-haskell/chell
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/chell')
-rw-r--r--dev-haskell/chell/Manifest6
-rw-r--r--dev-haskell/chell/chell-0.4.0.2.ebuild8
-rw-r--r--dev-haskell/chell/chell-0.5.0.2.ebuild44
-rw-r--r--dev-haskell/chell/metadata.xml41
4 files changed, 55 insertions, 44 deletions
diff --git a/dev-haskell/chell/Manifest b/dev-haskell/chell/Manifest
index d27101612344..38aad2801161 100644
--- a/dev-haskell/chell/Manifest
+++ b/dev-haskell/chell/Manifest
@@ -1,3 +1,5 @@
DIST chell-0.4.0.2.tar.gz 12424 BLAKE2B 2e525ecacd0f703a873b89afce7c62937634021e65a54ce901b4b50e535131e1fb831173e4d2b3d52ff351df09eaa386377052b35c7e70c75028b59c87ee21ab SHA512 050c5818ad2cd954ef79b230de2f03fdfb19e99c8624a24bb7845bb20e3b5d5d427a9623491ffc706c5635f545eb99466bde7a851c4344d11df1a70bfb2bbe22
-EBUILD chell-0.4.0.2.ebuild 1075 BLAKE2B 589ea6b39a5ff478ce403d4c517a9e204062669df0a18f0898a94a9c77622fa027f9db63c538ec1e1c8df316a22e7482b44d6de73d6e8ac35704bb90dd7e9f84 SHA512 c79cf944d784a0a046dfdf473b81e8126881bed6f9f1c0993491942eab1d1d30b21e722efe7245198f7cc6d42c30017858ab76af17f49e8ad71aebe39a1a7857
-MISC metadata.xml 1349 BLAKE2B d1570863f1780eab05702dcdc650511d6dd8f166ae7ad0721b62ad0cfe58bcb3890c383b6172546f38f7cda96fae4afe7b1062f8857b8bfc9caa80d5542b887e SHA512 99f67e799134b2eb0943bd4b0c5eda392d3c1729999b1b805f8246e1d885a0936413a356c1308c57cd200755883229b964806528bce05c7831320e28a740bdb5
+DIST chell-0.5.0.2.tar.gz 13331 BLAKE2B 3a59f49b5117696290484ece6dad73a3b834a4fdddb62f7ef2f5b27d554a938b47dfc6da616a9d284e15412ca7428aab81371018f559a6c302b1c69e167b3111 SHA512 e2b0cd829882f1c7b18dd2e0ea036b0de27cf859864184ae4b95939d3a5c946e2aa140a49e6596f65326468016de2deb0582428db89893a1b893f25f789c2220
+EBUILD chell-0.4.0.2.ebuild 1048 BLAKE2B 64da9843e163e23cfe2f25e74922d7a6e95b407ebaaf796262ccc0d6925f2e0b5ac7745b29b80ef2283d172dc45bd34704812d3816e4618a6a11b3ede4b91cda SHA512 1b812f09eaa8836089dab79191515ded9b95d8160557253c7f2593ebef40d554e31f358db59cc78c9a2da2ae14903501d88f27b331d25e90e837f35d64e59a02
+EBUILD chell-0.5.0.2.ebuild 1325 BLAKE2B 1809cded24eec9d11f9076b0b2d414228b7cc807a360ab866615eb4a5c5d63a4ae01a861121294f27051e96b1e82ffca3acb0cb8e507d88b84be5b8504a7eb73 SHA512 f144dce3ed45d25ec3bb67ecdc97eaad819a847628d126fdcf5d153560675384decb3c350c13532fd538d050d5e60b4cac587e31d778e7bd0368358d7b35a969
+MISC metadata.xml 457 BLAKE2B 3ab2aabd77637ca85af17461fc51b3d0b78be9c7cfa21e415e27d2b24bc711de5e71e3fb2d2febb262c0692135ff31ba47ac529d3b14b5daa4b24d5e946af678 SHA512 64f154eeaf55e566eeed0af08dec98c432853ac9d24bdf2e9032d4c26828fb0cfefd3283edf330eeb0d9223eac6a7d58998066564cc8d2d73a2dbd3050259891
diff --git a/dev-haskell/chell/chell-0.4.0.2.ebuild b/dev-haskell/chell/chell-0.4.0.2.ebuild
index 8444a9e32cfa..ca08b3a947e4 100644
--- a/dev-haskell/chell/chell-0.4.0.2.ebuild
+++ b/dev-haskell/chell/chell-0.4.0.2.ebuild
@@ -28,11 +28,9 @@ DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18.1.3
"
-src_prepare() {
- cabal_chdeps \
- 'ansi-terminal >= 0.5 && < 0.8' 'ansi-terminal >= 0.5'
- default
-}
+CABAL_CHDEPS=(
+ 'ansi-terminal >= 0.5 && < 0.8' 'ansi-terminal >= 0.5'
+)
src_configure() {
haskell-cabal_src_configure \
diff --git a/dev-haskell/chell/chell-0.5.0.2.ebuild b/dev-haskell/chell/chell-0.5.0.2.ebuild
new file mode 100644
index 000000000000..985d88859ab1
--- /dev/null
+++ b/dev-haskell/chell/chell-0.5.0.2.ebuild
@@ -0,0 +1,44 @@
+# 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
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="A simple and intuitive library for automated testing"
+HOMEPAGE="https://github.com/typeclasses/chell"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="+color-output"
+
+CABAL_CHDEPS=(
+ 'base ^>= 4.16 || ^>= 4.17 || ^>= 4.18' 'base >= 4.14 && < 5'
+ 'bytestring ^>= 0.11.4 || ^>= 0.12' 'bytestring >= 0.10'
+ 'template-haskell ^>=2.18 || ^>= 2.19 || ^>= 2.20' 'template-haskell >= 2.16'
+ 'text ^>= 1.2.5 || ^>= 2.0' 'text >= 1.2'
+ 'transformers ^>= 0.5.6 || ^>= 0.6' 'transformers >= 0.5.6'
+)
+
+RDEPEND="
+ >=dev-haskell/options-1.2.1:=[profile?] <dev-haskell/options-1.3:=[profile?]
+ >=dev-haskell/patience-0.3:=[profile?] <dev-haskell/patience-0.4:=[profile?]
+ >=dev-haskell/random-1.2.1:=[profile?] <dev-haskell/random-1.3:=[profile?]
+ >=dev-haskell/text-1.2:=[profile?]
+ >=dev-lang/ghc-8.10.6:=
+ color-output? (
+ >=dev-haskell/ansi-terminal-1.0:=[profile?] <dev-haskell/ansi-terminal-1.1:=[profile?]
+ )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-3.2.1.0
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag color-output color-output)
+}
diff --git a/dev-haskell/chell/metadata.xml b/dev-haskell/chell/metadata.xml
index 321e6543e1d7..231ab15f33f1 100644
--- a/dev-haskell/chell/metadata.xml
+++ b/dev-haskell/chell/metadata.xml
@@ -5,44 +5,11 @@
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
- <longdescription>
- Chell is a simple and intuitive library for automated testing. It natively
- supports assertion-based testing, and can use companion libraries
- such as @chell-quickcheck@ to support more complex testing strategies.
-
- An example test suite, which verifies the behavior of artithmetic operators.
-
- @
- &amp;#x7b;-\# LANGUAGE TemplateHaskell \#-&amp;#x7d;
-
- import Test.Chell
-
- tests_Math :: Suite
- tests_Math = suite \"math\"
- &amp;#x20; test_Addition
- &amp;#x20; test_Subtraction
-
- test_Addition :: Test
- test_Addition = assertions \"addition\" $ do
- &amp;#x20; $expect (equal (2 + 1) 3)
- &amp;#x20; $expect (equal (1 + 2) 3)
-
- test_Subtraction :: Test
- test_Subtraction = assertions \"subtraction\" $ do
- &amp;#x20; $expect (equal (2 - 1) 1)
- &amp;#x20; $expect (equal (1 - 2) (-1))
-
- main :: IO ()
- main = defaultMain [tests_Math]
- @
-
- @
- $ ghc --make chell-example.hs
- $ ./chell-example
- PASS: 2 tests run, 2 tests passed
- @
- </longdescription>
<use>
<flag name="color-output">use colors in program output</flag>
</use>
+ <upstream>
+ <remote-id type="hackage">chell</remote-id>
+ <remote-id type="github">typeclasses/chell</remote-id>
+ </upstream>
</pkgmetadata>