Add p5-WWW-Shorten 1.84, abstract interface to URL shortening sites.

PR:		56153
Submitted by:	Lars Thegler <lars@thegler.dk>
This commit is contained in:
Mathieu Arnold 2003-09-01 12:29:36 +00:00
parent 786eedd813
commit f34a0dd8b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88272
5 changed files with 107 additions and 0 deletions

View file

@ -398,6 +398,7 @@
SUBDIR += p5-WWW-Search
SUBDIR += p5-WWW-Search-AltaVista
SUBDIR += p5-WWW-Search-Google
SUBDIR += p5-WWW-Shorten
SUBDIR += p5-libapreq
SUBDIR += p5-libservlet
SUBDIR += p5-libwww

View file

@ -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>

View file

@ -0,0 +1 @@
MD5 (WWW-Shorten-1.84.tar.gz) = 8513dd460e54f4235e06448481637b68

View file

@ -0,0 +1,4 @@
A Perl interface to URL shortening sites. These sites maintain databases
of long URLs, each of which has a unique identifier.
WWW: http://search.cpan.org/dist/WWW-Shorten/

View file

@ -0,0 +1,36 @@
%%SITE_PERL%%/WWW/Shorten.pm
%%SITE_PERL%%/WWW/Shorten/EkDk.pm
%%SITE_PERL%%/WWW/Shorten/MakeAShorterLink.pm
%%SITE_PERL%%/WWW/Shorten/Metamark.pm
%%SITE_PERL%%/WWW/Shorten/NotLong.pm
%%SITE_PERL%%/WWW/Shorten/Shorl.pm
%%SITE_PERL%%/WWW/Shorten/ShortLink.pm
%%SITE_PERL%%/WWW/Shorten/SmLnk.pm
%%SITE_PERL%%/WWW/Shorten/SnipURL.pm
%%SITE_PERL%%/WWW/Shorten/TinyClick.pm
%%SITE_PERL%%/WWW/Shorten/TinyURL.pm
%%SITE_PERL%%/WWW/Shorten/Tinylink.pm
%%SITE_PERL%%/WWW/Shorten/generic.pm
%%SITE_PERL%%/WWW/Shorten/qURL.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Shorten/.packlist
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/Artistic
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/Changes
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/MANIFEST
%%PORTDOCS%%%%DOCSDIR%%/MANIFEST.SKIP
%%PORTDOCS%%%%DOCSDIR%%/META.yml
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/SIGNATURE
%%PORTDOCS%%%%EXAMPLESDIR%%/shorten
%%PORTDOCS%%%%EXAMPLESDIR%%/shortenrc
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Shorten
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW 2>/dev/null || true
@dirrm %%SITE_PERL%%/WWW/Shorten
@unexec rmdir %D/%%SITE_PERL%%/WWW 2>/dev/null || true