1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/dns/p5-Net-DNS-ZoneFile/Makefile
Doug Barton e97db53ab7 Adjust the dependency check on p5-Net-DNS to take into account its
new PERL_ARCH'ified location.

In a few cases, standardize on searching for
${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm instead of other files.
2004-01-03 20:30:39 +00:00

34 lines
905 B
Makefile

# New ports collection makefile for: net/p5-Net-DNS-ZoneFile
# Date created: 11 June 2002
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Net-DNS-ZoneFile
PORTVERSION= 1.04
CATEGORIES= dns perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Perl extension to convert a zone file to a collection of RRs
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple \
${SITE_PERL}/NetAddr/IP.pm:${PORTSDIR}/net/p5-NetAddr-IP
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Net::DNS::ZoneFile.3
post-patch:
${PERL} -pi -e 's/^\s*our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
-e '$$_="" if /require 5/;' \
-e '$$_="" if /^\s*(use|no)\s+warnings;\s*$$/;' \
${WRKSRC}/ZoneFile.pm
.include <bsd.port.mk>