Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2014 11:42:11 +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: r361906 - in head/devel: . p5-Struct-Dumb
Message-ID:  <201407151142.s6FBgBh7018953@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Jul 15 11:42:11 2014
New Revision: 361906
URL: http://svnweb.freebsd.org/changeset/ports/361906
QAT: https://qat.redports.org/buildarchive/r361906/

Log:
  - Add p5-Struct-Dumb 0.02
  
  Struct::Dumb creates record-like structure types, similar to the struct keyword
  in C, C++ or C#, or Record in Pascal. An invocation of this module will create a
  construction function which returns new object references with the given field
  values. These references all respond to lvalue methods that access or modify the
  values stored.
  
  It's specifically and intentionally not meant to be an object class. You cannot
  subclass it. You cannot provide additional methods. You cannot apply roles or
  mixins or metaclasses or traits or antlers or whatever else is in fashion this
  week.
  
  On the other hand, it is tiny, creates cheap lightweight array-backed
  structures, uses nothing outside of core. It's intended simply to be a slightly
  nicer way to store data structures, where otherwise you might be tempted to
  abuse a hash, complete with the risk of typoing key names. The constructor will
  croak if passed the wrong number of arguments, as will attempts to refer to
  fields that don't exist.
  
  WWW: http://search.cpan.org/dist/Struct-Dumb/

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Jul 15 11:36:16 2014	(r361905)
+++ head/devel/Makefile	Tue Jul 15 11:42:11 2014	(r361906)
@@ -2745,6 +2745,7 @@
     SUBDIR += p5-String-RexxParse
     SUBDIR += p5-String-Similarity
     SUBDIR += p5-String-TT
+    SUBDIR += p5-Struct-Dumb
     SUBDIR += p5-Sub-Alias
     SUBDIR += p5-Sub-Current
     SUBDIR += p5-Sub-Delete

Added: head/devel/p5-Struct-Dumb/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Struct-Dumb/Makefile	Tue Jul 15 11:42:11 2014	(r361906)
@@ -0,0 +1,22 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	Struct-Dumb
+PORTVERSION=	0.02
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:PEVANS
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Make simple lightweight record-like structures
+
+LICENSE=	ART10 GPLv1
+LICENSE_COMB=	dual
+
+TEST_DEPENDS=	p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal
+
+USE_PERL5=	configure
+USES=		perl5
+
+.include <bsd.port.mk>

Added: head/devel/p5-Struct-Dumb/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Struct-Dumb/distinfo	Tue Jul 15 11:42:11 2014	(r361906)
@@ -0,0 +1,2 @@
+SHA256 (Struct-Dumb-0.02.tar.gz) = 9c483e45f7c6365ccf694aa8f09ec05598264cee70007e7b99c34c37f2935a5b
+SIZE (Struct-Dumb-0.02.tar.gz) = 12107

Added: head/devel/p5-Struct-Dumb/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Struct-Dumb/pkg-descr	Tue Jul 15 11:42:11 2014	(r361906)
@@ -0,0 +1,19 @@
+Struct::Dumb creates record-like structure types, similar to the struct keyword
+in C, C++ or C#, or Record in Pascal. An invocation of this module will create a
+construction function which returns new object references with the given field
+values. These references all respond to lvalue methods that access or modify the
+values stored.
+
+It's specifically and intentionally not meant to be an object class. You cannot
+subclass it. You cannot provide additional methods. You cannot apply roles or
+mixins or metaclasses or traits or antlers or whatever else is in fashion this
+week.
+
+On the other hand, it is tiny, creates cheap lightweight array-backed
+structures, uses nothing outside of core. It's intended simply to be a slightly
+nicer way to store data structures, where otherwise you might be tempted to
+abuse a hash, complete with the risk of typoing key names. The constructor will
+croak if passed the wrong number of arguments, as will attempts to refer to
+fields that don't exist.
+
+WWW: http://search.cpan.org/dist/Struct-Dumb/

Added: head/devel/p5-Struct-Dumb/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-Struct-Dumb/pkg-plist	Tue Jul 15 11:42:11 2014	(r361906)
@@ -0,0 +1,6 @@
+%%SITE_PERL%%/Struct/Dumb.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Struct/Dumb/.packlist
+%%PERL5_MAN3%%/Struct::Dumb.3.gz
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Struct/Dumb
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Struct
+@dirrmtry %%SITE_PERL%%/Struct



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