Date: Sun, 16 Nov 2008 11:37:19 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gslin@gslin.org Subject: ports/128899: [NEW PORT] devel/p5-Sub-Delete: Perl module enabling one to delete subroutines Message-ID: <200811160337.mAG3bJvT062107@host-1.pixnet.tw> Resent-Message-ID: <200811160340.mAG3e2xw087434@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128899 >Category: ports >Synopsis: [NEW PORT] devel/p5-Sub-Delete: Perl module enabling one to delete subroutines >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 16 03:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD host-1.pixnet.tw 7.0-STABLE FreeBSD 7.0-STABLE #1: Wed Jul 16 13:00:27 CST 2008 >Description: This module provides one function, delete_sub, that deletes the subroutine whose name is passed to it. (To load the module without importing the function, write use Sub::Delete();.) This does more than simply undefine the subroutine in the manner of undef &foo, which leaves a stub that can trigger AUTOLOAD (and, consequently, won't work for deleting methods). The subroutine is completely obliterated from the symbol table (though there may be references to it elsewhere, including in compiled code). WWW: http://search.cpan.org/dist/Sub-Delete/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-Sub-Delete-0.02.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Sub-Delete # p5-Sub-Delete/pkg-descr # p5-Sub-Delete/Makefile # p5-Sub-Delete/pkg-plist # p5-Sub-Delete/distinfo # echo c - p5-Sub-Delete mkdir -p p5-Sub-Delete > /dev/null 2>&1 echo x - p5-Sub-Delete/pkg-descr sed 's/^X//' >p5-Sub-Delete/pkg-descr << 'ffd98efa5f376764705109f31c068c55' XThis module provides one function, delete_sub, that deletes the Xsubroutine whose name is passed to it. (To load the module without Ximporting the function, write use Sub::Delete();.) X XThis does more than simply undefine the subroutine in the manner of Xundef &foo, which leaves a stub that can trigger AUTOLOAD (and, Xconsequently, won't work for deleting methods). The subroutine is Xcompletely obliterated from the symbol table (though there may be Xreferences to it elsewhere, including in compiled code). X XWWW: http://search.cpan.org/dist/Sub-Delete/ ffd98efa5f376764705109f31c068c55 echo x - p5-Sub-Delete/Makefile sed 's/^X//' >p5-Sub-Delete/Makefile << '70166a395a6bccfcbf19e07ecb3aa666' X# New ports collection makefile for: p5-Sub-Delete X# Date created: 2008-11-16 X# Whom: Gea-Suan Lin <gslin@gslin.org> X# X# $FreeBSD$ X# X XPORTNAME= Sub-Delete XPORTVERSION= 0.02 XCATEGORIES= devel perl5 XMASTER_SITES= CPAN XMASTER_SITE_SUBDIR= Sub XPKGNAMEPREFIX= p5- X XMAINTAINER= gslin@gslin.org XCOMMENT= Perl module enabling one to delete subroutines X XPERL_CONFIGURE= yes XUSE_PERL5= 5.8.3+ X XMAN3= Sub::Delete.3 X X.include <bsd.port.pre.mk> X.include <bsd.port.post.mk> 70166a395a6bccfcbf19e07ecb3aa666 echo x - p5-Sub-Delete/pkg-plist sed 's/^X//' >p5-Sub-Delete/pkg-plist << '693c7a2dcf2d5774ebcde17c757e9f50' X@comment $FreeBSD$ X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sub/Delete/.packlist X%%SITE_PERL%%/Sub/Delete.pm X@dirrmtry %%SITE_PERL%%/Sub X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sub/Delete X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sub 693c7a2dcf2d5774ebcde17c757e9f50 echo x - p5-Sub-Delete/distinfo sed 's/^X//' >p5-Sub-Delete/distinfo << '02815d35909e0b6363a3216c812379d8' XMD5 (Sub-Delete-0.02.tar.gz) = 54f2015f0add6cd5f0dbe64ea7056150 XSHA256 (Sub-Delete-0.02.tar.gz) = 3274e766a91873dbcdee5144beb2181df7d9bba9d0b6ab9758b98704bd4e2c07 XSIZE (Sub-Delete-0.02.tar.gz) = 3213 02815d35909e0b6363a3216c812379d8 exit --- p5-Sub-Delete-0.02.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811160337.mAG3bJvT062107>