ports/99505: [PATCH] dns/p5-Net-Domain-TLD: unbreak under old perl

Yen-Ming Lee leeym at FreeBSD.org
Tue Jun 27 00:10:19 UTC 2006


>Number:         99505
>Category:       ports
>Synopsis:       [PATCH] dns/p5-Net-Domain-TLD: unbreak under old perl
>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 Jun 27 00:10:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Jun 18 11:24:48 CST 2006
>Description:
- unbreak under old perl
- refine COMMENT
- correct dependencies

Port maintainer (tobez at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-Net-Domain-TLD-1.65.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/dns/p5-Net-Domain-TLD/Makefile,v
retrieving revision 1.3
diff -u -u -r1.3 Makefile
--- Makefile	27 Jan 2006 07:38:37 -0000	1.3
+++ Makefile	26 Jun 2006 23:43:00 -0000
@@ -13,10 +13,11 @@
 PKGNAMEPREFIX=	p5-
 
 MAINTAINER=	tobez at FreeBSD.org
-COMMENT=	Net::Domain::TLD - look up and validate TLDs
+COMMENT=	Look up and validate TLDs
 
-BUILD_DEPENDS=	${SITE_PERL}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize
-RUN_DEPENDS=	${BUILD_DEPENDS}
+RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
+BUILD_DEPENDS=	${RUN_DEPENDS}
+BUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
 
 PERL_CONFIGURE=	yes
 
@@ -25,7 +26,9 @@
 .include <bsd.port.pre.mk>
 
 .if ${PERL_LEVEL} < 500600
-IGNORE=		requires perl 5.6.0 or later. Install lang/perl5.8 and try again
+post-patch:
+	${PERL} -pi -e 's/^\s*our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+		-e 's/.*warnings.*//' ${WRKSRC}/lib/Net/Domain/TLD.pm
 .endif
 
 .include <bsd.port.post.mk>
--- p5-Net-Domain-TLD-1.65.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list