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

- EAPI7
- Ensure a slot for dev-libs/gmp
- Migrate sed hacks to a 'patch'

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:12:11 +12:00
parent 4c206e7129
commit ce498c57a5
2 changed files with 49 additions and 0 deletions
@@ -0,0 +1,27 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=MITHALDU
DIST_VERSION=0.07
inherit perl-module
DESCRIPTION="Diffie-Hellman key exchange system"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
RDEPEND="
dev-libs/gmp:0
>=dev-perl/Math-BigInt-GMP-1.240.0
>=virtual/perl-Math-BigInt-1.600.0
dev-perl/Crypt-Random
"
DEPEND="dev-libs/gmp:0"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
"
PATCHES=(
"${FILESDIR}/${PN}-0.07-no-dot-inc.patch"
)
@@ -0,0 +1,22 @@
From a97d967158b7678e16f9be4ac2eea858572bea0c Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@gentoo.org>
Date: Wed, 1 Jul 2020 06:01:52 +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 13f2698..fcd77ae 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,4 +1,5 @@
use strict;
+use lib '.';
use inc::Module::Install;
name 'Crypt-DH';
--
2.27.0