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@gentoo.org>
This commit is contained in:
Kent Fredric
2020-07-01 06:38:57 +12:00
parent a54b2bf960
commit 2fa6517a78
2 changed files with 63 additions and 0 deletions
@@ -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
}
@@ -0,0 +1,21 @@
From 015df91fa006921333c47088d293845f8b8c38f9 Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@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