1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Remove outdated PERL_LEVEL check

- Simplify Makefile
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-03-01 14:05:11 +00:00
parent 0cbb09ebc6
commit c67de976b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346623

View File

@ -25,33 +25,14 @@ USE_PERL5= modbuild
PORTDOCS= Changes INSTALL README
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-CPAN-Meta>=2.110420:${PORTSDIR}/devel/p5-CPAN-Meta \
p5-CPAN-Meta-YAML>=0.003:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
p5-Module-Metadata>=1.000002:${PORTSDIR}/devel/p5-Module-Metadata \
p5-Parse-CPAN-Meta>=1.44.01:${PORTSDIR}/devel/p5-Parse-CPAN-Meta \
p5-Perl-OSType>=1:${PORTSDIR}/devel/p5-Perl-OSType \
p5-version>=0.87:${PORTSDIR}/devel/p5-version
RUN_DEPENDS+= p5-CPAN-Meta>=2.110420:${PORTSDIR}/devel/p5-CPAN-Meta \
p5-CPAN-Meta-YAML>=0.003:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
p5-Module-Metadata>=1.000002:${PORTSDIR}/devel/p5-Module-Metadata \
p5-Parse-CPAN-Meta>=1.44.01:${PORTSDIR}/devel/p5-Parse-CPAN-Meta \
p5-Perl-OSType>=1:${PORTSDIR}/devel/p5-Perl-OSType \
p5-version>=0.87:${PORTSDIR}/devel/p5-version
.endif
post-patch:
@${RM} -f ${WRKSRC}/bin/config_data
@${REINPLACE_CMD} -e '/script_files/d' ${WRKSRC}/Build.PL
@${REINPLACE_CMD} -e '/^bin\/config_data/d' ${WRKSRC}/MANIFEST
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>