blob: 60f5ccfdeac0387233b1a4bfc5fcf0e5d4033978 (
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
|
# Created by: Jun-ichiro itojun Hagino <itojun@itojun.org>
# $FreeBSD$
PORTNAME= portlint
PORTVERSION= 2.14.4
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= marcus@FreeBSD.org
COMMENT= A verifier for FreeBSD port directory
NO_BUILD= yes
WRKSRC= ${WRKDIR}/src
USES= perl5
USE_PERL5= run
SRC= ${.CURDIR}/src
MAN1= portlint.1
PLIST_FILES= bin/portlint
.if !defined(NOPORTEXAMPLES)
PLIST_FILES+= %%EXAMPLESDIR%%/portlintgrep
PLIST_DIRS= %%EXAMPLESDIR%%
.endif
NO_STAGE= yes
do-fetch:
@${DO_NADA}
pre-patch:
@${CP} -R ${SRC} ${WRKDIR}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/portlint.pl
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \
${WRKSRC}/portlintgrep.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/portlint.pl ${PREFIX}/bin/portlint
${INSTALL_MAN} ${WRKSRC}/portlint.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${BINMODE} -d ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/portlintgrep.pl ${EXAMPLESDIR}/portlintgrep
.endif
.include <bsd.port.mk>
|