diff options
Diffstat (limited to 'dev-perl/CryptX')
-rw-r--r-- | dev-perl/CryptX/CryptX-0.80.0-r1.ebuild | 2 | ||||
-rw-r--r-- | dev-perl/CryptX/CryptX-0.82.0.ebuild | 51 | ||||
-rw-r--r-- | dev-perl/CryptX/CryptX-0.84.0.ebuild | 51 | ||||
-rw-r--r-- | dev-perl/CryptX/Manifest | 7 | ||||
-rw-r--r-- | dev-perl/CryptX/files/CryptX-0.82.0-respect-flags.patch | 23 |
5 files changed, 132 insertions, 2 deletions
diff --git a/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild b/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild index 9c53b701d555..a109c02ec202 100644 --- a/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild +++ b/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild @@ -14,7 +14,7 @@ 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" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" IUSE="minimal" RDEPEND=" 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/CryptX-0.84.0.ebuild b/dev-perl/CryptX/CryptX-0.84.0.ebuild new file mode 100644 index 000000000000..4404468aacfd --- /dev/null +++ b/dev-perl/CryptX/CryptX-0.84.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.084 +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 1a3f4e6d55da..5ffd69021f2f 100644 --- a/dev-perl/CryptX/Manifest +++ b/dev-perl/CryptX/Manifest @@ -1,5 +1,10 @@ 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 -EBUILD CryptX-0.80.0-r1.ebuild 1045 BLAKE2B 70c78efea77d70531f83d31fbd3666bfaa716b6b65f2b6ba08d66cf1328a7312e14c44728c6fdd0e4f760041f6c5e2c3c367043fe42ec2ba579efadbda8358ae SHA512 85f7ed5a8c694cb68baf1e0c5e946516048dff45bfa816eb0d4b6e46b2952e3fd7a2152acb3fb1a04114b79e288fa8b8316f957eaa577f7e46403fbc917aeea4 +DIST CryptX-0.082.tar.gz 1719511 BLAKE2B 05f1ac12fd6ae04408f2ebe2568aa8cd6782e87cf8db1d2511a20a6cb49facc24c19526db223e8859f8a57bc5c3313997c6d8747923669018d0fc979d78ee034 SHA512 70b42717f4695ae77b5227b5e6a92d12d351796f06e36c38613020c2d9f0ebbc742ad3e258851ab65ad8d8b95e2d7b590b5a54c06755fec4c44b88a27f486590 +DIST CryptX-0.084.tar.gz 1786781 BLAKE2B 25df25f6ba67f34193dccd15051c6ceb9b71ab9a42735f6560bccdaf10918ed9217a7f7d4ca73b617981c385a18e961b27bdd8f6acf82c15cb246e8e3deba8b2 SHA512 c67c5b0aca1899155c37c3dbdb92249d1bc3e1781478a0aec3b3d4e01c70efd806bc325dc991462f9064ba0f18ec7c56c6d8383f068277ae1fc684cad88d4bd9 +EBUILD CryptX-0.80.0-r1.ebuild 1039 BLAKE2B 937200dbcafe4dda2615c0fc2d4c8b6a24f88de2797fec4a820ad8f5f91958485fd5dd3c4fe601e3e8156533b153c58384978d7d6142d77a95a7b19c780f367f SHA512 5052d4876bd86e85c0c15b65f5435367ce1b2ada2f1ccc80b2c20a0ca28a87764a9db4d57fc9bed4eb0c9251e230a2ba801821bbb514c8d1838061ea61cd821b +EBUILD CryptX-0.82.0.ebuild 1005 BLAKE2B 24a9191d94f895cf38ddbe1a55cc48d6bc9e86854ce4af4d18e428926a5cc0c1a87a5e61d4f070d60aa982a297316ca7036f9ce88e98bdb191c0fc7b660962fa SHA512 9f0670215333e3d4d63a9d94c19ffd5e3a25bdc704dc68f713bf7089ea733edbe1106dcd36528c56c7be4fa358ae1b8938467b8398b9a1ff2d5b31e3d8c34d9f +EBUILD CryptX-0.84.0.ebuild 1005 BLAKE2B d687f437f2ada6d568accb18f97bb723e29a2216dc74d4a1b4cdfaf9ecef9c885c343b640fe93df93a078ae47f21bd769455c5510ac0f191679e800e97a842c5 SHA512 7813bfbbef6d8332fc10df6a29e6a3bebd042c9d048c4e83f40b541453ba25ef9eae37848365cd811f676cfdedade3eb3b46c0954b4123297765d2e4299c0913 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}; |