summaryrefslogtreecommitdiff
path: root/dev-perl/CryptX
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-15 04:04:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-15 04:04:09 +0100
commit45392c898b8ba163e95028bd98896e77f0c73806 (patch)
treebf6b64dd472acc2960a5c24b26dd0ac036b47d0d /dev-perl/CryptX
parent2916cf6049cf9d3092021e247d56c580df6029a7 (diff)
gentoo auto-resync : 15:10:2024 - 04:04:09
Diffstat (limited to 'dev-perl/CryptX')
-rw-r--r--dev-perl/CryptX/CryptX-0.82.0.ebuild51
-rw-r--r--dev-perl/CryptX/Manifest3
-rw-r--r--dev-perl/CryptX/files/CryptX-0.82.0-respect-flags.patch23
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-perl/CryptX/CryptX-0.82.0.ebuild b/dev-perl/CryptX/CryptX-0.82.0.ebuild
new file mode 100644
index 000000000000..8ead20c69e2b
--- /dev/null
+++ b/dev-perl/CryptX/CryptX-0.82.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO: unbundle libtommath, libtomcrypt. There's experimental support upstream.
+# bug #732634
+
+DIST_AUTHOR=MIK
+DIST_VERSION=0.082
+inherit perl-module
+
+DESCRIPTION="Self-contained crypto toolkit"
+
+LICENSE="|| ( Artistic GPL-1+ ) public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="minimal"
+
+RDEPEND="
+ virtual/perl-Math-BigInt
+ !minimal? (
+ dev-perl/JSON
+ )
+"
+BDEPEND="
+ ${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+ test? (
+ >=virtual/perl-Test-Simple-0.880.0
+ !minimal? (
+ >=virtual/perl-Math-BigInt-1.999.715
+ >=virtual/perl-Storable-2.0.0
+ )
+ )
+"
+
+PERL_RM_FILES=(
+ t/002_all_pm.t
+ t/003_all_pm_pod.t
+ t/004_all_pm_pod_spelling.t
+ t/005_all_pm_pod_coverage.t
+)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.82.0-respect-flags.patch
+)
+
+#src_configure() {
+# CRYPTX_LDFLAGS='-ltommath -ltomcrypt' perl-module_src_configure
+#}
diff --git a/dev-perl/CryptX/Manifest b/dev-perl/CryptX/Manifest
index 3820e12d0e63..19a9812340a0 100644
--- a/dev-perl/CryptX/Manifest
+++ b/dev-perl/CryptX/Manifest
@@ -1,5 +1,8 @@
AUX CryptX-0.80.0-aesni.patch 1010 BLAKE2B 048629928d1bb6854747f3b51461d08c14f08e0cd3df9f6f470cf9e71bba1d80a84eb51dac6778a33f31882c08fec021fbffe3b6e5873ba2376c153b3e04c04e SHA512 bf04f28e1073030867f834b28bfd2079319773f68e81cadbd75b385a3c67112c0661d7eadca8f31dec598c2757d34351e1f7a2fad5902c9c612dd36680939ed0
AUX CryptX-0.80.0-respect-flags.patch 1501 BLAKE2B dfdcf99c494e00f07bfbd38f0fdd70adadd31d016729b700cb125d50da5447b4fb86c2df6c3e74b78da7d364a73fcc24bbdc769a8cf838346528b93a07887299 SHA512 bdfb57ff8641b98a2deee9e4b9323040b34fd042e76fe65aab0fbc62567e4300f9105dc19c81dfa499874e0f85d1c5e6a1d47c0fcdc8a7b02f36491a5dfc4112
+AUX CryptX-0.82.0-respect-flags.patch 1521 BLAKE2B d626cdc2ed56e109b625d641c7b9c0d7a1e808bb2b80bbe92951fac29039d1b6ca280458acbbb0be5d788686fdacb8f66381c73636c903114a881d0813306e0c SHA512 43971ff34d103c6475d2d2e7fbee440dca55572898b7e8694cb654db36e5f551182342fdb9abd6f72cd71085ff2fac9872fe724ef1be2c3a400336a0e5c30905
DIST CryptX-0.080.tar.gz 1651772 BLAKE2B a1c85cde7531eecbb2f82a715636de6bd9b5f9f209beb8a913757b0da955e8077c8ec01faf69dadc9f20744e0c03748d37ea0907d172e7b89315192c60780f18 SHA512 5702f59f28c70858eb2e78046c6415a816d94f45214092d4e2e938c0655a37e58e5295b2a7f753ee42e0fe4c2ce5632c068d80c7b3055cce1ecb0e5784fca475
+DIST CryptX-0.082.tar.gz 1719511 BLAKE2B 05f1ac12fd6ae04408f2ebe2568aa8cd6782e87cf8db1d2511a20a6cb49facc24c19526db223e8859f8a57bc5c3313997c6d8747923669018d0fc979d78ee034 SHA512 70b42717f4695ae77b5227b5e6a92d12d351796f06e36c38613020c2d9f0ebbc742ad3e258851ab65ad8d8b95e2d7b590b5a54c06755fec4c44b88a27f486590
EBUILD CryptX-0.80.0-r1.ebuild 1039 BLAKE2B 937200dbcafe4dda2615c0fc2d4c8b6a24f88de2797fec4a820ad8f5f91958485fd5dd3c4fe601e3e8156533b153c58384978d7d6142d77a95a7b19c780f367f SHA512 5052d4876bd86e85c0c15b65f5435367ce1b2ada2f1ccc80b2c20a0ca28a87764a9db4d57fc9bed4eb0c9251e230a2ba801821bbb514c8d1838061ea61cd821b
+EBUILD CryptX-0.82.0.ebuild 1005 BLAKE2B 24a9191d94f895cf38ddbe1a55cc48d6bc9e86854ce4af4d18e428926a5cc0c1a87a5e61d4f070d60aa982a297316ca7036f9ce88e98bdb191c0fc7b660962fa SHA512 9f0670215333e3d4d63a9d94c19ffd5e3a25bdc704dc68f713bf7089ea733edbe1106dcd36528c56c7be4fa358ae1b8938467b8398b9a1ff2d5b31e3d8c34d9f
MISC metadata.xml 7682 BLAKE2B dac5e42af5a5b3a49af0adb11718172066090ddcc8dec1661d29ca76eca4a0b34b2c828b83a9fce8b125c1a2120ec513edaf9d97ee8e32c313e4e4aa99fdcef9 SHA512 4559cc741fc4c095500301bc8c89bb2a2680454e3428bff9e1d2c6ad0853aa9568f731af65ef275e80692d148bb83e9f1dad1186853d058e65c25e5df26fa4c9
diff --git a/dev-perl/CryptX/files/CryptX-0.82.0-respect-flags.patch b/dev-perl/CryptX/files/CryptX-0.82.0-respect-flags.patch
new file mode 100644
index 000000000000..094997d86400
--- /dev/null
+++ b/dev-perl/CryptX/files/CryptX-0.82.0-respect-flags.patch
@@ -0,0 +1,23 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -27,20 +27,6 @@ else {
+ );
+ $mycflags = " $Config{ccflags} $Config{cccdlflags} $Config{optimize} "; # keep leading + trailing spaces
+
+- my $try_aes_ni = 0;
+- $try_aes_ni = 1 if $Config{archname} =~ /x86_64/; # x86_64-cygwin-threads-multi / x86_64-linux-thread-multi
+- $try_aes_ni = 1 if $Config{archname} =~ /MSWin32-x64/; # MSWin32-x64-multi-thread
+- $try_aes_ni = 1 if $Config{archname} =~ /amd64/; # OpenBSD.amd64-openbsd-thread-multi / amd64-freebsd
+- $try_aes_ni = 1 if $Config{archname} =~ /darwin/ && $Config{myuname} =~ /x86_64/; # darwin-thread-multi-2level / darwin-2level
+- $try_aes_ni = 1 if $Config{archname} =~ /i86pc-solaris(-.+)?-64/; # i86pc-solaris-thread-multi-64 / i86pc-solaris-64
+- if ($try_aes_ni && $Config{gccversion}) {
+- my $ver1;
+- $ver1 ||= $1 if $Config{gccversion} =~ /^([0-9]+)\./; # gccversion='10.2.0'
+- $ver1 ||= $1 if $Config{gccversion} =~ /LLVM ([0-9]+)\./i; # gccversion='Apple LLVM 14.0.0 (clang-1400.0.29.202)'
+- $ver1 ||= $1 if $Config{gccversion} =~ /Clang ([0-9]+)\./i; # gccversion='FreeBSD Clang 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)' or 'OpenBSD Clang 13.0.0'
+- $mycflags .= " -DLTC_AES_NI" if $ver1 > 4; # target attributes are supported since gcc-4.9
+- }
+-
+ #FIX: this is particularly useful for Debian https://github.com/DCIT/perl-CryptX/pull/39
+ $mycflags .= " $ENV{CFLAGS} " if $ENV{CFLAGS};
+ $mycflags .= " $ENV{CPPFLAGS} " if $ENV{CPPFLAGS};