Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 01:26:52 +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: r331919 - head/games/funnyboat
Message-ID:  <201310290126.r9T1QqdH026126@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Oct 29 01:26:51 2013
New Revision: 331919
URL: http://svnweb.freebsd.org/changeset/ports/331919

Log:
  - Support staging

Modified:
  head/games/funnyboat/Makefile

Modified: head/games/funnyboat/Makefile
==============================================================================
--- head/games/funnyboat/Makefile	Tue Oct 29 01:11:25 2013	(r331918)
+++ head/games/funnyboat/Makefile	Tue Oct 29 01:26:51 2013	(r331919)
@@ -22,24 +22,15 @@ NO_BUILD=	yes
 SUB_FILES=	funnyboat_
 SUB_LIST=	PROGRAM_DIR="${PREFIX}/lib/${PORTNAME}"
 
-PORTDOCS=	README.txt
+PORTDOCS=	*
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFAULT=DOCS
 
 do-install:
-	${MKDIR} ${PREFIX}/lib/${PORTNAME}
-	${MKDIR} ${PREFIX}/lib/${PORTNAME}/data
-	${INSTALL_DATA} ${WRKSRC}/*.py ${PREFIX}/lib/${PORTNAME}
-	${INSTALL_DATA} ${WRKSRC}/data/* ${PREFIX}/lib/${PORTNAME}/data
-	${INSTALL_SCRIPT} ${WRKDIR}/funnyboat_ ${PREFIX}/bin/funnyboat
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+	cd ${WRKSRC} && ${COPYTREE_SHARE} "*.py data" ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
+	${INSTALL_SCRIPT} ${WRKDIR}/funnyboat_ ${STAGEDIR}${PREFIX}/bin/funnyboat
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>



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