Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2015 16:51:20 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
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
Message-ID:  <201503171651.t2HGpKFp090404@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <adamw@FreeBSD.org>
+# $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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503171651.t2HGpKFp090404>