Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2014 12:27:12 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341167 - head/textproc/dbacl
Message-ID:  <201401261227.s0QCRCgR023766@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Sun Jan 26 12:27:12 2014
New Revision: 341167
URL: http://svnweb.freebsd.org/changeset/ports/341167
QAT: https://qat.redports.org/buildarchive/r341167/

Log:
  Convert to staging.
  
  Sponsored by:	Absolight

Deleted:
  head/textproc/dbacl/pkg-plist
Modified:
  head/textproc/dbacl/Makefile

Modified: head/textproc/dbacl/Makefile
==============================================================================
--- head/textproc/dbacl/Makefile	Sun Jan 26 12:25:40 2014	(r341166)
+++ head/textproc/dbacl/Makefile	Sun Jan 26 12:27:12 2014	(r341167)
@@ -13,31 +13,32 @@ RUN_DEPENDS=	bash:${PORTSDIR}/shells/bas
 
 GNU_CONFIGURE=	yes
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 PROGRAMS=	bayesol dbacl mailinspect hmine hypex
 SCRIPTS=	mailcross mailtoe mailfoot
-MAN1=		bayesol.1 dbacl.1 mailcross.1 mailinspect.1 mailtoe.1 mailfoot.1
+MAN=		bayesol.1 dbacl.1 mailcross.1 mailinspect.1 mailtoe.1 mailfoot.1
+PLIST_FILES=	${PROGRAMS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} ${MAN:S,^,man/man1/,:S,$$,.gz,}
 DOCS=		AUTHORS ChangeLog README doc/dbacl.ps \
 		doc/email.html doc/tutorial.html doc/costs.ps
-EXAMPLES=	sample*.txt japanese.txt example*.risk toy.risk prop.pl
+PORTDOCS=	${DOCS:T}
+PORTEXAMPLES=	sample*.txt japanese.txt example*.risk toy.risk prop.pl
 
-NO_STAGE=	yes
 pre-install:
 	@cd ${WRKSRC}/src && \
 	${REINPLACE_CMD} -e 's,#!/bin/bash,#!${LOCALBASE}/bin/bash,' \
 		${SCRIPTS}
 
 do-install:
-	@${MKDIR} ${EXAMPLESDIR}
 	cd ${WRKSRC}/src && \
-		${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/bin && \
-		${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
+		${INSTALL_PROGRAM} ${PROGRAMS} ${STAGEDIR}${PREFIX}/bin && \
+		${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${PREFIX}/bin
 	cd ${WRKSRC}/man && \
-		${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1 && \
+		${INSTALL_MAN} ${MAN} ${STAGEDIR}${MAN1PREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/doc && \
-		${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
+		${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401261227.s0QCRCgR023766>