dev-perl/DBICx-TestDatabase: -r bump for EAPI7 + minor fixes

- EAPI7
- Convert 'sed' hack to '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-09 18:04:25 +12:00
parent f486cdd5a5
commit fee6730956
No known key found for this signature in database
GPG Key ID: 75AE9219A81583B5
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=JROCKWAY
DIST_VERSION=0.05
inherit perl-module
DESCRIPTION="create a temporary database from a DBIx::Class::Schema"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
virtual/perl-File-Temp
>=dev-perl/DBD-SQLite-1.290.0
dev-perl/SQL-Translator
"
BDEPEND="${RDEPEND}
>=virtual/perl-ExtUtils-MakeMaker-6.360.0
test? (
dev-perl/DBIx-Class
>=virtual/perl-Test-Simple-1.1.10
)
"
PERL_RM_FILES=("MYMETA.json" "MYMETA.yml") # https://rt.cpan.org/Ticket/Display.html?id=108141
PATCHES=(
"${FILESDIR}/${PN}-0.05-no-dot-inc.patch"
)

View File

@ -0,0 +1,21 @@
From 84d5affecac79ea1a8641f7fecc9adf7691f4acd Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@gentoo.org>
Date: Thu, 9 Jul 2020 17:46:23 +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 225f785..022d09d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,3 +1,4 @@
+use lib '.';
use inc::Module::Install;
name 'DBICx-TestDatabase';
--
2.27.0