Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2014 23:47:11 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340949 - head/devel/z80-asm
Message-ID:  <201401242347.s0ONlBXl096193@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jan 24 23:47:11 2014
New Revision: 340949
URL: http://svnweb.freebsd.org/changeset/ports/340949
QAT: https://qat.redports.org/buildarchive/r340949/

Log:
  Support stage
  Use pkg-plist to simplify tracking

Added:
  head/devel/z80-asm/pkg-plist   (contents, props changed)
Modified:
  head/devel/z80-asm/Makefile

Modified: head/devel/z80-asm/Makefile
==============================================================================
--- head/devel/z80-asm/Makefile	Fri Jan 24 23:42:35 2014	(r340948)
+++ head/devel/z80-asm/Makefile	Fri Jan 24 23:47:11 2014	(r340949)
@@ -13,20 +13,12 @@ PATCHFILES=	diff_2.3_2.4-pre3.gz
 PATCH_DIST_STRIP=	-p1
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Z80 assembly code assembler and disassembler
+COMMENT=	Z80 assembly code assembler and disassembler
 
-USE_GMAKE=	yes
+OPTIONS_DEFINE=	DOCS
 
-MAN1=		z80-asm.1 z80-mon.1
-MAN3=		z80-cpu.3 z80-memory.3
-MAN5=		z80-asm.5 z80-banks.5 z80-file.5 z80-keyboard.5 \
-		z80-memory.5 z80-ports.5
-PORTDOCS=	CHANGELOG README TODO z80-asm.html z80-mon.html
-PLIST_FILES=	${BINS:S,^,bin/,}
+USES=		gmake
 
-BINS=		z80-asm z80-mon
-
-NO_STAGE=	yes
 post-extract:
 	@${TOUCH} ${WRKSRC}/hardware/bus_masters
 
@@ -45,23 +37,14 @@ post-patch:
 		 s|-lc ||g' ${WRKSRC}/hardware/Makefile
 
 do-install:
-.for file in ${BINS}
-	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
-.endfor
-.for file in ${MAN1}
-	${INSTALL_MAN} ${WRKSRC}/doc/man/${file} ${MAN1PREFIX}/man/man1
-.endfor
-.for file in ${MAN3}
-	${INSTALL_MAN} ${WRKSRC}/doc/man/${file} ${MAN3PREFIX}/man/man3
-.endfor
-.for file in ${MAN5}
-	${INSTALL_MAN} ${WRKSRC}/doc/man/${file} ${MAN5PREFIX}/man/man5
-.endfor
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/z80-asm ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/z80-mon ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
+	${INSTALL_MAN} ${WRKSRC}/doc/man/*.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Added: head/devel/z80-asm/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/z80-asm/pkg-plist	Fri Jan 24 23:47:11 2014	(r340949)
@@ -0,0 +1,18 @@
+bin/z80-asm
+bin/z80-mon
+man/man1/z80-asm.1.gz
+man/man1/z80-mon.1.gz
+man/man3/z80-cpu.3.gz
+man/man3/z80-memory.3.gz
+man/man5/z80-asm.5.gz
+man/man5/z80-banks.5.gz
+man/man5/z80-file.5.gz
+man/man5/z80-keyboard.5.gz
+man/man5/z80-memory.5.gz
+man/man5/z80-ports.5.gz
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/z80-asm.html
+%%PORTDOCS%%%%DOCSDIR%%/z80-mon.html
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%



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