summaryrefslogtreecommitdiffstats
path: root/www/p5-WWW-Shorten/Makefile
blob: daa00595f92384f4e8babea50df891ea10d32322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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.88
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	WWW
PKGNAMEPREFIX=	p5-

MAINTAINER=	lth@FreeBSD.org
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::BabyURL.3 \
		WWW::Shorten::EkDk.3 \
		WWW::Shorten::Linkz.3 \
		WWW::Shorten::MakeAShorterLink.3 \
		WWW::Shorten::Metamark.3 \
		WWW::Shorten::NotLong.3 \
		WWW::Shorten::OneShortLink.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::URLjr.3 \
		WWW::Shorten::V3.3 \
		WWW::Shorten::qURL.3

DOCS=		AUTHORS Artistic COPYING CREDITS ChangeLog Changes \
		INSTALL LICENCE 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>
OpenPOWER on IntegriCloud