diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/Exception-Base |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/Exception-Base')
-rw-r--r-- | dev-perl/Exception-Base/Exception-Base-0.250.0-r2.ebuild | 33 | ||||
-rw-r--r-- | dev-perl/Exception-Base/Exception-Base-0.250.100.ebuild | 27 | ||||
-rw-r--r-- | dev-perl/Exception-Base/Manifest | 8 | ||||
-rw-r--r-- | dev-perl/Exception-Base/files/Exception-Base-0.250.0-sprintf.patch | 52 | ||||
-rw-r--r-- | dev-perl/Exception-Base/metadata.xml | 12 |
5 files changed, 132 insertions, 0 deletions
diff --git a/dev-perl/Exception-Base/Exception-Base-0.250.0-r2.ebuild b/dev-perl/Exception-Base/Exception-Base-0.250.0-r2.ebuild new file mode 100644 index 000000000000..352ab216de8a --- /dev/null +++ b/dev-perl/Exception-Base/Exception-Base-0.250.0-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MODULE_AUTHOR=DEXTER +MODULE_VERSION=0.25 +inherit perl-module + +DESCRIPTION="Error handling with exception class" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-perl/Module-Build + test? ( >=dev-perl/Test-Unit-Lite-0.120.0 ) +" + +SRC_TEST="do parallel" + +PATCHES=( + "${FILESDIR}/${P}-sprintf.patch" +) + +src_install(){ + perl-module_src_install + docompress -x usr/share/doc/${PF}/examples + insinto usr/share/doc/${PF}/ + doins -r examples/ +} diff --git a/dev-perl/Exception-Base/Exception-Base-0.250.100.ebuild b/dev-perl/Exception-Base/Exception-Base-0.250.100.ebuild new file mode 100644 index 000000000000..8eeb957d163e --- /dev/null +++ b/dev-perl/Exception-Base/Exception-Base-0.250.100.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=DEXTER +DIST_VERSION=0.2501 +inherit perl-module + +DESCRIPTION="Error handling with exception class" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-perl/Module-Build + test? ( >=dev-perl/Test-Unit-Lite-0.120.0 ) +" + +src_install(){ + perl-module_src_install + docompress -x usr/share/doc/${PF}/examples + insinto usr/share/doc/${PF}/ + doins -r examples/ +} diff --git a/dev-perl/Exception-Base/Manifest b/dev-perl/Exception-Base/Manifest new file mode 100644 index 000000000000..c89db3879927 --- /dev/null +++ b/dev-perl/Exception-Base/Manifest @@ -0,0 +1,8 @@ +AUX Exception-Base-0.250.0-sprintf.patch 2200 SHA256 0d367d7845a006017a6b3413067928849e1c318f7604193fbf0bd03964ea24f5 SHA512 1f2d8089e24f4c0507d880f62bb32173bb5df920e5eadd66102b96c562ff9ce86081c34d23a7e53ad6c8006973b6675d54bf60a47c81d1ffe3b3da49f07ab9f1 WHIRLPOOL e03e87127a6d08b178c37867309fc14b161fef85634d7930501c52736dad2ea8b5dbdf0737b60fa0cff1071ea39e381ae33c753376d5721fea5935d38c1f6209 +DIST Exception-Base-0.25.tar.gz 59534 SHA256 1c4ec484ec6154b4b3c477d1ce69f666289fe9b4c2f2318cf742ad2e0cd251e8 SHA512 4bc416a8a4096b2149a205dc3129aabaa49bfa9f29746b31a09cbade01e15d53ed82649b75d69c508568a7fb12726e319360aba128102fdc1e0a7ba583473e65 WHIRLPOOL 75ccac808f019da61d3ed843ed680274cabf5a509f332bc0b13e64b075961ce383243cabe821cbf11116f08d96609fd9d380604e0dd094524febaf24908519af +DIST Exception-Base-0.2501.tar.gz 59965 SHA256 5723dd78f4ac0b4d262a05ea46af663ea00d8096b2e9c0a43515c210760e1e75 SHA512 848993b3d72f3a8f79467c69afdff848e61aed7d24977bafe4cfea56631a5c4746f9993330a4373a1c727f440c0cdc70e4001d7841f17125cf603772a6805acd WHIRLPOOL 87ab8ad1c9909d0585af48ab02ac2013fc52b153dd08fe0be5c122014d2f859315ae90a5250d40a2fb2e6d5f1780d91c3907b1d3bf54698559f8948e799e31ed +EBUILD Exception-Base-0.250.0-r2.ebuild 582 SHA256 d46daff6f10351276b69e248657df07f6ca66d1879f1a151ccf8c160b846396f SHA512 8d277bc43cbf6f141057ffcb22564cf6f806f1e11159ac13aace0562401d25d599ec25a343864d5a86b1c8353aeb358ac608b2620f3ed46ee5ddba74d1fe73b1 WHIRLPOOL df633812628f9e8033b2068f314ba6d9b07b14aabd538694b23e91f8cb5485de0f576de524e241c460ca27b7aad6f0e476b8f07ba3d47e6b06380c038b2ac9a5 +EBUILD Exception-Base-0.250.100.ebuild 509 SHA256 92dd4cb50fa637cf879de040e6ed1f0c30dcd1d46c0d9f30a2a0dcd45ad43ee0 SHA512 b73c36ee0e21a61fac924fd5befe86168a2e90c1cfb1ca761cd1fc12e7c31136da7ebd7163252903504627d4d36581272eb08e714f9b9725c05c1fb3bdc48b81 WHIRLPOOL 92cd15c3e688408d97644a35f4a0ed628584b0c12ea03fcdc27d2c9c9804928d34f1c7200ae4193e4254b130e0730eb58f0d819df6d7141094d8521ccd069521 +MISC ChangeLog 2807 SHA256 03d91db0f42c22f77306c2883aaf5b30e5bcc9fb17d208e46b718786c38f2951 SHA512 72ff7bbb9afcb66a4287f8fef8e36f16527f98ab44c2be8c251ee06eec66482bf42d13e379e3644fe09dc9740819b16893c918d419bdbc2c2f2dfdab5fd7908f WHIRLPOOL 3480f6bbc95fe917a8a51cb6ee7381f42750dc26fe80a7c5c90133d6c7a38b06160d2ee8f39977189c2c4436a49387e4e295d8cac79a232eae8b73566d58179b +MISC ChangeLog-2015 2380 SHA256 b9731f88fe62db36097e7cad731509f983514e0a12d780f882a3548ffd8b2f03 SHA512 1791745b5a3f0f9f92afa0f552be4b7f4cfa942582eeaba7cab0a1ff6fdc006c23ebb362fda5fef54b9099a83690740979c3ca78befb2038ea0dd3c7d209f7e7 WHIRLPOOL e3ceddcd688fcc6c5463b6ee184c37881691bba213ec7a1e30c18424282fda3a634cf7763a7cbe8e1900de637fcb06c3913d8af038c99a39614c9ba689c1ad55 +MISC metadata.xml 400 SHA256 24838524b120f1029b6fbe553a4a684c8a8f4e88da20526a596b15dd5f355ab7 SHA512 1427e9be5dea4c78e4cc5fef604c1b2a2f5f56e41a0ae9a124a719afbfab52cfb54bd3ee7c884829f9dc6a2548fe1afea80ef055a512802b971f8606a99a275d WHIRLPOOL 95526df36566572013880483631ba91627c29a9009cdfbfc78d43a50b302e2b53dbe496441c001a9bc6c9f15d2c29b7e30a6896447909603006e70ef99fb88d6 diff --git a/dev-perl/Exception-Base/files/Exception-Base-0.250.0-sprintf.patch b/dev-perl/Exception-Base/files/Exception-Base-0.250.0-sprintf.patch new file mode 100644 index 000000000000..656c3eba4ee3 --- /dev/null +++ b/dev-perl/Exception-Base/files/Exception-Base-0.250.0-sprintf.patch @@ -0,0 +1,52 @@ +From 1cb0ea6afd4bb76e5a1d759efe27ea0f18306a82 Mon Sep 17 00:00:00 2001 +From: Lee Johnson <lee@givengain.ch> +Date: Thu, 1 Jan 2015 22:33:54 +0000 +Subject: [PATCH] resolve #1 - fix warnings new since perl 5.21.2 + +Redundant argument in %s - this is because the various calls to the +sprintf function offset the arrays by 1 (since the first element of +the array is the sprintf string) but use @_ (the number of elements +in the array) in the range: 1 .. @_ + +since it's offset by 1 we are going beyond the end of the array and +so sprintf consequently warns that we sent more arguments than it +expected. fix this by using @_ -1 in the range (number of elements +in the array minus 1) +--- + lib/Exception/Base.pm | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/lib/Exception/Base.pm b/lib/Exception/Base.pm +index 8dce19f..096e2a5 100644 +--- a/lib/Exception/Base.pm ++++ b/lib/Exception/Base.pm +@@ -1362,7 +1362,7 @@ sub matches { ## no critic qw(ProhibitExcessComplexity) + local $_ = ref $self->{$key} eq 'ARRAY' + ? sprintf( + @{$self->{$key}}[0], +- @{$self->{$key}}[1..@{$self->{$key}}] ++ @{$self->{$key}}[1..@{$self->{$key}}-1] + ) + : $self->{$key}; + if (ref $arrval eq 'CODE') { +@@ -1393,7 +1393,7 @@ sub matches { ## no critic qw(ProhibitExcessComplexity) + local $_ = ref $self->{$key} eq 'ARRAY' + ? sprintf( + @{$self->{$key}}[0], +- @{$self->{$key}}[1..@{$self->{$key}}] ++ @{$self->{$key}}[1..@{$self->{$key}}-1] + ) + : $self->{$key}; + +@@ -1613,7 +1613,7 @@ sub _string_attributes { + my ($self) = @_; + + return map { ref $_ eq 'ARRAY' +- ? sprintf(@$_[0], @$_[1..@$_]) ++ ? sprintf(@$_[0], @$_[1..@$_-1]) + : $_ } + grep { defined $_ and (ref $_ or $_ ne '') } + map { $self->{$_} } +-- +2.4.5 + diff --git a/dev-perl/Exception-Base/metadata.xml b/dev-perl/Exception-Base/metadata.xml new file mode 100644 index 000000000000..207de3fc4c34 --- /dev/null +++ b/dev-perl/Exception-Base/metadata.xml @@ -0,0 +1,12 @@ +<?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">Exception-Base</remote-id> + <remote-id type="cpan-module">Exception::Base</remote-id> + </upstream> +</pkgmetadata> |