ports/96304: [PATCH] net/p5-POE-Component-ControlPort: unbreak
Yen-Ming Lee
leeym at FreeBSD.org
Tue Apr 25 08:10:12 UTC 2006
>Number: 96304
>Category: ports
>Synopsis: [PATCH] net/p5-POE-Component-ControlPort: unbreak
>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: Tue Apr 25 08:10:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Yen-Ming Lee
>Release: FreeBSD 6.1-RC i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.1-RC FreeBSD 6.1-RC #0: Tue Apr 11 08:54:13 CST 2006
>Description:
- unbreak this under old perl
Port maintainer (hideo at lastamericanempire.com) is cc'd.
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.4.2005092302/p5-POE-Component-ControlPort-0.01.log
>Fix:
--- p5-POE-Component-ControlPort-0.01.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/p5-POE-Component-ControlPort/Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 Makefile
--- Makefile 6 Feb 2006 11:38:51 -0000 1.1
+++ Makefile 25 Apr 2006 08:04:11 -0000
@@ -15,10 +15,11 @@
MAINTAINER= hideo at lastamericanempire.com
COMMENT= Network control port for POE applications
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
${SITE_PERL}/${PERL_ARCH}/Authen/Libwrap.pm:${PORTSDIR}/security/p5-Authen-Libwrap \
${SITE_PERL}/POE.pm:${PORTSDIR}/devel/p5-POE
-RUN_DEPENDS= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
+BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
PERL_CONFIGURE= yes
@@ -29,16 +30,24 @@
.include <bsd.port.pre.mk>
post-extract:
- @${PERL} -0pi -e 's/my \$$prompt.+(my \$$ret = )(?-s).+/$${1}0;/so' ${WRKSRC}/Makefile.PL
+ @${PERL} -pi -e 's/my \$$ret =.*/my \$$ret = 0;/' ${WRKSRC}/Makefile.PL
.if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader \
+ ${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools
+
post-patch:
@${PERL} -pi -e 's/^our (\W\w+);/use vars q($$1);/o;' \
-e 's/^our\s+(\W\w+)(?!;)/use vars q($$1); $$1/o;' \
-e 'undef $$_ if /^\s*(no|use) warnings/o;' \
+ ${WRKSRC}/VERSION \
+ ${WRKSRC}/t/*.t \
${WRKSRC}/lib/POE/Component/ControlPort.pm \
${WRKSRC}/lib/POE/Component/ControlPort/DefaultCommands.pm \
${WRKSRC}/lib/POE/Component/ControlPort/Command.pm
+
+post-configure:
+ ${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>
--- p5-POE-Component-ControlPort-0.01.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list