summaryrefslogtreecommitdiff
path: root/dev-perl/Devel-SmallProf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/Devel-SmallProf
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/Devel-SmallProf')
-rw-r--r--dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r2.ebuild21
-rw-r--r--dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r3.ebuild22
-rw-r--r--dev-perl/Devel-SmallProf/Manifest8
-rw-r--r--dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-defined.patch25
-rw-r--r--dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl526.patch67
-rw-r--r--dev-perl/Devel-SmallProf/metadata.xml13
6 files changed, 156 insertions, 0 deletions
diff --git a/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r2.ebuild b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r2.ebuild
new file mode 100644
index 000000000000..d6bf4c180092
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR=SALVA
+MODULE_VERSION=2.02
+inherit perl-module
+
+DESCRIPTION="Per-line Perl profiler"
+
+SLOT="0"
+KEYWORDS="amd64 sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-defined.patch"
+)
+
+SRC_TEST="do"
+# note: dont use parallel here
diff --git a/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r3.ebuild b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r3.ebuild
new file mode 100644
index 000000000000..4dd621fc738a
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=SALVA
+DIST_VERSION=2.02
+inherit perl-module
+
+DESCRIPTION="Per-line Perl profiler"
+
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-defined.patch"
+ "${FILESDIR}/${P}-perl526.patch"
+)
+# note: dont use parallel here
+# tests need each others exit state
+DIST_TEST="do"
diff --git a/dev-perl/Devel-SmallProf/Manifest b/dev-perl/Devel-SmallProf/Manifest
new file mode 100644
index 000000000000..39c28f576724
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/Manifest
@@ -0,0 +1,8 @@
+AUX Devel-SmallProf-2.20.0-defined.patch 723 SHA256 ccbaa3ec7ab0c0362d2282b577e54b5b588720c246cb18b920a1f398317f8a1f SHA512 8b40f44bfbcafb5199d335781de5c654d62b95ef6a3ae41afdb4db349b4822de51d456690f4ed124bdac757326be43dbb31b6d22a0020b7137a2aa7b3d328171 WHIRLPOOL 011426623dcfbde3d5b9dbecd377e7bdd4ed6b404d5acc024ecaa76f19b440abd65c412c68554770f797328edb7f1c5233f50bea2e4a6822fae4da20bdaf7b0f
+AUX Devel-SmallProf-2.20.0-perl526.patch 1992 SHA256 6cbd3a26300f0ceaa434c6f15841279c1f48a0b8abce3b5989a527013d05e25a SHA512 90f6c02e7aee8ab68a5812a31eb0896e3fa45e91ecb31a7b2022ceafd288413045a38d83311e9e319bee3ac9483d4c3e6e61c1c151c6d5f63497f675064fdb6f WHIRLPOOL 8756b2809d4bbdca829c4c0869f52440cfd157a251a5726510dbf7edf0dbf4c8ef3ebb5e5c51413f2c2dc9e600f98b2f8218bbaa59bb8823dacbd4e9ac0e9095
+DIST Devel-SmallProf-2.02.tar.gz 9367 SHA256 8cd514166c66c44ffbe2d0728583032d602b5786ef3a0b7e575f733cc5bd8b08 SHA512 f97ccacf3668feaccb5eda8e451c0c00a434df4051f9f2cb1c2f85cb9285e98c9f1198789467c21cabaddb667ba09b4fb56073075e9307881c7a71a820607743 WHIRLPOOL 42e6ade0f42012ac8e0721d66d84cb13a87980f4005b4f4cdaf7560fb0dce3bc86a942af22b6b1a488adbd5f4d20dec89ef4a512244ff1c96d15a5ddfa29c20d
+EBUILD Devel-SmallProf-2.20.0-r2.ebuild 353 SHA256 92404ea7e10c44c01f1f95c2bbc7d5cb0ee046694afc80b273d49a138fd443c5 SHA512 76df237a81908ff55833c3c0f8898d1d64a9f0175dcc900d0478ba3fba57bfdcb7ab536434e9b2096e31f53e407713f66c3d8856bc86d83d7723a56f8f1743c4 WHIRLPOOL 9e473d4e5aead1a574d268a87d47230f71f7371227f806a68aa4a111772042482420af9465563be15f01a8b6fe5ab07f2e6a9a2c6e17646b556ad8491167e5df
+EBUILD Devel-SmallProf-2.20.0-r3.ebuild 421 SHA256 35d69152584f8d38491dec1cb3a7344fdeae19efc289e0a3e72f97a1b4b2fffe SHA512 29e9a1fec72319f578b9fed968d95eb6900cb9eb46743288d66c481f9b22dba20d980cf312f7c9487d24eb47be042dd1746f9a8b0802d1619b64b94cb5aa06c0 WHIRLPOOL 3922ad58d2eaaea6e6b2789888e581bc7ee6b7ec1dd8965c9cf82148de9cc2ef6695a6f48c82d78adc833b6a384cfe4ee1bf993d58204e352fd39d92a71bf6dc
+MISC ChangeLog 2954 SHA256 df8ff7fb48c25676eab0468900b4ba1bae2d73e0f80f56116b926e6aff5cca2b SHA512 04b557b2a141fdf4829f36b2c3c2b6e02e392c2950941a92bba5b69c33e6e49f0af2744fe061e85ea17716bd2dbacbc2290c99490910aa88f385e8194fbdac3b WHIRLPOOL 2bdb9590ccd43ddbd948ac92ddef385e406524cf6418160ef4fd6a1ba47a120b12b360226417211f07801149a48d956aba2a40d2e9527741bf76584d1af872ff
+MISC ChangeLog-2015 2707 SHA256 f0dc89d8f3a0b7b3d150c25c07264be633a76698860109800af93faa205cac49 SHA512 1a59d9cfbddb48ab5eecdf4744148996442132bb4ffd24052bd0ffad7a9cb9d18dc9896d19af0ebb38a8ab23754d3963a9fb696d2cb758148752174ef1e93296 WHIRLPOOL 0191be98384e82e89b70a352a078af9b99c965eca970d86f82f1714cdd7286d393e83a5b69e7d65113edbf1e387a030881064d83896b07f60f888324009b362b
+MISC metadata.xml 451 SHA256 4856cf5565a2122a60e6fcfa8d06dff0e359274718c92e94ce27cabf38cf91b5 SHA512 0b8fcc223fb2027ca143df6c813cc31de5ac5a59c62ccb7cc8dff4d081f86e129a2c1efcbdb747711170cdb6625a12700852b0d12c22ab36879b5805404d0fbe WHIRLPOOL d0dd348ad8d95e8067e5cd730506f0156de28132bc108814382b1c1eca41aa47724a158c1c2d87d9663989de77b04818b8568ab2568515e02123b0f86f3330ac
diff --git a/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-defined.patch b/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-defined.patch
new file mode 100644
index 000000000000..cf6078bcd6b2
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-defined.patch
@@ -0,0 +1,25 @@
+From 3c81ee06e91d2a4efc52b7b4a9eff7411039c283 Mon Sep 17 00:00:00 2001
+From: Brian Fraser <fraserbn@gmail.com>
+Date: Wed, 20 Aug 2014 00:33:46 +0200
+Subject: [PATCH] Don't use defined(@array)
+
+---
+ lib/Devel/SmallProf.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Devel/SmallProf.pm b/lib/Devel/SmallProf.pm
+index cee1211..2b5d091 100644
+--- a/lib/Devel/SmallProf.pm
++++ b/lib/Devel/SmallProf.pm
+@@ -32,7 +32,7 @@ sub DB {
+ # evals which do not define subroutines will disappear.
+ no strict 'refs';
+ $listings{$filename} = \@{"main::_<$filename"}
+- if defined(@{"main::_<$filename"});
++ if @{"main::_<$filename"};
+ use strict 'refs';
+
+ my($delta);
+--
+1.7.12.4 (Apple Git-37)
+
diff --git a/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl526.patch b/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl526.patch
new file mode 100644
index 000000000000..538387562a62
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl526.patch
@@ -0,0 +1,67 @@
+From 70d450555b1792530c4230cecf84a044b2c3f9ce Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sun, 8 Oct 2017 11:45:25 +1300
+Subject: Fix Perl 5.26 support without '.' in @INC
+
+1. Tests rely on "do $LOCALFILE" syntax
+2. Runtime conditionally can load a local file ('./.smallprof')
+
+Bug: https://bugs.gentoo.org/615590
+Bug: https://rt.cpan.org/Ticket/Display.html?id=121134
+---
+ lib/Devel/SmallProf.pm | 4 ++--
+ t/part1.t | 2 +-
+ t/part2.t | 2 +-
+ t/part3.t | 2 +-
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/lib/Devel/SmallProf.pm b/lib/Devel/SmallProf.pm
+index 2b5d091..4fdd66a 100644
+--- a/lib/Devel/SmallProf.pm
++++ b/lib/Devel/SmallProf.pm
+@@ -55,8 +55,8 @@ BEGIN {
+ $drop_zeros = 0;
+ $profile = 1;
+ $grep_format = 0;
+- if (-e '.smallprof') {
+- do '.smallprof';
++ if (-e './.smallprof') {
++ do './.smallprof';
+ }
+ my $env=$ENV{SMALLPROF_CONFIG}||'';
+ $drop_zeros = 1 if $env=~/z/;
+diff --git a/t/part1.t b/t/part1.t
+index 805ebe4..483f203 100644
+--- a/t/part1.t
++++ b/t/part1.t
+@@ -6,4 +6,4 @@
+ # doesn't have it's contents put into the symbol table. Thus this shim which
+ # invokes the real part1 so that its contents are visible.
+
+-do 't/part1.b' or die "$!";
++do './t/part1.b' or die "$!";
+diff --git a/t/part2.t b/t/part2.t
+index c808010..335d032 100644
+--- a/t/part2.t
++++ b/t/part2.t
+@@ -9,7 +9,7 @@ unless (open(OUT,'smallprof.out')) {
+ undef $/;
+ $_ = <OUT>;
+ close OUT;
+-print +(/Profile of \(eval/ && m!Profile of t.part1\.b!)
++print +(/Profile of \(eval/ && m!Profile of \./t.part1\.b!)
+ ? "ok 1\n" : "not ok 1\n";
+ my (@matches) = /Profile of/g;
+ print +(@matches == 3) ? "ok 2\n" : "not ok 2\n";
+diff --git a/t/part3.t b/t/part3.t
+index 652b306..135d4ca 100644
+--- a/t/part3.t
++++ b/t/part3.t
+@@ -1,3 +1,3 @@
+ #!perl -d:SmallProf
+
+-do 't/part3.b' or die "$!";
++do './t/part3.b' or die "$!";
+--
+2.14.1
+
diff --git a/dev-perl/Devel-SmallProf/metadata.xml b/dev-perl/Devel-SmallProf/metadata.xml
new file mode 100644
index 000000000000..a13bc18aed2f
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">Devel-SmallProf</remote-id>
+ <remote-id type="cpan-module">DB</remote-id>
+ <remote-id type="cpan-module">Devel::SmallProf</remote-id>
+ </upstream>
+</pkgmetadata>