svn commit: r335059 - in head/devel: . p5-Readonly-XS
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Nov 27 20:45:22 UTC 2013
Author: sunpoet
Date: Wed Nov 27 20:45:06 2013
New Revision: 335059
URL: http://svnweb.freebsd.org/changeset/ports/335059
Log:
- Add p5-Readonly-XS 1.05
This module corrects the speed problem, at least with respect to scalar
variables. When Readonly::XS is installed, Readonly uses it to access the
internals of scalar variables. Instead of creating a scalar variable object and
tying it, Readonly simply flips the SvREADONLY bit in the scalar's FLAGS
structure.
Readonly arrays and hashes are not sped up by this, since the SvREADONLY flag
only works for scalars. Arrays and hashes always use the tie interface.
Programs that you write do not need to know whether Readonly::XS is installed or
not. They should just "use Readonly" and let Readonly worry about whether or not
it can use XS. If the Readonly::XS is present, Readonly will be faster. If not,
it won't. Either way, it will still work, and your code will not have to change.
Your program can check whether Readonly.pm is using XS or not by examining the
$Readonly::XSokay variable. It will be true if the XS module was found and is
being used. Please do not change this variable.
WWW: http://search.cpan.org/dist/Readonly-XS/
Added:
head/devel/p5-Readonly-XS/
head/devel/p5-Readonly-XS/Makefile (contents, props changed)
head/devel/p5-Readonly-XS/distinfo (contents, props changed)
head/devel/p5-Readonly-XS/pkg-descr (contents, props changed)
head/devel/p5-Readonly-XS/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Nov 27 20:44:49 2013 (r335058)
+++ head/devel/Makefile Wed Nov 27 20:45:06 2013 (r335059)
@@ -2585,6 +2585,7 @@
SUBDIR += p5-ReadLine-Perl
SUBDIR += p5-ReadLine-TTYtter
SUBDIR += p5-Readonly
+ SUBDIR += p5-Readonly-XS
SUBDIR += p5-Reflex
SUBDIR += p5-Regexp-Assemble
SUBDIR += p5-Regexp-Assemble-Compressed
Added: head/devel/p5-Readonly-XS/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Readonly-XS/Makefile Wed Nov 27 20:45:06 2013 (r335059)
@@ -0,0 +1,22 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Readonly-XS
+PORTVERSION= 1.05
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Companion module for Readonly.pm, to speed up read-only scalar variables
+
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+BUILD_DEPENDS= p5-Readonly>=1.02:${PORTSDIR}/devel/p5-Readonly
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USE_PERL5= configure
+USES= perl5
+
+.include <bsd.port.mk>
Added: head/devel/p5-Readonly-XS/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Readonly-XS/distinfo Wed Nov 27 20:45:06 2013 (r335059)
@@ -0,0 +1,2 @@
+SHA256 (Readonly-XS-1.05.tar.gz) = 8ae5c4e85299e5c8bddd1b196f2eea38f00709e0dc0cb60454dc9114ae3fff0d
+SIZE (Readonly-XS-1.05.tar.gz) = 8849
Added: head/devel/p5-Readonly-XS/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Readonly-XS/pkg-descr Wed Nov 27 20:45:06 2013 (r335059)
@@ -0,0 +1,19 @@
+This module corrects the speed problem, at least with respect to scalar
+variables. When Readonly::XS is installed, Readonly uses it to access the
+internals of scalar variables. Instead of creating a scalar variable object and
+tying it, Readonly simply flips the SvREADONLY bit in the scalar's FLAGS
+structure.
+
+Readonly arrays and hashes are not sped up by this, since the SvREADONLY flag
+only works for scalars. Arrays and hashes always use the tie interface.
+
+Programs that you write do not need to know whether Readonly::XS is installed or
+not. They should just "use Readonly" and let Readonly worry about whether or not
+it can use XS. If the Readonly::XS is present, Readonly will be faster. If not,
+it won't. Either way, it will still work, and your code will not have to change.
+
+Your program can check whether Readonly.pm is using XS or not by examining the
+$Readonly::XSokay variable. It will be true if the XS module was found and is
+being used. Please do not change this variable.
+
+WWW: http://search.cpan.org/dist/Readonly-XS/
Added: head/devel/p5-Readonly-XS/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Readonly-XS/pkg-plist Wed Nov 27 20:45:06 2013 (r335059)
@@ -0,0 +1,8 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Readonly/XS.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Readonly/XS/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Readonly/XS/XS.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Readonly/XS/XS.so
+%%PERL5_MAN3%%/Readonly::XS.3.gz
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Readonly/XS
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Readonly
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Readonly
More information about the svn-ports-all
mailing list