freebsd-ports/www/p5-WWW-Mechanize-Shell/Makefile
Adam Weinberger 10f22ecd6d Clean up the rest of the perl@ Makefiles a bit.
- Remove dependencies on modules distributed as part of perl core
- Remove references to FreeBSD < 8 and perl < 5.16
- Ensure that DOCS and EXAMPLES options exist for ports installing
  PORTDOCS or PORTEXAMPLES
- Reduce unnecessary inclusions of bsd.port.options.mk by using
  OPTIONS helpers and the like
- Fix some cases where dependencies were only assigned to BUILD_DEPENDS
- Fix a few of the cases where dependencies were only assigned to RUN_DEPENDS.
  This one happens in many, many ports. I only applied it in cases where
  it interfered with 'make test' but it should maybe be done more generally.
- Mute ${MKDIR} in installation
- Parethesize compound commands
- In www/p5-URI-Fetch, remove the ZLIB option that wasn't used
2015-03-13 17:29:58 +00:00

43 lines
1.4 KiB
Makefile

# Created by: Anton Berezin <tobez@FreeBSD.org>
# $FreeBSD$
PORTNAME= WWW-Mechanize-Shell
PORTVERSION= 0.53
PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:CORION
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= 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
OPTIONS_DEFINE= DOCS EXAMPLES
USES= perl5
USE_PERL5= configure
DOCS= Changes README
EXAMPLES= banking.postbank.de.mech hotmail.signup.mech wwwshell.pl
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/bin && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
@${ECHO_MSG} "===> Documentation installed in ${EXAMPLESDIR}."
.include <bsd.port.mk>