commit: 0f9fdd50a62eb48ccfb8658113ebd91147c1a7b7 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> AuthorDate: Wed Oct 18 22:32:31 2017 +0000 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> CommitDate: Wed Oct 18 22:33:09 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f9fdd50
dev-perl/ConfigReader: EAPI6 + Toolchain Love - EAPI6 - Add a working Makefile.PL - Add basic tests - Tests enabled - Now works like every other perl module. Package-Manager: Portage-2.3.8, Repoman-2.3.3 .../ConfigReader/ConfigReader-0.500.0-r2.ebuild | 17 +++++++ .../ConfigReader-0.500.0-makefile-tests.patch | 58 ++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/dev-perl/ConfigReader/ConfigReader-0.500.0-r2.ebuild b/dev-perl/ConfigReader/ConfigReader-0.500.0-r2.ebuild new file mode 100644 index 00000000000..0dd7ae6b722 --- /dev/null +++ b/dev-perl/ConfigReader/ConfigReader-0.500.0-r2.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=AMW +DIST_VERSION=0.5 +inherit perl-module + +DESCRIPTION="Read directives from a configuration file" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" + +PATCHES=( "${FILESDIR}/${P}-makefile-tests.patch" ) diff --git a/dev-perl/ConfigReader/files/ConfigReader-0.500.0-makefile-tests.patch b/dev-perl/ConfigReader/files/ConfigReader-0.500.0-makefile-tests.patch new file mode 100644 index 00000000000..d074351cab5 --- /dev/null +++ b/dev-perl/ConfigReader/files/ConfigReader-0.500.0-makefile-tests.patch @@ -0,0 +1,58 @@ +From ba8219e0ca0bde2a3635a589659d8840961dba7b Mon Sep 17 00:00:00 2001 +From: Kent Fredric <ken...@gentoo.org> +Date: Thu, 19 Oct 2017 11:10:23 +1300 +Subject: Add basic Makefile.PL and Tests + +This distribution is so old, it could possibly have been authored +before EUMM and friends were common practice. + +Bug: https://rt.cpan.org/Ticket/Display.html?id=13921 +--- + Makefile.PL | 15 +++++++++++++++ + t/compile.t | 12 ++++++++++++ + 2 files changed, 27 insertions(+) + create mode 100644 Makefile.PL + create mode 100644 t/compile.t + +diff --git a/Makefile.PL b/Makefile.PL +new file mode 100644 +index 0000000..f272d63 +--- /dev/null ++++ b/Makefile.PL +@@ -0,0 +1,15 @@ ++use ExtUtils::MakeMaker; ++ ++WriteMakefile( ++ NAME => 'ConfigReader', ++ VERSION_FROM => "DirectiveStyle.pm", ++ ABSTRACT_FROM => "ConfigReader.pod", ++ LICENSE => "gpl", ++ PREREQ_PM => {}, ++ PM => { ++ 'ConfigReader.pod' => '$(INST_LIB)/ConfigReader.pod', ++ 'DirectiveStyle.pm' => '$(INST_LIB)/ConfigReader/DirectiveStyle.pm', ++ 'Spec.pm' => '$(INST_LIB)/ConfigReader/Spec.pm', ++ 'Values.pm' => '$(INST_LIB)/ConfigReader/Values.pm', ++ }, ++); +diff --git a/t/compile.t b/t/compile.t +new file mode 100644 +index 0000000..46c1f1d +--- /dev/null ++++ b/t/compile.t +@@ -0,0 +1,12 @@ ++use strict; ++use warnings; ++ ++use Test::More; ++ ++require_ok("ConfigReader::DirectiveStyle"); ++require_ok("ConfigReader::Spec"); ++require_ok("ConfigReader::Values"); ++ ++done_testing; ++ ++ +-- +2.14.2 +