From owner-svn-ports-all@FreeBSD.ORG Tue Mar 17 16:51:22 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F0F6CA9; Tue, 17 Mar 2015 16:51:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 597B98EB; Tue, 17 Mar 2015 16:51:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2HGpMFS090415; Tue, 17 Mar 2015 16:51:22 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2HGpKFp090404; Tue, 17 Mar 2015 16:51:20 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201503171651.t2HGpKFp090404@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Tue, 17 Mar 2015 16:51:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381501 - in head/devel: . p5-Data-Lock X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2015 16:51:22 -0000 Author: adamw Date: Tue Mar 17 16:51:19 2015 New Revision: 381501 URL: https://svnweb.freebsd.org/changeset/ports/381501 QAT: https://qat.redports.org/buildarchive/r381501/ Log: Add devel/p5-Data-Lock, a facility to mark variables as immutable. It is comparable to p5-Readonly (but much faster; see https://metacpan.org/pod/Data::Lock#BENCHMARK), or to the constant pragma (except it retains sigils). It includes Data::Lock and its dlock() function which handles scalars, and Attribute::Constant which exports a ': Constant' attribute, which is faster but has caveats. Added: head/devel/p5-Data-Lock/ head/devel/p5-Data-Lock/Makefile (contents, props changed) head/devel/p5-Data-Lock/distinfo (contents, props changed) head/devel/p5-Data-Lock/pkg-descr (contents, props changed) head/devel/p5-Data-Lock/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Mar 17 16:03:31 2015 (r381500) +++ head/devel/Makefile Tue Mar 17 16:51:19 2015 (r381501) @@ -1797,6 +1797,7 @@ SUBDIR += p5-Data-JavaScript-Anon SUBDIR += p5-Data-Lazy SUBDIR += p5-Data-Localize + SUBDIR += p5-Data-Lock SUBDIR += p5-Data-MessagePack SUBDIR += p5-Data-MessagePack-Stream SUBDIR += p5-Data-Miscellany Added: head/devel/p5-Data-Lock/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Data-Lock/Makefile Tue Mar 17 16:51:19 2015 (r381501) @@ -0,0 +1,17 @@ +# Created by: Adam Weinberger +# $FreeBSD$ + +PORTNAME= Data-Lock +PORTVERSION= 1.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:DANKOGAI +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= Make variables (im)?mutable + +USES= perl5 +USE_PERL5= configure + +.include Added: head/devel/p5-Data-Lock/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Data-Lock/distinfo Tue Mar 17 16:51:19 2015 (r381501) @@ -0,0 +1,2 @@ +SHA256 (Data-Lock-1.03.tar.gz) = 8a6965ee35dae29cfa25c267f07f830b9bd3a2ecaaa9d4671fa143665fd9ffc9 +SIZE (Data-Lock-1.03.tar.gz) = 7196 Added: head/devel/p5-Data-Lock/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Data-Lock/pkg-descr Tue Mar 17 16:51:19 2015 (r381501) @@ -0,0 +1,8 @@ +Data::Lock makes the specified variable immutable like Readonly. Unlike Readonly +which implements immutability via tie, Data::Lock makes use of the internal flag +of perl SV so it imposes almost no penalty. + +Like Readonly, Data::Lock locks not only the variable itself but also elements +therein. You can Data::Lock objects as well. + +WWW: https://metacpan.org/pod/Data::Lock Added: head/devel/p5-Data-Lock/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Data-Lock/pkg-plist Tue Mar 17 16:51:19 2015 (r381501) @@ -0,0 +1,4 @@ +%%SITE_PERL%%/Attribute/Constant.pm +%%SITE_PERL%%/Data/Lock.pm +%%PERL5_MAN3%%/Attribute::Constant.3.gz +%%PERL5_MAN3%%/Data::Lock.3.gz