summaryrefslogtreecommitdiff
path: root/dev-perl/CryptX
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-08 12:03:01 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-08 12:03:01 +0100
commit522fa4e6f267ba688a264ceec8d6c79663b61219 (patch)
tree67895f3a8243148309fbd841dabba28c37f4ed4a /dev-perl/CryptX
parent32c16465e56b0122cf6e5a4625e9c7b56b107b07 (diff)
gentoo auto-resync : 08:10:2023 - 12:03:01
Diffstat (limited to 'dev-perl/CryptX')
-rw-r--r--dev-perl/CryptX/CryptX-0.80.0.ebuild51
-rw-r--r--dev-perl/CryptX/Manifest3
-rw-r--r--dev-perl/CryptX/files/CryptX-0.80.0-respect-flags.patch23
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-perl/CryptX/CryptX-0.80.0.ebuild b/dev-perl/CryptX/CryptX-0.80.0.ebuild
new file mode 100644
index 000000000000..2204a761a01e
--- /dev/null
+++ b/dev-perl/CryptX/CryptX-0.80.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 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.080
+inherit perl-module
+
+DESCRIPTION="Self-contained crypto toolkit"
+
+LICENSE="|| ( Artistic GPL-1+ ) public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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.80.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 af2384a50d46..c3f77de2a71b 100644
--- a/dev-perl/CryptX/Manifest
+++ b/dev-perl/CryptX/Manifest
@@ -1,9 +1,12 @@
+AUX CryptX-0.80.0-respect-flags.patch 1501 BLAKE2B dfdcf99c494e00f07bfbd38f0fdd70adadd31d016729b700cb125d50da5447b4fb86c2df6c3e74b78da7d364a73fcc24bbdc769a8cf838346528b93a07887299 SHA512 bdfb57ff8641b98a2deee9e4b9323040b34fd042e76fe65aab0fbc62567e4300f9105dc19c81dfa499874e0f85d1c5e6a1d47c0fcdc8a7b02f36491a5dfc4112
DIST CryptX-0.072.tar.gz 1643459 BLAKE2B 28bb06ef870287ccd9f46c2ed5d7b434e33563046598cff5c505c74c68d29b5bf58ad0dd3a5d968c6717ccb6cfdbf1b33982b49a87b9e4f7c85af9ab40d617d5 SHA512 9e51181b14c08f8c0769089f8c9a5feefa7c4f1a8dff2501cf1d1d475ae162f8df35c7cceff9d1742552951e13450cac9d70eb1ead8178e0c95cd1abfea5e03c
DIST CryptX-0.073.tar.gz 1643681 BLAKE2B 01a8a9082d4abbe6ae17b1fb53f9e0fbcf2aa8124381f11124ee55a23046f2c08aa403ce3a38a14f6bd36b3f61b539d704c913b0bea18d5c90a1b8336c464229 SHA512 592e4d657870785d7d13ba74bdc28c62575c4cf1ed95fb8de4524617ae92d196c5f1bc031ea4a39601ddb6ea8484dc28a4f2ddf53e2348466e9f8307956d0646
DIST CryptX-0.077.tar.gz 1647312 BLAKE2B bc685f298f10c73812b13496a42d180f19d85c3e37a1ec47b4561835faaf66a7c5d3d6dcd9769df72c89e69f77858358c0f34498467bfc8436fe621c0601dcf5 SHA512 dde98e40fac2e4107e54ea81ddbe2db1e39134802aca3a82cc83fe1d5c7cea9cc6ceedc2a8eb48a08df9e09b7cbe9b82a6d0bdb35b8a94df580982e36f5f2a92
DIST CryptX-0.078.tar.gz 1647544 BLAKE2B 6589fc46abaca313a8f1a5e32d8744ee523427646e35e530ea8c26521479889a4ca42df0f69eb5bb7e58de76dea00db0d60521b5be44accfef6df913c82cf0c4 SHA512 c930b337fdc958de73dcf62291410a992690c1c735e68f16859c1ea50d21d6fad2c6d05d13a39797505ed746172f1885e5038c4ccff04259862d59b40dd12fe1
+DIST CryptX-0.080.tar.gz 1651772 BLAKE2B a1c85cde7531eecbb2f82a715636de6bd9b5f9f209beb8a913757b0da955e8077c8ec01faf69dadc9f20744e0c03748d37ea0907d172e7b89315192c60780f18 SHA512 5702f59f28c70858eb2e78046c6415a816d94f45214092d4e2e938c0655a37e58e5295b2a7f753ee42e0fe4c2ce5632c068d80c7b3055cce1ecb0e5784fca475
EBUILD CryptX-0.72.0.ebuild 1073 BLAKE2B 042568e0e3454de4ab995e07bd2c3b4102a9969b294e33a0b72eb021c39baab18ce55531668ac185bd0134130e5e2fe8acee09bc9814655ab47d1cfbd0d20833 SHA512 7a7ae730bd760871c48482d19298de53d61b22edfcb15b759097cba820476f4bbb5ba200bcad1d72939e487ca53ae39cea7ea72f5e2bb694187ee073b3f65eb5
EBUILD CryptX-0.73.0.ebuild 987 BLAKE2B 6c45f225d27d0efb3d5f6e0c18e660c5f200d2f8bdd9182d6a1f2471355cd6cf3117f9b791ba06d22e59612e3a8d735504dbc5e88f11fe48629064e3e6432a60 SHA512 9648f6c6600087c5213ed7f03b5b06c2f2cbd1c944a80c4dda95fa0620e2b2c82724040d08b9cac9f3a4f9302cc0dd3b5b02f4d3630cb3e3f7e63c4431c1b80d
EBUILD CryptX-0.77.0.ebuild 927 BLAKE2B df6c2bcc9898c07b6287c355721b7bba772e8af5a8e5316161b271116d4924f5b324150c3a5c945a0fe99bb58243d7b7f623689617e9a58415a7f982f2474728 SHA512 6cafd3d08af74818c4fef671a71b90c1a59f5709707d39172f92499decc0ffeac0e406a17fba4c92f8d4387ac350f94fe8f6f83d1f2c0f9a8794d32a52f80d9d
EBUILD CryptX-0.78.0.ebuild 944 BLAKE2B 8bb206c7226a0d87cac5d16b33d35072028d1c580da4ea5477384ad62a9eb7685e163b04153848e58f56f797fd86260b995271bad3bdd07d6a9a988b04c6977d SHA512 862ece8d0e3e61af5fc3e2c1c8f76e33275c96209e0e73a13f4880fa357f8ba98ace812e71d2f88c0fad16cbec2c95dbef3f0000499a1076055c4c0d83a693a5
+EBUILD CryptX-0.80.0.ebuild 1012 BLAKE2B 2eef6022d1f20e3ae52cb309c9dd2557c974f446d27dd2ad3b5d42e39a3f8d7e7e544a994aa8d736b593d6b34527af7ce3b3865fe1e5536c6f62c610a7055a05 SHA512 f21821fa023a4ff9aef9b5728af0983ee38aeb1469f3debb920193bd75067e0007e195fd98059ac1982686389b35687c99f102486a321450b468a10929f275ac
MISC metadata.xml 7682 BLAKE2B dac5e42af5a5b3a49af0adb11718172066090ddcc8dec1661d29ca76eca4a0b34b2c828b83a9fce8b125c1a2120ec513edaf9d97ee8e32c313e4e4aa99fdcef9 SHA512 4559cc741fc4c095500301bc8c89bb2a2680454e3428bff9e1d2c6ad0853aa9568f731af65ef275e80692d148bb83e9f1dad1186853d058e65c25e5df26fa4c9
diff --git a/dev-perl/CryptX/files/CryptX-0.80.0-respect-flags.patch b/dev-perl/CryptX/files/CryptX-0.80.0-respect-flags.patch
new file mode 100644
index 000000000000..eefc75b514d2
--- /dev/null
+++ b/dev-perl/CryptX/files/CryptX-0.80.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 .= " -msse4.1 -maes" if $ver1 > 4; # supported since gcc-4.4
+- }
+-
+ #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};