public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Tie-Cache/, dev-perl/Tie-Cache/files/
@ 2018-03-15  8:49 Kent Fredric
  0 siblings, 0 replies; only message in thread
From: Kent Fredric @ 2018-03-15  8:49 UTC (permalink / raw
  To: gentoo-commits

commit:     fedc99e310a3fa4aa4b2988d15d0014c7607bff0
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 15 08:47:50 2018 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Thu Mar 15 08:49:50 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fedc99e3

dev-perl/Tie-Cache: EAPI6 + tests + QA

- EAPI6ify
- Add USE='examples'
- Enable tests
- Prevent benchmark example being installed by default

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-perl/Tie-Cache/Tie-Cache-0.210.0-r1.ebuild     | 17 ++++++++++++
 .../Tie-Cache/files/Tie-Cache-0.21-benchmark.patch | 32 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-perl/Tie-Cache/Tie-Cache-0.210.0-r1.ebuild b/dev-perl/Tie-Cache/Tie-Cache-0.210.0-r1.ebuild
new file mode 100644
index 00000000000..a5ac639744d
--- /dev/null
+++ b/dev-perl/Tie-Cache/Tie-Cache-0.210.0-r1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=CHAMAS
+DIST_VERSION=0.21
+DIST_EXAMPLES=("examples/*")
+inherit perl-module
+
+DESCRIPTION="In memory size limited LRU cache"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=("${FILESDIR}/${PN}-0.21-benchmark.patch")

diff --git a/dev-perl/Tie-Cache/files/Tie-Cache-0.21-benchmark.patch b/dev-perl/Tie-Cache/files/Tie-Cache-0.21-benchmark.patch
new file mode 100644
index 00000000000..a1dc7ae8800
--- /dev/null
+++ b/dev-perl/Tie-Cache/files/Tie-Cache-0.21-benchmark.patch
@@ -0,0 +1,32 @@
+From 426687ca37129637676a4a63667b5b060548800b Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Thu, 15 Mar 2018 21:39:27 +1300
+Subject: Relocate benchmark script to avoid default installation
+
+As *.pl deploys to $INC[0]/Tie/*.pl  due to "foo.pl" being a legacy
+"perl library"
+---
+ MANIFEST                                          | 2 +-
+ tie-cache-bench.pl => examples/tie-cache-bench.pl | 0
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+ rename tie-cache-bench.pl => examples/tie-cache-bench.pl (100%)
+
+diff --git a/MANIFEST b/MANIFEST
+index 67ea1da..ae66cae 100644
+--- a/MANIFEST
++++ b/MANIFEST
+@@ -5,6 +5,6 @@ MANIFEST.SKIP
+ MANIFEST.bak
+ Makefile.PL
+ README
+-tie-cache-bench.pl
++examples/tie-cache-bench.pl
+ test.pl
+ META.yml                                 Module meta-data (added by MakeMaker)
+diff --git a/tie-cache-bench.pl b/examples/tie-cache-bench.pl
+similarity index 100%
+rename from tie-cache-bench.pl
+rename to examples/tie-cache-bench.pl
+-- 
+2.16.2
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-15  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15  8:49 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Tie-Cache/, dev-perl/Tie-Cache/files/ Kent Fredric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox