summaryrefslogtreecommitdiff
path: root/dev-haskell/cryptonite
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-23 08:35:49 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-23 08:35:49 +0100
commit386855c4d1ef509c1fd32abd721589c81669613b (patch)
tree35dc984118f0a7dc2df88313d83bb5779fd12514 /dev-haskell/cryptonite
parent0118ac4510d7b85ca62da20e4abd1286dd8bd752 (diff)
gentoo auto-resync : 23:10:2023 - 08:35:49
Diffstat (limited to 'dev-haskell/cryptonite')
-rw-r--r--dev-haskell/cryptonite/Manifest6
-rw-r--r--dev-haskell/cryptonite/cryptonite-0.28.ebuild2
-rw-r--r--dev-haskell/cryptonite/cryptonite-0.30.ebuild53
-rw-r--r--dev-haskell/cryptonite/metadata.xml24
4 files changed, 59 insertions, 26 deletions
diff --git a/dev-haskell/cryptonite/Manifest b/dev-haskell/cryptonite/Manifest
index faedd0222133..4157e4b4997e 100644
--- a/dev-haskell/cryptonite/Manifest
+++ b/dev-haskell/cryptonite/Manifest
@@ -1,4 +1,6 @@
DIST cryptonite-0.28.tar.gz 616309 BLAKE2B 3fa11777574fab06c264709d4de7b56fd4b276fbee93f4731683a9a18f83cf77d2042679f2eac3044d336c5be382e1e4eb0c90862c20b0f452eaafdee401e616 SHA512 c1e485522938f94f15910a5b5a4a3e4dfecbb62df463c80faaa51e9d883c2612611b8486bd0fd13660766cfb6d62d366fbbd03df2db874d525514aae247b6242
+DIST cryptonite-0.30.tar.gz 621062 BLAKE2B cf955f83b72a4fe4ce4aac4d1b3bb322922e9e3e76ab6c6119c359c304c060ccb706a7b7df4d06817be6914535ede6c46f45cc3b2ef76d3a7404881531cebe35 SHA512 519120263fb7c2b9f910e48cf43feaca07f7e705ea70c578da362dafa637b654cab90e3b9484497e33a6fdd5b8f867c0ede60d0dddba02602044b9b3de502d16
DIST cryptonite-338.patch 1823 BLAKE2B 99a502e16ec061b37e1d3dc343760c86c1eb1cecf23a9061ef3198082d2777fa129196af3322153558e1da7e87b125bfa3a1e32501482767bbbe2e4ca874d65f SHA512 1f00a31791fef52e7bdb2b052912f8ede9022ee4013d1f74321ff10517c4c8df68be9b97d4bfd88140f5686b3b9d01e0937909dd5a2c462920e559accde8e72d
-EBUILD cryptonite-0.28.ebuild 1967 BLAKE2B df7f0447750f58bca208b70b6cb417359212e20a8c92694cfc1138f8ae8a992ac70936226380ed6001ee5591095fce3589be154e556abfb450d6bb9d1c00de29 SHA512 0101a9d1cd29eb97f4cc5ae6311fb0244fbd46890d636e891dfc05ec368e78ca94b3bbdcc332faa86b380b75403e507186dc17d2bb2256b2755561b041b00923
-MISC metadata.xml 1369 BLAKE2B dce4bc44ed0f1348aa690a9012811c9ed24c2826f5ab47612426621c69ea865576cb748c7d887a34b5fd6ea14c67d1eb40b95d9283cd2e15ac9c2b835dad6560 SHA512 5e3f9bc2d199ccedc44f4545bf3ed955f5d6b5eb7e9c2a3c1fccf380e95c946e5ccdf86383900d8de91cf44e3eb5ad4fd98d9fe27214b068287ce389237e97a5
+EBUILD cryptonite-0.28.ebuild 1967 BLAKE2B 9ec7273d21ae9257ea9ba20d8cd0780d7915a16eb39ed5c843b6c183ae6b63871198b3c5537164b0f69ab919c24aa9745a10effcabf1bbe0200dcc4c683d7d26 SHA512 f28b06b3b37ee341b1fc071a16fbb090dc02ae2435270b512cf2115454aa25caff1bc945a4086703bb0ef02b5b8fa85111fe15ff4501c7ce021c4a42a80eb286
+EBUILD cryptonite-0.30.ebuild 1774 BLAKE2B 36a27638e0b2ec655da12979c8379fb7412bdb541d4473a482a0d1d32bdb0f6f68b007c6623cbaa0f195e66fe15248b89aac119bf3c2b6e71cc9d60ea29c2fb6 SHA512 3a00f8bbf9e8ae449aa70c22f18601edfa30dda29a148d0de7cf8d928eec14ba2193a56bf4c01e8dbc8346aeabbdfe4477e8c24429b1ed03f5557cdfd26e7694
+MISC metadata.xml 595 BLAKE2B d88bb3ab1b16d962d64ba115c7674471780f9b0da47f59662256d327cd3573f78a3495ca7d2489d943767a79bb4c117059dd2a0e2933a575b28eefcf063f4cf3 SHA512 c5070a49a6e709e4f6db3e1702fb0e68182188f4202f1f6015d07a15a25f45275b2d1237de74345986243267e1d8610df7c53ed3ef6ac406b7701776a23f08aa
diff --git a/dev-haskell/cryptonite/cryptonite-0.28.ebuild b/dev-haskell/cryptonite/cryptonite-0.28.ebuild
index 1a9e58a3808c..af3cb754b8e9 100644
--- a/dev-haskell/cryptonite/cryptonite-0.28.ebuild
+++ b/dev-haskell/cryptonite/cryptonite-0.28.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
#hackport: flags: -check_alignment,-old_toolchain_inliner,+support_deepseq,support_aesni:cpu_flags_x86_aes,support_pclmuldq:cpu_flags_x86_sse4_1,support_sse:cpu_flags_x86_sse,support_rdrand:cpu_flags_x86_rdrand
diff --git a/dev-haskell/cryptonite/cryptonite-0.30.ebuild b/dev-haskell/cryptonite/cryptonite-0.30.ebuild
new file mode 100644
index 000000000000..e32cfe9178c8
--- /dev/null
+++ b/dev-haskell/cryptonite/cryptonite-0.30.ebuild
@@ -0,0 +1,53 @@
+# 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
+#hackport: flags: -check_alignment,-old_toolchain_inliner,+support_deepseq,support_aesni:cpu_flags_x86_aes,support_pclmuldq:cpu_flags_x86_sse4_1,support_sse:cpu_flags_x86_sse,support_rdrand:cpu_flags_x86_rdrand
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit flag-o-matic haskell-cabal
+
+DESCRIPTION="Cryptography Primitives sink"
+HOMEPAGE="https://github.com/haskell-crypto/cryptonite"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="cpu_flags_x86_aes cpu_flags_x86_rdrand cpu_flags_x86_sse cpu_flags_x86_sse4_1 +integer-gmp +target-attributes"
+
+RDEPEND=">=dev-lang/ghc-8.4.3:=
+ >=dev-haskell/memory-0.14.18:=[profile?]
+ >=dev-haskell/basement-0.0.6:=[profile?]
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-2.2.0.1
+ test? ( dev-haskell/tasty
+ dev-haskell/tasty-hunit
+ dev-haskell/tasty-kat
+ dev-haskell/tasty-quickcheck )
+"
+
+src_prepare() {
+ default
+
+ # On AVX2 cryptonite's own test suite crashes on unaligned access:
+ # https://github.com/haskell-crypto/cryptonite/issues/347
+ # Disable extensions that might require extra alignment.
+ use amd64 && append-flags -mno-avx2
+ use x86 && append-flags -mno-avx2
+}
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=-check_alignment \
+ $(cabal_flag integer-gmp integer-gmp) \
+ --flag=-old_toolchain_inliner \
+ $(cabal_flag cpu_flags_x86_aes support_aesni) \
+ --flag=support_deepseq \
+ $(cabal_flag cpu_flags_x86_sse4_1 support_pclmuldq) \
+ $(cabal_flag cpu_flags_x86_rdrand support_rdrand) \
+ $(cabal_flag cpu_flags_x86_sse support_sse) \
+ $(cabal_flag target-attributes use_target_attributes)
+}
diff --git a/dev-haskell/cryptonite/metadata.xml b/dev-haskell/cryptonite/metadata.xml
index 91b640f27b37..d75d89255758 100644
--- a/dev-haskell/cryptonite/metadata.xml
+++ b/dev-haskell/cryptonite/metadata.xml
@@ -5,34 +5,12 @@
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
- <longdescription>
- A repository of cryptographic primitives.
-
- * Symmetric ciphers: AES, DES, 3DES, Blowfish, Camellia, RC4, Salsa, ChaCha.
-
- * Hash: SHA1, SHA2, SHA3, MD2, MD4, MD5, Kekkak, Skein, Ripemd, Tiger, Whirlpool
-
- * MAC: HMAC, Poly1305
-
- * Assymmetric crypto: DSA, RSA, DH, ECDH, ECDSA, ECC, Curve25519, Ed25519
-
- * Key Derivation Function: PBKDF2, Scrypt
-
- * Cryptographic Random generation: System Entropy, Deterministic Random Generator
-
- * Data related: Anti-Forensic Information Splitter (AFIS)
-
- If anything cryptographic related is missing from here, submit
- a pull request to have it added. This package strive to be a
- cryptographic kitchen sink that provides cryptography for everyone.
-
- Evaluate the security related to your requirements before using.
- </longdescription>
<use>
<flag name="integer-gmp">Whether or not to use GMP for some functions</flag>
<flag name="target-attributes">use GCC / clang function attributes instead of global target options.</flag>
</use>
<upstream>
+ <remote-id type="hackage">cryptonite</remote-id>
<remote-id type="github">haskell-crypto/cryptonite</remote-id>
</upstream>
</pkgmetadata>