diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2003-09-01 12:29:36 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2003-09-01 12:29:36 +0000 |
commit | f34a0dd8b7770107569c240be9e54bf582aacebb (patch) | |
tree | 59e5de2a83d5f768eb3f2cd7009154cc918af7ac /www/p5-WWW-Shorten/Makefile | |
parent | Target's maintainers claim, that gcc 3.2.x produce better code than 3.3.x (diff) |
Add p5-WWW-Shorten 1.84, abstract interface to URL shortening sites.
PR: 56153
Submitted by: Lars Thegler <lars@thegler.dk>
Notes
Notes:
svn path=/head/; revision=88272
Diffstat (limited to 'www/p5-WWW-Shorten/Makefile')
-rw-r--r-- | www/p5-WWW-Shorten/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/www/p5-WWW-Shorten/Makefile b/www/p5-WWW-Shorten/Makefile new file mode 100644 index 000000000000..e2bf34f6c9ca --- /dev/null +++ b/www/p5-WWW-Shorten/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: p5-WWW-Shorten +# Date created: August 29 2003 +# Whom: Lars Thegler <lars@thegler.dk> +# +# $FreeBSD$ +# + +PORTNAME= WWW-Shorten +PORTVERSION= 1.84 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= WWW +PKGNAMEPREFIX= p5- + +MAINTAINER= lars@thegler.dk +COMMENT= Abstract interface to URL shortening sites + +BUILD_DEPENDS= ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \ + ${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= WWW::Shorten.3 \ + WWW::Shorten::EkDk.3 \ + WWW::Shorten::MakeAShorterLink.3 \ + WWW::Shorten::Metamark.3 \ + WWW::Shorten::NotLong.3 \ + WWW::Shorten::Shorl.3 \ + WWW::Shorten::ShortLink.3 \ + WWW::Shorten::SmLnk.3 \ + WWW::Shorten::SnipURL.3 \ + WWW::Shorten::TinyClick.3 \ + WWW::Shorten::TinyURL.3 \ + WWW::Shorten::Tinylink.3 \ + WWW::Shorten::qURL.3 + +DOCS= AUTHORS Artistic COPYING CREDITS ChangeLog Changes \ + INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml \ + README SIGNATURE +EXAMPLES= shorten shortenrc + +post-install: +.ifndef(NOPORTDOCS) + @${ECHO_MSG} "===> Installing docs for ${PKGNAME}" + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + @${ECHO_MSG} "===> Installing examples for ${PKGNAME}" + ${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} ${EXAMPLES} ${EXAMPLESDIR} +.endif + +test: + cd ${WRKSRC} ; make test + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +post-patch: + @${PERL} -pi -e 's/^our ([\$$\@]\w+)/use vars qw($$1); $$1/;' \ + -e '$$_ = "" if /5.006/;' \ + $$(${FIND} ${WRKSRC} -name '*.pm') +.endif + +.include <bsd.port.post.mk> |