summaryrefslogtreecommitdiff
path: root/dev-haskell/cryptohash-sha256
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/cryptohash-sha256')
-rw-r--r--dev-haskell/cryptohash-sha256/Manifest7
-rw-r--r--dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.101.0.ebuild14
-rw-r--r--dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.102.1.ebuild58
-rw-r--r--dev-haskell/cryptohash-sha256/metadata.xml19
4 files changed, 73 insertions, 25 deletions
diff --git a/dev-haskell/cryptohash-sha256/Manifest b/dev-haskell/cryptohash-sha256/Manifest
index 44e4a7c98042..908a76bd78a0 100644
--- a/dev-haskell/cryptohash-sha256/Manifest
+++ b/dev-haskell/cryptohash-sha256/Manifest
@@ -1,3 +1,6 @@
DIST cryptohash-sha256-0.11.101.0.tar.gz 14996 BLAKE2B 9caccc3eea4ad25c6ebbdd507771d86264a853f282d03399917b42a5311dcad0501bd0b4ea6fa00d039f67bcea3f81c116b9ec016d65cb2ed6f086b0448894c0 SHA512 c755f1354fb5f1d6cfb54f73e39692392517954118d98b39ac4be7460e75a9ddc91ad641fed0f17e5fa33b62b7b0734af66526ea757e00716832572bb383c612
-EBUILD cryptohash-sha256-0.11.101.0.ebuild 1191 BLAKE2B edf57c1eefbdb623ee8ec8b30ca7b67848905238fc163f93dcc45412e208f4c63acba3c41adf02d975fff037ae6c0c3b0d9f36df6244b9d15fe4d707ace026a0 SHA512 f72041f785dd389a522213ac8a9ae99c46e06ba52142059813b62f2bf95f0f5b2ead67ad87dda2052ddf9c275a75b700eb9dd03ff806a23e072a4b25b45e20f9
-MISC metadata.xml 1143 BLAKE2B f5ab4eab042b822fad8da67002f89848d0f808f41f6837f0f0c678e8733e1c8d8d268933bec154a5aa3af3326ad5b7f40084dbf2c9113eb0f30f31cf972043da SHA512 79adea74eeceb7d7be48f8c002edf3b056c23a2ab01121decd48559b09e4eea4d8324021a313bc35f7919db2b36deda2d8e7fbed01243ef452f48f5059d208f9
+DIST cryptohash-sha256-0.11.102.1-rev3.cabal 5457 BLAKE2B ed2c47aaed406a62bff372abf9f7768a7a40dc3a84d9ccd16c50dc5a0a05957f6885a87619d463ef546bd804b406f9a632963ec60818efc12582dac6edca46af SHA512 b1a3807ce57eb3f24b343a903b6849c08e4de90d33f77504723b8c5b18138ab527a953fee3ff06d6a55e4af1360494289149e199182422a9734b209bfe9f37c1
+DIST cryptohash-sha256-0.11.102.1.tar.gz 15707 BLAKE2B 16f7b8c39df3eac22af30ea14c98b0a6ef8056118dbc8236dd8951f7d35e32ba07fbf5f318a0896b0ef70ff1459f03937df4ef30b0247835e7550fedaf42386e SHA512 fb4432050ab1236fc913ba50949ee52a117b0d74509b58868e8ade69bfc6e89e1379dfea48afc76d8527d4fdbaee9dd1d2dcea4530ba95a42441491df005e78c
+EBUILD cryptohash-sha256-0.11.101.0.ebuild 1155 BLAKE2B 04017bef4415c37a92ad58f2e4bee623b95892b5532dc06f8769349243ded5d07f8f1b73ebfd328de8bf215243299621c29b245ac943199209845ebe2d84106c SHA512 41da12162b754349ad9bff404ac42f24147163967f65cea7b8c438b4fa44963e8dbd0751d66bf430de97dff05134856015ee62ae8a8633da26e5ef1075f25296
+EBUILD cryptohash-sha256-0.11.102.1.ebuild 1309 BLAKE2B 7e9aefd7a3eb6dde6581279ad2cbd565e397d93e3fe1e8b7c6622d48c2ecd57f8981f021655571dbb29a3e29b7e8bfed8d0b88ce11e6728d67aaa0d27449669b SHA512 bc44bbfc0a7866a5d958aeca55fd8b97f9e28a6a374f19a6c38fd69e3c0e1e314b67b6065b377c9a34f5f6a5ec67ee595659da23dfa4684452f67af4dcc170fa
+MISC metadata.xml 484 BLAKE2B b021645a12dfae9090425935abe51517cf27d77d78a0abfd9aec5f206b04e3f3add23ed2cb619391efdb6e6d4adfa528500296683205937c573491f9234ca25d SHA512 c0968614a1a25b90015e3321dee512196d717ed23f389df1cee5ecf1ac1fa684ae9c8e68c80794449b24f059ba4fb8f73e8550939f12a85a06a00df57cfd7e83
diff --git a/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.101.0.ebuild b/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.101.0.ebuild
index 767f820e8d87..3c2252862587 100644
--- a/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.101.0.ebuild
+++ b/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.101.0.ebuild
@@ -29,14 +29,12 @@ DEPEND="${RDEPEND}
>=dev-haskell/tasty-quickcheck-0.8 )
"
-src_prepare() {
- cabal_chdeps \
- 'base >= 4.5 && < 4.11' 'base >= 4.5' \
- 'tasty == 0.11.*' 'tasty >= 0.11' \
- 'tasty-quickcheck == 0.8.*' 'tasty-quickcheck >= 0.8' \
- 'tasty-hunit == 0.9.*' 'tasty-hunit >= 0.9'
- default
-}
+CABAL_CHDEPS=(
+ 'base >= 4.5 && < 4.11' 'base >= 4.5'
+ 'tasty == 0.11.*' 'tasty >= 0.11'
+ 'tasty-quickcheck == 0.8.*' 'tasty-quickcheck >= 0.8'
+ 'tasty-hunit == 0.9.*' 'tasty-hunit >= 0.9'
+)
src_configure() {
haskell-cabal_src_configure \
diff --git a/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.102.1.ebuild b/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.102.1.ebuild
new file mode 100644
index 000000000000..0e9b0ff14db7
--- /dev/null
+++ b/dev-haskell/cryptohash-sha256/cryptohash-sha256-0.11.102.1.ebuild
@@ -0,0 +1,58 @@
+# 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: exe:executable,+use-cbits
+
+CABAL_HACKAGE_REVISION=3
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast, pure and practical SHA-256 implementation"
+HOMEPAGE="https://github.com/hvr/cryptohash-sha256"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="executable"
+
+CABAL_CHBINS=(
+ 'sha256sum' 'cryptohash-sha256sum'
+)
+
+RDEPEND="
+ >=dev-lang/ghc-8.10.6:=
+ executable? (
+ || (
+ ( >=dev-haskell/base16-bytestring-0.1.1 <dev-haskell/base16-bytestring-0.2 )
+ =dev-haskell/base16-bytestring-1.0*
+ )
+ dev-haskell/base16-bytestring:=[profile?]
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ >=dev-haskell/cabal-3.2.1.0
+ test? (
+ >=dev-haskell/sha-1.6.4 <dev-haskell/sha-1.7
+ >=dev-haskell/tasty-1.4 <dev-haskell/tasty-1.6
+ =dev-haskell/tasty-hunit-0.10*
+ =dev-haskell/tasty-quickcheck-0.10*
+ || (
+ ( >=dev-haskell/base16-bytestring-0.1.1 <dev-haskell/base16-bytestring-0.2 )
+ =dev-haskell/base16-bytestring-1.0*
+ )
+ )
+"
+
+src_configure() {
+ local conf_flags=(
+ $(cabal_flag executable exe)
+ --flag=use-cbits
+ )
+
+ haskell-cabal_src_configure "${conf_flags[@]}"
+}
diff --git a/dev-haskell/cryptohash-sha256/metadata.xml b/dev-haskell/cryptohash-sha256/metadata.xml
index eaac8fbe800a..0abeaaf769d6 100644
--- a/dev-haskell/cryptohash-sha256/metadata.xml
+++ b/dev-haskell/cryptohash-sha256/metadata.xml
@@ -5,22 +5,11 @@
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
- <longdescription>
- A practical incremental and one-pass, pure API to the
- &lt;https://en.wikipedia.org/wiki/SHA-2 SHA-256 hash algorithm&gt;
- with performance close to the fastest implementations available in other languages.
-
- The implementation is made in C with a haskell FFI wrapper that hides the C implementation.
-
- NOTE: This package has been forked off @cryptohash-0.11.7@ because the @cryptohash@ has been
- deprecated and so this package continues to satisfy the need for a lightweight package
- providing the SHA256 hash algorithm without any dependencies on packages other than
- @base@ and @bytestring@.
-
- Consequently, this package can be used as a drop-in replacement for @cryptohash@'s
- "Crypto.Hash.SHA256" module, though with a clearly smaller footprint.
- </longdescription>
+ <use>
+ <flag name="executable">Build the cryptohash-sha256sum executable</flag>
+ </use>
<upstream>
+ <remote-id type="hackage">cryptohash-sha256</remote-id>
<remote-id type="github">hvr/cryptohash-sha256</remote-id>
</upstream>
</pkgmetadata>