Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2014 08:50:24 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r345930 - head/news/aub
Message-ID:  <201402250850.s1P8oOwk005214@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Feb 25 08:50:24 2014
New Revision: 345930
URL: http://svnweb.freebsd.org/changeset/ports/345930
QAT: https://qat.redports.org/buildarchive/r345930/

Log:
  - Support staging
  - Use shebangfix
  - Define DOCS

Deleted:
  head/news/aub/pkg-plist
Modified:
  head/news/aub/Makefile

Modified: head/news/aub/Makefile
==============================================================================
--- head/news/aub/Makefile	Tue Feb 25 08:44:44 2014	(r345929)
+++ head/news/aub/Makefile	Tue Feb 25 08:50:24 2014	(r345930)
@@ -11,23 +11,26 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}
 MAINTAINER=	obrien@FreeBSD.org
 COMMENT=	Assemble usenet binaries
 
+USES=		shebangfix
 NO_BUILD=	yes
-MAN1=		aub.1.sgml aubconf.1.sgml
+
+MANPAGE=	aub.1.sgml aubconf.1.sgml
+PORTDOCS=	COPYING README aubconf.example
+PLIST_FILES=	bin/aub man/man1/aub.1.sgml.gz man/man1/aubconf.1.sgml.gz
+SHEBANG_FILES=	aub
+
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-DOC_FILES=	COPYING README aubconf.example
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/aub ${PREFIX}/bin
-.for manpage in ${MAN1}
-	${INSTALL_MAN} ${WRKSRC}/${manpage} ${MANPREFIX}/man/man1
+	${INSTALL_SCRIPT} ${WRKSRC}/aub ${STAGEDIR}${PREFIX}/bin
+.for manpage in ${MANPAGE}
+	${INSTALL_MAN} ${WRKSRC}/${manpage} ${STAGEDIR}${MANPREFIX}/man/man1
 .endfor
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for doc in ${DOC_FILES}
-	${INSTALL_MAN} ${WRKSRC}/${doc} ${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for doc in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>



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