39 lines
1,002 B
Makefile
39 lines
1,002 B
Makefile
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= MetaCPAN-API
|
|
PORTVERSION= 0.43
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= CPAN
|
|
MASTER_SITE_SUBDIR= CPAN:XSAWYERX
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Comprehensive, DWIM-featured API to MetaCPAN
|
|
|
|
BUILD_DEPENDS= p5-Any-Moose>=0:${PORTSDIR}/devel/p5-Any-Moose \
|
|
p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
|
|
p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
|
|
p5-URI>=0:${PORTSDIR}/net/p5-URI
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal \
|
|
p5-Test-TinyMocker>=0:${PORTSDIR}/devel/p5-Test-TinyMocker
|
|
|
|
USES= perl5
|
|
USE_PERL5= modbuild
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
regression-test: build
|
|
cd ${WRKSRC} && ${PERL5} ${PL_BUILD} test
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 501400
|
|
BUILD_DEPENDS+= p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny
|
|
RUN_DEPENDS+= p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|