freebsd-ports/www/p5-WWW-Shorten-0rz/Makefile
Cheng-Lung Sung 2523fd7ae9 - Update to 0.04
- Changes
  - 0rz.net moved to 0rz.tw

PR:		ports/103835
Submitted by:	clsung
Approved by:	maintainer <snowfly_AT_yuntech dot edu dot tw>
2006-10-01 03:14:56 +00:00

36 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.04
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>