svn commit: r352906 - head/irc/keitairc2

Pawel Pekala pawel at FreeBSD.org
Sat May 3 13:58:39 UTC 2014


Author: pawel
Date: Sat May  3 13:58:38 2014
New Revision: 352906
URL: http://svnweb.freebsd.org/changeset/ports/352906
QAT: https://qat.redports.org/buildarchive/r352906/

Log:
  Add staging support

Modified:
  head/irc/keitairc2/Makefile

Modified: head/irc/keitairc2/Makefile
==============================================================================
--- head/irc/keitairc2/Makefile	Sat May  3 12:00:10 2014	(r352905)
+++ head/irc/keitairc2/Makefile	Sat May  3 13:58:38 2014	(r352906)
@@ -25,7 +25,6 @@ NO_BUILD=	yes
 
 SHEBANG_FILES=	keitairc
 
-NO_STAGE=	yes
 post-extract:
 	${FIND} ${WRKSRC} -name .cvsignore | ${XARGS} ${RM} -rf
 
@@ -37,10 +36,8 @@ post-patch:
 		${WRKSRC}/lib/Keitairc/Config.pm
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/keitairc ${PREFIX}/bin
-	${MKDIR} ${DATADIR}
-.for dir in doc etc lib
-	${CP} -R ${WRKSRC}/${dir} ${DATADIR}
-.endfor
+	${INSTALL_SCRIPT} ${WRKSRC}/keitairc ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc etc lib" ${STAGEDIR}${DATADIR})
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list