1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

* Fix install into a stage directory [1]

* Define LICENSE to BSD to make this port portlint-clean :-)

Submitted by:	ak [1]
This commit is contained in:
Joe Marcus Clarke 2013-10-20 15:01:13 +00:00
parent 39dbe443bd
commit 350039f589
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331023

View File

@ -10,6 +10,8 @@ DISTFILES= # none
MAINTAINER= marcus@FreeBSD.org
COMMENT= Verifier for FreeBSD port directory
LICENSE= BSD
NO_BUILD= yes
WRKSRC= ${WRKDIR}/src
USES= perl5
@ -20,22 +22,14 @@ SRC= ${.CURDIR}/src
PLIST_FILES= bin/portlint \
man/man1/portlint.1.gz
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
PLIST_FILES+= %%EXAMPLESDIR%%/portlintgrep
PLIST_DIRS= %%EXAMPLESDIR%%
.endif
do-fetch:
@${DO_NADA}
PORTEXAMPLES= portlintgrep
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}/portlint.pl \
${WRKSRC}/portlintgrep.pl
do-install:
@ -43,11 +37,8 @@ do-install:
${STAGEDIR}${PREFIX}/bin/portlint
${INSTALL_MAN} ${WRKSRC}/portlint.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MEXAMPLES}
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${BINMODE} -d \
${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/portlintgrep.pl \
${STAGEDIR}${EXAMPLESDIR}/portlintgrep
.endif
.include <bsd.port.mk>