Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2020 10:54:20 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r524839 - in head/devel: . p5-B-COW
Message-ID:  <202002021054.012AsKsh071776@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Feb  2 10:54:20 2020
New Revision: 524839
URL: https://svnweb.freebsd.org/changeset/ports/524839

Log:
  Add p5-B-COW 0.002
  
  B::COW provides some naive additional B helpers to check the COW status of one
  SvPV.
  
  A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a (kind of)
  Read Only C string, that would be Copied On Write (COW). More than one SV can
  share the same PV, but when one PV need to alter it, it would perform a copy of
  it, decrease the COWREFCNT counter. One SV can then drop the COW flag when it's
  the only one holding a pointer to the PV. The COWREFCNT is stored at the end of
  the PV, after the the "\0". That value is limited to 255, when we reach 255, a
  new PV would be created,
  
  WWW: https://metacpan.org/release/B-COW

Added:
  head/devel/p5-B-COW/
  head/devel/p5-B-COW/Makefile   (contents, props changed)
  head/devel/p5-B-COW/distinfo   (contents, props changed)
  head/devel/p5-B-COW/pkg-descr   (contents, props changed)
  head/devel/p5-B-COW/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Feb  2 10:46:40 2020	(r524838)
+++ head/devel/Makefile	Sun Feb  2 10:54:20 2020	(r524839)
@@ -1747,6 +1747,7 @@
     SUBDIR += p5-AutoLoader
     SUBDIR += p5-AutoXS-Header
     SUBDIR += p5-B-C
+    SUBDIR += p5-B-COW
     SUBDIR += p5-B-Compiling
     SUBDIR += p5-B-Deobfuscate
     SUBDIR += p5-B-Flags

Added: head/devel/p5-B-COW/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-COW/Makefile	Sun Feb  2 10:54:20 2020	(r524839)
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	B-COW
+PORTVERSION=	0.002
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Additional B helpers to check COW status
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		perl5
+USE_PERL5=	configure
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/COW/COW.so
+
+.include <bsd.port.mk>

Added: head/devel/p5-B-COW/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-COW/distinfo	Sun Feb  2 10:54:20 2020	(r524839)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1580562231
+SHA256 (B-COW-0.002.tar.gz) = fce7738147ef00bd342575d942d469d4a0002740ed6cdd73f121ef12bae8577c
+SIZE (B-COW-0.002.tar.gz) = 18194

Added: head/devel/p5-B-COW/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-COW/pkg-descr	Sun Feb  2 10:54:20 2020	(r524839)
@@ -0,0 +1,12 @@
+B::COW provides some naive additional B helpers to check the COW status of one
+SvPV.
+
+A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a (kind of)
+Read Only C string, that would be Copied On Write (COW). More than one SV can
+share the same PV, but when one PV need to alter it, it would perform a copy of
+it, decrease the COWREFCNT counter. One SV can then drop the COW flag when it's
+the only one holding a pointer to the PV. The COWREFCNT is stored at the end of
+the PV, after the the "\0". That value is limited to 255, when we reach 255, a
+new PV would be created,
+
+WWW: https://metacpan.org/release/B-COW

Added: head/devel/p5-B-COW/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-COW/pkg-plist	Sun Feb  2 10:54:20 2020	(r524839)
@@ -0,0 +1,3 @@
+%%SITE_ARCH%%/B/COW.pm
+%%SITE_ARCH%%/auto/B/COW/COW.so
+%%PERL5_MAN3%%/B::COW.3.gz



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