- fix NOPORTDOCS installation

- while here tighten COMMENT and adoption of optionsNG for DOCS

PR:		174590
PR:		170542
Submitted by:	olivier@gid0.org
Approved by:	maintainer timeout, kamikaze@bsdforen.de ( 75 days )
This commit is contained in:
Jason Helfman 2013-03-05 07:40:45 +00:00
parent f9ba68b320
commit 101a81eb37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313441

View file

@ -8,15 +8,15 @@ CATEGORIES= sysutils ports-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME} MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= kamikaze@bsdforen.de MAINTAINER= kamikaze@bsdforen.de
COMMENT= A collection of administration scripts COMMENT= Collection of administration scripts
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
NO_BUILD= yes NO_BUILD= yes
MANCOMPRESSED= yes MANCOMPRESSED= yes
.if defined(NOPORTDOCS) .include <bsd.port.options.mk>
NOPORTDOCS= -nodoc
.else .if ${PORT_OPTIONS:MDOCS}
MAN1= bsdadminscripts.1 \ MAN1= bsdadminscripts.1 \
buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \ buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \
distviper.1 \ distviper.1 \
@ -32,6 +32,8 @@ PORT_SCRIPTS= build clean fetch package \
config-recursive fetch-recursive config-recursive fetch-recursive
MLINKS+= ${RC_SCRIPTS:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,} \ MLINKS+= ${RC_SCRIPTS:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,} \
${PORT_SCRIPTS:S,^,port,:S,$,.1,:S,^,portconfig.1 ,} ${PORT_SCRIPTS:S,^,port,:S,$,.1,:S,^,portconfig.1 ,}
.else
EVALDOCS= -nodoc
.endif .endif
plist: patch plist: patch
@ -41,6 +43,6 @@ plist: patch
do-install: do-install:
@cd ${WRKSRC}; ./install.sh \ @cd ${WRKSRC}; ./install.sh \
-prefix=${PREFIX} -ports=${PORTSDIR} -distdir=${DISTDIR} \ -prefix=${PREFIX} -ports=${PORTSDIR} -distdir=${DISTDIR} \
-datadir=${DATADIR} ${NOPORTDOCS} -datadir=${DATADIR} ${EVALDOCS}
.include <bsd.port.mk> .include <bsd.port.mk>