commit:     2fa6517a78db324a41b2ab9460afebd8bf6b862d
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 30 18:38:37 2020 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Jun 30 18:38:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fa6517a

dev-perl/Crypt-DH-GMP: -r bump for EAPI7 + fixes

- EAPI7
- Convert "sed" to "patch"
- Ensure CFLAGS passed to make

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 .../Crypt-DH-GMP/Crypt-DH-GMP-0.0.120-r1.ebuild    | 42 ++++++++++++++++++++++
 .../files/Crypt-DH-GMP-0.00012-no-dot-inc.patch    | 21 +++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-perl/Crypt-DH-GMP/Crypt-DH-GMP-0.0.120-r1.ebuild 
b/dev-perl/Crypt-DH-GMP/Crypt-DH-GMP-0.0.120-r1.ebuild
new file mode 100644
index 00000000000..30f27ae1924
--- /dev/null
+++ b/dev-perl/Crypt-DH-GMP/Crypt-DH-GMP-0.0.120-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=DMAKI
+DIST_VERSION=0.00012
+inherit perl-module
+
+DESCRIPTION="Crypt::DH Using GMP Directly"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=virtual/perl-XSLoader-0.20.0
+       >=dev-libs/gmp-4.0.0:0
+"
+DEPEND="
+       >=dev-libs/gmp-4.0.0:0
+"
+BDEPEND="${RDEPEND}
+       >=dev-perl/Devel-CheckLib-0.400.0
+       >=virtual/perl-Devel-PPPort-3.190.0
+       >=virtual/perl-ExtUtils-MakeMaker-6.590.0
+       >=virtual/perl-ExtUtils-ParseXS-3.180.0
+       test? (
+               dev-perl/Test-Requires
+               virtual/perl-Test-Simple
+       )
+"
+PATCHES=(
+       "${FILESDIR}/${PN}-0.00012-no-dot-inc.patch"
+)
+src_compile() {
+       mymake=(
+               "OPTIMIZE=${CFLAGS}"
+       )
+       perl-module_src_compile
+}

diff --git a/dev-perl/Crypt-DH-GMP/files/Crypt-DH-GMP-0.00012-no-dot-inc.patch 
b/dev-perl/Crypt-DH-GMP/files/Crypt-DH-GMP-0.00012-no-dot-inc.patch
new file mode 100644
index 00000000000..81df0b2dc5b
--- /dev/null
+++ b/dev-perl/Crypt-DH-GMP/files/Crypt-DH-GMP-0.00012-no-dot-inc.patch
@@ -0,0 +1,21 @@
+From 015df91fa006921333c47088d293845f8b8c38f9 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <ken...@gentoo.org>
+Date: Wed, 1 Jul 2020 06:31:46 +1200
+Subject: Include '.' in @INC on perl 5.26+
+
+---
+ Makefile.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 8c03b4a..72cc677 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,3 +1,4 @@
++use lib '.';
+ use inc::Module::Install;
+ 
+ my @DEFINES;
+-- 
+2.27.0
+

Reply via email to