freebsd-ports/devel/p5-MetaCPAN-API/Makefile
Sunpoet Po-Chuan Hsieh 2d24a27926 - Fix *_DEPENDS: p5-HTTP-Tiny is in core since Perl 5.13.9 (check PERL_LEVEL against 501400)
- Bump PORTREVISION for dependency change

PR:		ports/167142
Submitted by:	sunpoet (myself)
2012-05-05 17:25:45 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: devel/p5-MetaCPAN-API
# Date created: 14 November 2011
# Whom: 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= A 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
PERL_MODBUILD= yes
MAN3= MetaCPAN::API.3 MetaCPAN::API::Author.3 \
MetaCPAN::API::Module.3 \
MetaCPAN::API::POD.3 \
MetaCPAN::API::Release.3 \
MetaCPAN::API::Source.3
.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>