blob: fd581d24053c594b4553c1d77a3b63f289c45eed (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= Module-Build
PORTVERSION= 0.4200
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Build and install Perl modules
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
TEST_DEPENDS= p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip \
p5-PAR-Dist>=0.17:${PORTSDIR}/devel/p5-PAR-Dist
OPTIONS_DEFINE= DOCS
PORTSCOUT= skipv:0.31011,0.31012
USES= perl5
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>
|