summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhololeap <hololeap@protonmail.com>2023-10-02 23:06:57 -0600
committerSam James <sam@gentoo.org>2023-10-23 04:09:26 +0100
commit5016f55b0faa9265bd15ee8d891197c25c7bf4f5 (patch)
tree0e8d1bad2095e1ffaa021506e54efdd574853bff /dev-haskell/cryptonite
parentdev-haskell/cryptohash-sha256: Migrate to CABAL_CHDEPS (diff)
downloadgentoo-5016f55b0faa9265bd15ee8d891197c25c7bf4f5.tar.gz
gentoo-5016f55b0faa9265bd15ee8d891197c25c7bf4f5.tar.bz2
gentoo-5016f55b0faa9265bd15ee8d891197c25c7bf4f5.zip
dev-haskell/cryptonite: add 0.30
Signed-off-by: hololeap <hololeap@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell/cryptonite')
-rw-r--r--dev-haskell/cryptonite/Manifest1
-rw-r--r--dev-haskell/cryptonite/cryptonite-0.30.ebuild53
-rw-r--r--dev-haskell/cryptonite/metadata.xml24
3 files changed, 55 insertions, 23 deletions
diff --git a/dev-haskell/cryptonite/Manifest b/dev-haskell/cryptonite/Manifest
index e924d8e11346..ac7bee5184c5 100644
--- a/dev-haskell/cryptonite/Manifest
+++ b/dev-haskell/cryptonite/Manifest
@@ -1,2 +1,3 @@
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
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>