summaryrefslogtreecommitdiff
path: root/dev-perl/Devel-SmallProf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/Devel-SmallProf
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/Devel-SmallProf')
-rw-r--r--dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r3.ebuild22
-rw-r--r--dev-perl/Devel-SmallProf/Manifest5
-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
5 files changed, 132 insertions, 0 deletions
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..cbf53d204de6
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2018 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..6437b572a9ea
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/Manifest
@@ -0,0 +1,5 @@
+AUX Devel-SmallProf-2.20.0-defined.patch 723 BLAKE2B b31ed94cb96dfeb5261ea13c75876c9a8f45e6b1835358d4f797b324b041e13bf3c3cea3062a7c8340b978bd36f900514193cfc1fee8b1b7bc99a29917d210af SHA512 8b40f44bfbcafb5199d335781de5c654d62b95ef6a3ae41afdb4db349b4822de51d456690f4ed124bdac757326be43dbb31b6d22a0020b7137a2aa7b3d328171
+AUX Devel-SmallProf-2.20.0-perl526.patch 1992 BLAKE2B f0766b6f32410d17bdeba10d207f4c9ba3f9627de37a29d91b0f58e1936803e6c99db7cc4e4da49055351350156e4b11adc46df2400ff368f2c2f1ecdc08019b SHA512 90f6c02e7aee8ab68a5812a31eb0896e3fa45e91ecb31a7b2022ceafd288413045a38d83311e9e319bee3ac9483d4c3e6e61c1c151c6d5f63497f675064fdb6f
+DIST Devel-SmallProf-2.02.tar.gz 9367 BLAKE2B a9c058469d5fe80fdce61d080e3f4c90a443ed2cc8decee4ed28047b49d52de5f89abc52bb77085297d310183a59b299aa23ce911747cee26a9a149e41ac324c SHA512 f97ccacf3668feaccb5eda8e451c0c00a434df4051f9f2cb1c2f85cb9285e98c9f1198789467c21cabaddb667ba09b4fb56073075e9307881c7a71a820607743
+EBUILD Devel-SmallProf-2.20.0-r3.ebuild 419 BLAKE2B 332218655dd3169b0ae0bc74826dcdc8bba3a37162a0b059d35f87bf669e0added3b33f12a861f5de199885fc30bb6d851b89715f56c29b05c0fbe233131d49d SHA512 6496121f14cfa329d5a224dc12593a30560242a3b8097c4370a2f27f7b8df462186cc6dee8bd10d61761b123958f8042694740cef14f82c765a2e3a60663700a
+MISC metadata.xml 451 BLAKE2B dc54dcce9a8a34acc65d7f5ddda92ca6317bcf12271792b9705a607ffcd5534019fd5720496e8886ade3c45b8f24b8a9a3a5784b93e6bb3e47929b3a7c8591fb SHA512 0b8fcc223fb2027ca143df6c813cc31de5ac5a59c62ccb7cc8dff4d081f86e129a2c1efcbdb747711170cdb6625a12700852b0d12c22ab36879b5805404d0fbe
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>