From owner-svn-ports-all@FreeBSD.ORG Mon Jan 14 11:37:29 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 776237A5; Mon, 14 Jan 2013 11:37:29 +0000 (UTC) (envelope-from tobez@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6973EA9E; Mon, 14 Jan 2013 11:37:29 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0EBbT24056788; Mon, 14 Jan 2013 11:37:29 GMT (envelope-from tobez@svn.freebsd.org) Received: (from tobez@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0EBbS6B056783; Mon, 14 Jan 2013 11:37:28 GMT (envelope-from tobez@svn.freebsd.org) Message-Id: <201301141137.r0EBbS6B056783@svn.freebsd.org> From: Anton Berezin Date: Mon, 14 Jan 2013 11:37:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310368 - in head/devel: . p5-namespace-sweep 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.14 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: Mon, 14 Jan 2013 11:37:29 -0000 Author: tobez Date: Mon Jan 14 11:37:27 2013 New Revision: 310368 URL: http://svnweb.freebsd.org/changeset/ports/310368 Log: Add devel/p5-namespace-sweep 0.006, a Perl module to sweep up imported subs in your classes. Added: head/devel/p5-namespace-sweep/ head/devel/p5-namespace-sweep/Makefile (contents, props changed) head/devel/p5-namespace-sweep/distinfo (contents, props changed) head/devel/p5-namespace-sweep/pkg-descr (contents, props changed) head/devel/p5-namespace-sweep/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Jan 14 11:03:34 2013 (r310367) +++ head/devel/Makefile Mon Jan 14 11:37:27 2013 (r310368) @@ -2925,6 +2925,7 @@ SUBDIR += p5-mocked SUBDIR += p5-namespace-autoclean SUBDIR += p5-namespace-clean + SUBDIR += p5-namespace-sweep SUBDIR += p5-orz SUBDIR += p5-parent SUBDIR += p5-perlbrew Added: head/devel/p5-namespace-sweep/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-namespace-sweep/Makefile Mon Jan 14 11:37:27 2013 (r310368) @@ -0,0 +1,23 @@ +# Created by: Anton Berezin +# $FreeBSD$ + +PORTNAME= namespace-sweep +PORTVERSION= 0.006 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= tobez@FreeBSD.org +COMMENT= Sweep up imported subs in your classes + +BUILD_DEPENDS= p5-B-Hooks-EndOfScope>=0.09:${PORTSDIR}/devel/p5-B-Hooks-EndOfScope \ + p5-Package-Stash>=0.33:${PORTSDIR}/devel/p5-Package-Stash \ + p5-Sub-Identify>=0.04:${PORTSDIR}/devel/p5-Sub-Identify \ + p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name +RUN_DEPENDS:= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= namespace::sweep.3 + +.include Added: head/devel/p5-namespace-sweep/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-namespace-sweep/distinfo Mon Jan 14 11:37:27 2013 (r310368) @@ -0,0 +1,2 @@ +SHA256 (namespace-sweep-0.006.tar.gz) = de99ce915ab0f93781580e3433d7dc9c2585a2789627173b280c6030ac0b1953 +SIZE (namespace-sweep-0.006.tar.gz) = 12748 Added: head/devel/p5-namespace-sweep/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-namespace-sweep/pkg-descr Mon Jan 14 11:37:27 2013 (r310368) @@ -0,0 +1,9 @@ +Because Perl methods are just regular subroutines, it's difficult to +tell what's a method and what's just an imported function. As a result, +imported functions can be called as methods on your objects. This pragma +will delete imported functions from your class's symbol table, thereby +ensuring that your interface is as you specified it. However, code +inside your module will still be able to use the imported functions +without any problems. + +WWW: http://search.cpan.org/dist/namespace-sweep/ Added: head/devel/p5-namespace-sweep/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-namespace-sweep/pkg-plist Mon Jan 14 11:37:27 2013 (r310368) @@ -0,0 +1,5 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/sweep/.packlist +%%SITE_PERL%%/namespace/sweep.pm +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/sweep +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace +@dirrmtry %%SITE_PERL%%/namespace