summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Thomas Witt <pyromaniac@exherbo.org> 2017-08-06 19:40:09 +0200
committerAvatar Thomas Witt <pyromaniac@exherbo.org> 2017-08-06 19:45:23 +0200
commitdb4082cc9b0ed1a2297e9334b69afe5f9ba75cab (patch)
tree045d76a751a63a1c2db3d68e2ff309525004e7de
parenteadf6e43ca23a87d8cabecdb9470c6a86cd47447 (diff)
downloadperl-db4082cc9b0ed1a2297e9334b69afe5f9ba75cab.tar.gz
perl-db4082cc9b0ed1a2297e9334b69afe5f9ba75cab.tar.xz
Sub-Name: Bump to 0.21
-rw-r--r--packages/dev-perl/Sub-Name/Sub-Name-0.12.exheres-017
-rw-r--r--packages/dev-perl/Sub-Name/Sub-Name-0.21.exheres-019
2 files changed, 19 insertions, 17 deletions
diff --git a/packages/dev-perl/Sub-Name/Sub-Name-0.12.exheres-0 b/packages/dev-perl/Sub-Name/Sub-Name-0.12.exheres-0
deleted file mode 100644
index ec4ec2c..0000000
--- a/packages/dev-perl/Sub-Name/Sub-Name-0.12.exheres-0
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 2009 Anders Ossowicki <arkanoid@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require perl-module [ module_author=ETHER ]
-
-SUMMARY="Assign a new names to referenced subs"
-
-SLOT="0"
-PLATFORMS="~amd64 ~x86"
-
-DEPENDENCIES="
- build:
- dev-perl/Module-Build[>=0.38]
- test:
- dev-perl/Devel-CheckBin
-"
-
diff --git a/packages/dev-perl/Sub-Name/Sub-Name-0.21.exheres-0 b/packages/dev-perl/Sub-Name/Sub-Name-0.21.exheres-0
new file mode 100644
index 0000000..012722d
--- /dev/null
+++ b/packages/dev-perl/Sub-Name/Sub-Name-0.21.exheres-0
@@ -0,0 +1,19 @@
+# Copyright 2009 Anders Ossowicki <arkanoid@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require perl-module [ module_author=ETHER ]
+
+SUMMARY="(Re)name a sub"
+DESCRIPTION="Assigns a new name to referenced sub. If package specification is omitted in the name,
+then the current package is used. The return value is the sub.
+The name is only used for informative routines (caller, Carp, etc). You won't be able to actually
+invoke the sub by the given name. To allow that, you need to do glob-assignment yourself.
+Note that for anonymous closures (subs that reference lexicals declared outside the sub itself) you
+can name each instance of the closure differently, which can be very useful for debugging.
+"
+
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+
+DEPENDENCIES=""
+