freebsd-ports/www/p5-WWW-Mechanize-Shell/Makefile
Sunpoet Po-Chuan Hsieh f0a11c94c8 - Update *_DEPENDS: p5-parent is already in perl >= 5.10.1
- Add TEST_DEPENDS
- Respect PORTEXAMPLES
- Bump PORTREVISION for dependency change
2012-01-08 13:48:04 +00:00

62 lines
1.7 KiB
Makefile

# New Ports Collection Makefile for: p5-WWW-Mechanize-Shell
# Date created: 2004-07-08
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= WWW-Mechanize-Shell
PORTVERSION= 0.52
PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:CORION
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= An interactive shell for www/p5-WWW-Mechanize
BUILD_DEPENDS= p5-HTML-Display>=0:${PORTSDIR}/www/p5-HTML-Display \
p5-HTML-TokeParser-Simple>=2:${PORTSDIR}/www/p5-HTML-TokeParser-Simple \
p5-Hook-LexWrap>=0.2:${PORTSDIR}/devel/p5-Hook-LexWrap \
p5-Term-Shell>=0.02:${PORTSDIR}/devel/p5-Term-Shell \
p5-URI>=0:${PORTSDIR}/net/p5-URI \
p5-WWW-Mechanize>=1.2:${PORTSDIR}/www/p5-WWW-Mechanize \
p5-WWW-Mechanize-FormFiller>=0.05:${PORTSDIR}/www/p5-WWW-Mechanize-FormFiller \
p5-libwww>=5.69:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp
PERL_CONFIGURE= yes
MAN3= WWW::Mechanize::Shell.3
.if !defined(NOPORTDOCS)
PORTDOCS= Changes README
.endif
.if !defined(NOPORTEXAMPLES)
EXAMPLES= bin/banking.postbank.de.mech bin/hotmail.signup.mech bin/wwwshell.pl
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}/
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
@${ECHO_MSG} "===> Documentation installed in ${EXAMPLESDIR}."
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
.endif
.include <bsd.port.post.mk>