Only depend on XSLoader if perl < 5.24.1.

While here, simplify the XS strippage.
This commit is contained in:
Adam Weinberger 2016-09-26 15:38:22 +00:00
parent 7fbed186b8
commit b1b8761933
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422781

View file

@ -5,7 +5,6 @@ PORTNAME= List-MoreUtils
DISTVERSION= 0.416
CATEGORIES= lang perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:REHSACK
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
@ -14,19 +13,20 @@ COMMENT= Provide the stuff missing in List::Util
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-Exporter-Tiny>=0.038:devel/p5-Exporter-Tiny \
p5-XSLoader>=0.22:devel/p5-XSLoader
BUILD_DEPENDS= p5-Exporter-Tiny>=0.038:devel/p5-Exporter-Tiny
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
post-stage:
( \
cd ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/List/MoreUtils; \
${CHMOD} u+w MoreUtils.so; \
${STRIP_CMD} MoreUtils.so; \
${CHMOD} u-w MoreUtils.so; \
)
.include <bsd.port.pre.mk>
.include <bsd.port.mk>
.if ${PERL_LEVEL} < 502401
BUILD_DEPENDS+= p5-XSLoader>=0.22:devel/p5-XSLoader
RUN_DEPENDS+= p5-XSLoader>=0.22:devel/p5-XSLoader
.endif
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/List/MoreUtils/MoreUtils.so
.include <bsd.port.post.mk>