From owner-svn-ports-all@FreeBSD.ORG Tue Jul 15 11:42:12 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA6F2E9A; Tue, 15 Jul 2014 11:42:12 +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 BC1AE2D07; Tue, 15 Jul 2014 11:42:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6FBgCYn018958; Tue, 15 Jul 2014 11:42:12 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6FBgBh7018953; Tue, 15 Jul 2014 11:42:11 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201407151142.s6FBgBh7018953@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Tue, 15 Jul 2014 11:42:11 +0000 (UTC) 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 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 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, 15 Jul 2014 11:42:12 -0000 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 +# $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 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