aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-MetaCPAN-API/Makefile
blob: 4bb80c546b6e3b54b6b354ac1f565426c640283d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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

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>