Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2014 07:45:20 +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: r346241 - head/print/alignmargins
Message-ID:  <201402270745.s1R7jKVG096684@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Thu Feb 27 07:45:19 2014
New Revision: 346241
URL: http://svnweb.freebsd.org/changeset/ports/346241
QAT: https://qat.redports.org/buildarchive/r346241/

Log:
  Support staging

Modified:
  head/print/alignmargins/Makefile

Modified: head/print/alignmargins/Makefile
==============================================================================
--- head/print/alignmargins/Makefile	Thu Feb 27 07:37:41 2014	(r346240)
+++ head/print/alignmargins/Makefile	Thu Feb 27 07:45:19 2014	(r346241)
@@ -16,26 +16,20 @@ COMMENT=	Utility script to generate cust
 NO_BUILD=	yes
 USES=		perl5
 
-NO_STAGE=	yes
 do-extract:
-	@${RM} -rf ${WRKDIR}
-	@${MKDIR} ${WRKDIR}
 	@${MKDIR} ${WRKSRC}
-	@for distfile in ${EXTRACT_ONLY}; do \
-		if ! (cd ${WRKDIR} && ${CP} ${_DISTDIR}/$$distfile ${WRKSRC});\
-		then \
-			exit 1; \
-		fi \
-	done
+.for f in ${DISTFILES}
+	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}
+.endfor
 
 post-patch:
-	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 			-e 's|%%DATADIR%%|${DATADIR}|g' \
 		${WRKSRC}/alignmargins
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/alignmargins ${LOCALBASE}/bin
-	${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/align.ps ${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/align.ps ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>



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