2001-01-16 18:33:20 +01:00
|
|
|
# New ports collection makefile for: p5-NetAddr-IP
|
|
|
|
# Date created: 12 July 2000
|
|
|
|
# Whom: Christopher N. Harrell <cnh@ivmg.net>
|
2000-07-27 17:32:23 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= NetAddr-IP
|
2002-11-17 19:57:13 +01:00
|
|
|
PORTVERSION= 3.14
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= net perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
2000-07-27 17:32:23 +02:00
|
|
|
MASTER_SITE_SUBDIR= NetAddr
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2001-06-12 21:25:41 +02:00
|
|
|
MAINTAINER= tobez@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Perl module for working with IP addresses and blocks thereof
|
2000-07-27 17:32:23 +02:00
|
|
|
|
2002-11-17 19:57:13 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
2001-03-01 07:39:18 +01:00
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
|
|
|
MAN3= NetAddr::IP.3
|
2000-07-27 17:32:23 +02:00
|
|
|
|
2001-10-14 23:29:36 +02:00
|
|
|
post-patch:
|
|
|
|
${PERL} -pi -e 's/\r//;' \
|
|
|
|
-e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
|
|
|
|
-e '$$_="" if /require 5/;' \
|
|
|
|
-e '$$_="" if /use warnings/;' \
|
2002-09-12 14:04:21 +02:00
|
|
|
${WRKSRC}/IP.pm ${WRKSRC}/t/v4-badnm.t
|
2001-10-14 23:29:36 +02:00
|
|
|
|
2002-07-25 01:34:39 +02:00
|
|
|
post-build:
|
|
|
|
@${PERL} -M5.6.0 -e '' >/dev/null 2>&1 || \
|
|
|
|
( ${ECHO_MSG} "===> Please note that this module provides more functionality when" && \
|
|
|
|
${ECHO_MSG} "===> used with perl 5.6.1 or perl 5.8.0 (both in the ports collection)." )
|
|
|
|
|
2000-07-27 17:32:23 +02:00
|
|
|
.include <bsd.port.mk>
|