Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id CDC137A275 for ; Fri, 3 Feb 2017 15:33:59 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 740FE85607; Fri, 3 Feb 2017 15:33:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0451A855FD for ; Fri, 3 Feb 2017 15:33:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id iSXWFM2MSXrl for ; Fri, 3 Feb 2017 15:33:58 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 440FD855CB for ; Fri, 3 Feb 2017 15:33:58 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 3AF03FBA6; Fri, 3 Feb 2017 15:33:58 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_148613603820850" MIME-Version: 1.0 Date: Fri, 3 Feb 2017 15:33:58 +0000 From: "Hauke Fath" Subject: CVS commit: pkgsrc/textproc To: pkgsrc-changes@NetBSD.org Reply-To: hauke@netbsd.org X-Mailer: log_accum Message-Id: <20170203153358.3AF03FBA6@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_148613603820850 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: hauke Date: Fri Feb 3 15:33:58 UTC 2017 Modified Files: pkgsrc/textproc: Makefile Added Files: pkgsrc/textproc/p5-String-Expand: DESCR Makefile PLIST distinfo Log Message: 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 '}'. To generate a diff of this commit: cvs rdiff -u -r1.903 -r1.904 pkgsrc/textproc/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/p5-String-Expand/DESCR \ pkgsrc/textproc/p5-String-Expand/Makefile \ pkgsrc/textproc/p5-String-Expand/PLIST \ pkgsrc/textproc/p5-String-Expand/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_148613603820850 Content-Disposition: inline Content-Length: 3999 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/textproc/Makefile diff -u pkgsrc/textproc/Makefile:1.903 pkgsrc/textproc/Makefile:1.904 --- pkgsrc/textproc/Makefile:1.903 Wed Jan 25 14:12:23 2017 +++ pkgsrc/textproc/Makefile Fri Feb 3 15:33:57 2017 @@ -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-CRC32 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 Added files: Index: pkgsrc/textproc/p5-String-Expand/DESCR diff -u /dev/null pkgsrc/textproc/p5-String-Expand/DESCR:1.1 --- /dev/null Fri Feb 3 15:33:58 2017 +++ pkgsrc/textproc/p5-String-Expand/DESCR Fri Feb 3 15:33:58 2017 @@ -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. Index: pkgsrc/textproc/p5-String-Expand/Makefile diff -u /dev/null pkgsrc/textproc/p5-String-Expand/Makefile:1.1 --- /dev/null Fri Feb 3 15:33:58 2017 +++ pkgsrc/textproc/p5-String-Expand/Makefile Fri Feb 3 15:33:58 2017 @@ -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 +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" Index: pkgsrc/textproc/p5-String-Expand/PLIST diff -u /dev/null pkgsrc/textproc/p5-String-Expand/PLIST:1.1 --- /dev/null Fri Feb 3 15:33:58 2017 +++ pkgsrc/textproc/p5-String-Expand/PLIST Fri Feb 3 15:33:58 2017 @@ -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 Index: pkgsrc/textproc/p5-String-Expand/distinfo diff -u /dev/null pkgsrc/textproc/p5-String-Expand/distinfo:1.1 --- /dev/null Fri Feb 3 15:33:58 2017 +++ pkgsrc/textproc/p5-String-Expand/distinfo Fri Feb 3 15:33:58 2017 @@ -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 --_----------=_148613603820850--