Patching a perl port

Aaron Dalton aaron at daltons.ca
Tue May 24 19:52:44 PDT 2005


I am trying to package a Perl module.  One of the files in the 
distribution needs patching.  I followed the exact same procedure as I did 
in security/p5-Email-Obfuscate but MAKE keeps generating the file 
Comments.pm.orig.  No matter what I do to the patch-file, this .orig file 
keeps showing up!  What am I doing wrong?  I have attached the shar file.

I appreciate your time.
Aaron Dalton
-------------- next part --------------
# 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-Smart-Comments
#	p5-Smart-Comments/pkg-plist
#	p5-Smart-Comments/pkg-descr
#	p5-Smart-Comments/distinfo
#	p5-Smart-Comments/Makefile
#	p5-Smart-Comments/files
#	p5-Smart-Comments/files/patch-lib-Smart-Comments
#
echo c - p5-Smart-Comments
mkdir -p p5-Smart-Comments > /dev/null 2>&1
echo x - p5-Smart-Comments/pkg-plist
sed 's/^X//' >p5-Smart-Comments/pkg-plist << 'END-of-p5-Smart-Comments/pkg-plist'
X%%SITE_PERL%%/Smart/Comments.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Smart/Comments/.packlist
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Smart/Comments
X at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Smart 2>/dev/null || true
X at unexec rmdir %D/%%SITE_PERL%%/Smart 2>/dev/null || true
X
END-of-p5-Smart-Comments/pkg-plist
echo x - p5-Smart-Comments/pkg-descr
sed 's/^X//' >p5-Smart-Comments/pkg-descr << 'END-of-p5-Smart-Comments/pkg-descr'
XSmart comments provide an easy way to insert debugging and tracking code 
Xinto a program. They can report the value of a variable, track the 
Xprogress of a loop, and verify that particular assertions are true.
X
XBest of all, when you're finished debugging, you don't have to remove 
Xthem. Simply commenting out the use Smart::Comments line turns them back 
Xinto regular comments. Leaving smart comments in your code is smart 
Xbecause if you needed them once, you'll almost certainly need them again 
Xlater.
X
XWWW: http://search.cpan.org/dist/Smart-Comments/
XAuthor: Damian Conway <DCONWAY at cpan.org>
X
X- Aaron Dalton
Xaaron at daltons.ca
END-of-p5-Smart-Comments/pkg-descr
echo x - p5-Smart-Comments/distinfo
sed 's/^X//' >p5-Smart-Comments/distinfo << 'END-of-p5-Smart-Comments/distinfo'
XMD5 (Smart-Comments-0.0.3.tar.gz) = b0c33057f396978b8f18d92c77689839
XSIZE (Smart-Comments-0.0.3.tar.gz) = 12680
END-of-p5-Smart-Comments/distinfo
echo x - p5-Smart-Comments/Makefile
sed 's/^X//' >p5-Smart-Comments/Makefile << 'END-of-p5-Smart-Comments/Makefile'
X# New ports collection makefile for:	p5-Smart-Comments
X# Date created:				24 May 2005
X# Whom:					Aaron Dalton <aaron at daltons.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Smart-Comments
XPORTVERSION=	0.0.3
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Smart
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	aaron at daltons.ca
XCOMMENT=	Comments that do more than just sit there
X
XBUILD_DEPENDS=	${SITE_PERL}/Filter/Simple.pm:${PORTSDIR}/textproc/p5-Filter-Simple \
X		${SITE_PERL}/Text/Balanced.pm:${PORTSDIR}/textproc/p5-Text-Balanced \
X		${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version \
X		${SITE_PERL}/${PERL_ARCH}/List/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
X		${SITE_PERL}/${PERL_ARCH}/Data/Dumper.pm:${PORTSDIR}/devel/p5-Data-Dumper
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
X
XMAN3=		Smart::Comments.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500600
XIGNORE=		Perl5.6 or greater required.  Please install lang/perl5 or lang/perl5.8
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Smart-Comments/Makefile
echo c - p5-Smart-Comments/files
mkdir -p p5-Smart-Comments/files > /dev/null 2>&1
echo x - p5-Smart-Comments/files/patch-lib-Smart-Comments
sed 's/^X//' >p5-Smart-Comments/files/patch-lib-Smart-Comments << 'END-of-p5-Smart-Comments/files/patch-lib-Smart-Comments'
X--- lib/Smart/Comments.pm	Tue May 24 15:54:42 2005
X+++ lib/Smart/Comments.pm.patched	Tue May 24 20:32:10 2005
X@@ -1,6 +1,7 @@
X package Smart::Comments;
X 
X-use version; $VERSION = qv('0.0.3');
X+#use version; $VERSION = qv('0.0.3');
X+$VERSION = 0.000003;
X 
X use warnings;
X use strict;
END-of-p5-Smart-Comments/files/patch-lib-Smart-Comments
exit



More information about the freebsd-ports mailing list