public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/CryptX/files/, dev-perl/CryptX/
@ 2023-10-08  6:44 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-10-08  6:44 UTC (permalink / raw
  To: gentoo-commits

commit:     586d18c9f6c0bb74689b2667165a3434a7dc6485
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  8 06:36:27 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  8 06:36:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=586d18c9

dev-perl/CryptX: add 0.80.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/CryptX/CryptX-0.80.0.ebuild               | 51 ++++++++++++++++++++++
 dev-perl/CryptX/Manifest                           |  1 +
 .../CryptX/files/CryptX-0.80.0-respect-flags.patch | 23 ++++++++++
 3 files changed, 75 insertions(+)

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 784991328712..d908e37a908d 100644
--- a/dev-perl/CryptX/Manifest
+++ b/dev-perl/CryptX/Manifest
@@ -2,3 +2,4 @@ DIST CryptX-0.072.tar.gz 1643459 BLAKE2B 28bb06ef870287ccd9f46c2ed5d7b434e335630
 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

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};


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-perl/CryptX/files/, dev-perl/CryptX/
@ 2024-10-14  4:44 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2024-10-14  4:44 UTC (permalink / raw
  To: gentoo-commits

commit:     16542f1e82acca3a54d85627fc4e8fe7cfd66115
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 14 04:43:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 04:44:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16542f1e

dev-perl/CryptX: add 0.82.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/CryptX/CryptX-0.82.0.ebuild               | 51 ++++++++++++++++++++++
 dev-perl/CryptX/Manifest                           |  1 +
 .../CryptX/files/CryptX-0.82.0-respect-flags.patch | 23 ++++++++++
 3 files changed, 75 insertions(+)

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 0cbc6f809e31..25705621b936 100644
--- a/dev-perl/CryptX/Manifest
+++ b/dev-perl/CryptX/Manifest
@@ -1 +1,2 @@
 DIST CryptX-0.080.tar.gz 1651772 BLAKE2B a1c85cde7531eecbb2f82a715636de6bd9b5f9f209beb8a913757b0da955e8077c8ec01faf69dadc9f20744e0c03748d37ea0907d172e7b89315192c60780f18 SHA512 5702f59f28c70858eb2e78046c6415a816d94f45214092d4e2e938c0655a37e58e5295b2a7f753ee42e0fe4c2ce5632c068d80c7b3055cce1ecb0e5784fca475
+DIST CryptX-0.082.tar.gz 1719511 BLAKE2B 05f1ac12fd6ae04408f2ebe2568aa8cd6782e87cf8db1d2511a20a6cb49facc24c19526db223e8859f8a57bc5c3313997c6d8747923669018d0fc979d78ee034 SHA512 70b42717f4695ae77b5227b5e6a92d12d351796f06e36c38613020c2d9f0ebbc742ad3e258851ab65ad8d8b95e2d7b590b5a54c06755fec4c44b88a27f486590

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};


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-14  4:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-08  6:44 [gentoo-commits] repo/gentoo:master commit in: dev-perl/CryptX/files/, dev-perl/CryptX/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-10-14  4:44 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox