Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2016 09:01:14 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420389 - head/news/aub
Message-ID:  <201608180901.u7I91Eag084332@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Aug 18 09:01:14 2016
New Revision: 420389
URL: https://svnweb.freebsd.org/changeset/ports/420389

Log:
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/news/aub/Makefile

Modified: head/news/aub/Makefile
==============================================================================
--- head/news/aub/Makefile	Thu Aug 18 08:29:37 2016	(r420388)
+++ head/news/aub/Makefile	Thu Aug 18 09:01:14 2016	(r420389)
@@ -12,25 +12,25 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Assemble usenet binaries
 
 USES=		shebangfix
+SHEBANG_FILES=	aub
 NO_BUILD=	yes
+NO_ARCH=	yes
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-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}
 
 OPTIONS_DEFINE=	DOCS
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/aub ${STAGEDIR}${PREFIX}/bin
-.for manpage in ${MANPAGE}
-	${INSTALL_MAN} ${WRKSRC}/${manpage} ${STAGEDIR}${MANPREFIX}/man/man1
-.endfor
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for doc in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/aub*.1.sgml ${STAGEDIR}${MANPREFIX}/man/man1
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 
 .include <bsd.port.mk>



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