. remove LICENSE_FILE for GPLv2;

. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. use one-line install instead of a .for loop;
. trim Makefile headers.
This commit is contained in:
Boris Samorodov 2013-06-14 16:52:58 +00:00
parent d2fff12f09
commit 57e95e0248
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320954

View file

@ -1,10 +1,5 @@
# ex:ts=8
# New ports collection makefile for: stowES
# Date created: Mar 17, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= stowES
PORTVERSION= 0.5.6
@ -15,7 +10,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Stow enhancement script
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= stow:${PORTSDIR}/sysutils/stow
@ -28,17 +22,19 @@ PORTDOCS= AUTHORS ChangeLog NEWS README TODO \
${PORTNAME}.html ${PORTNAME}.pod ${PORTNAME}.txt
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e "s|'md5sum',|'md5',|" ${WRKSRC}/${PORTNAME}.in
.include <bsd.port.options.mk>
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
${INSTALL_SCRIPT} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>