pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc Add p5-String-Expand



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56de9b4502df
branches:  trunk
changeset: 358024:56de9b4502df
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Fri Feb 03 15:33:57 2017 +0000

description:
Add p5-String-Expand

This module implements utility functions for expanding embedded
variables in a string. Variable references are embedded in strings in
a similar form to the Bourne shell, namely, in the form $NAME or
${NAME}. In the former case, the NAME must consist of a capital letter
or underscore, and may be followed by zero or more capital letters,
digits or underscores. In the latter case, the name can consist of any
characters, but will be terminated by the first close brace character
'}'.

diffstat:

 textproc/Makefile                  |   3 ++-
 textproc/p5-String-Expand/DESCR    |  17 +++++++++++++++++
 textproc/p5-String-Expand/Makefile |  22 ++++++++++++++++++++++
 textproc/p5-String-Expand/PLIST    |   4 ++++
 textproc/p5-String-Expand/distinfo |   6 ++++++
 5 files changed, 51 insertions(+), 1 deletions(-)

diffs (82 lines):

diff -r 33310ed61ffc -r 56de9b4502df textproc/Makefile
--- a/textproc/Makefile Fri Feb 03 15:30:45 2017 +0000
+++ b/textproc/Makefile Fri Feb 03 15:33:57 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.903 2017/01/25 14:12:23 wiz Exp $
+# $NetBSD: Makefile,v 1.904 2017/02/03 15:33:57 hauke Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -494,6 +494,7 @@
 SUBDIR+=       p5-String-CamelCase
 SUBDIR+=       p5-String-Compare-ConstantTime
 SUBDIR+=       p5-String-Errf
+SUBDIR+=       p5-String-Expand
 SUBDIR+=       p5-String-Flogger
 SUBDIR+=       p5-String-Formatter
 SUBDIR+=       p5-String-Koremutake
diff -r 33310ed61ffc -r 56de9b4502df textproc/p5-String-Expand/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Expand/DESCR   Fri Feb 03 15:33:57 2017 +0000
@@ -0,0 +1,17 @@
+This module implements utility functions for expanding embedded
+variables in a string. Variable references are embedded in strings in
+a similar form to the Bourne shell, namely, in the form $NAME or
+${NAME}. In the former case, the NAME must consist of a capital letter
+or underscore, and may be followed by zero or more capital letters,
+digits or underscores. In the latter case, the name can consist of any
+characters, but will be terminated by the first close brace character
+'}'.
+
+The string may also contain literal dollar marks, escaped by \$, and
+literal escape marks, escaped by \\. These will be converted to $ and
+\ respectively on return.
+
+While there are many other modules that also provide expansion such as
+this, this module provides the function expand_strings(), which will
+perform variable expansions in all the values in a given hash, where
+values can refer to other values within the same hash.
diff -r 33310ed61ffc -r 56de9b4502df textproc/p5-String-Expand/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Expand/Makefile        Fri Feb 03 15:33:57 2017 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2017/02/03 15:33:58 hauke Exp $
+
+DISTNAME=      String-Expand-0.04
+PKGNAME=       p5-${DISTNAME}
+#PKGREVISION=  1
+CATEGORIES=    textproc perl5
+MASTER_SITES=  https://cpan.metacpan.org/authors/id/P/PE/PEVANS/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://metacpan.org/pod/String::Expand
+COMMENT=       Functions to expand variables in self-referential sets
+LICENSE=       ${PERL5_LICENSE}
+
+DEPENDS+=      p5-Test-More-Behaviour-[0-9]*:../../devel/p5-Test-More-Behaviour
+DEPENDS+=      p5-Test-Exception-[0-9]*:../../devel/p5-Test-Exception
+
+PERL5_MODULE_TYPE=      Module::Build
+PERL5_PACKLIST=         auto/String/Expand/.packlist
+USE_LANGUAGES=          # none
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 33310ed61ffc -r 56de9b4502df textproc/p5-String-Expand/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Expand/PLIST   Fri Feb 03 15:33:57 2017 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/03 15:33:58 hauke Exp $
+${PERL5_SUB_INSTALLVENDORLIB}/String/Expand.pm
+${PERL5_SUB_INSTALLVENDORARCH}/auto/String/Expand/.packlist
+${PERL5_SUB_INSTALLVENDORMAN3DIR}/String::Expand.3
diff -r 33310ed61ffc -r 56de9b4502df textproc/p5-String-Expand/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Expand/distinfo        Fri Feb 03 15:33:57 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/02/03 15:33:58 hauke Exp $
+
+SHA1 (String-Expand-0.04.tar.gz) = 04aac4fa81b2e04b65f82e5cded5260ab1a9fc92
+RMD160 (String-Expand-0.04.tar.gz) = a26e518e0ff6e33bea9974107d2a4483d656f1e3
+SHA512 (String-Expand-0.04.tar.gz) = 3f987fae841a644593e092f35ab6f5af019bc97cb391f61727e008064fa9f18d3dd508314a46fd44ebda1670747f5f0ff0f32f0e69df345275c1e5d1ce10198d
+Size (String-Expand-0.04.tar.gz) = 12463 bytes



Home | Main Index | Thread Index | Old Index