1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/p5-WWW-Shorten-0rz/Makefile
Cheng-Lung Sung d4ef54659d - Update to 0.05
PR:		ports/112010
Submitted by:	clsung
Approved by:	maintainer "snowfly" <snowfly_AT_yuntech dot edu dot tw>
2007-04-29 11:33:31 +00:00

37 lines
882 B
Makefile

# New ports collection makefile for: p5-WWW-Shorten-0rz
# Date created: 2006-07-16
# Whom: Tsung-Han Yeh <snowfly@yuntech.edu.tw>
#
# $FreeBSD$
#
PORTNAME= WWW-Shorten-0rz
PORTVERSION= 0.05
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= WWW
PKGNAMEPREFIX= p5-
MAINTAINER= snowfly@yuntech.edu.tw
COMMENT= Shorten URL using 0rz.net
BUILD_DEPENDS= ${SITE_PERL}/WWW/Shorten.pm:${PORTSDIR}/www/p5-WWW-Shorten \
${SITE_PERL}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= WWW::Shorten::0rz.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
post-patch:
@${PERL} -pi -e 's/^our ([\$$\@]\w+)/use vars qw($$1); $$1/;' \
-e '$$_ = "" if /use 5.006/;' \
-e '$$_ = "" if /use warnings/;' \
$$(${FIND} ${WRKSRC} -name '*.pm')
.endif
.include <bsd.port.post.mk>