Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2013 11:14:37 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338086 - head/textproc/py-asv
Message-ID:  <201312301114.rBUBEbKG088147@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Mon Dec 30 11:14:37 2013
New Revision: 338086
URL: http://svnweb.freebsd.org/changeset/ports/338086

Log:
  textproc/py-asv: support staging

Modified:
  head/textproc/py-asv/Makefile

Modified: head/textproc/py-asv/Makefile
==============================================================================
--- head/textproc/py-asv/Makefile	Mon Dec 30 11:12:10 2013	(r338085)
+++ head/textproc/py-asv/Makefile	Mon Dec 30 11:14:37 2013	(r338086)
@@ -8,7 +8,7 @@ MASTER_SITES=	http://tratt.net/laurie/sr
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	An extensible Python module to parse simple text file formats like CSV
+COMMENT=	Extensible Python module to parse simple text file formats like CSV
 
 USE_PYTHON=	yes
 
@@ -19,27 +19,23 @@ PLIST_FILES=	bin/asv \
 		%%PYTHON_SITELIBDIR%%/ASV.pyc \
 		%%PYTHON_SITELIBDIR%%/ASV.pyo
 
-NO_STAGE=	yes
 do-build:
-	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
-	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
+		-d ${PYTHONPREFIX_SITELIBDIR} \
+		-f ${WRKSRC}
+	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
+		-d ${PYTHONPREFIX_SITELIBDIR} \
+		-f ${WRKSRC}
 
 do-install:
 	@printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \
 		> ${WRKDIR}/asv.sh
-	${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${PREFIX}/bin/asv
-	${INSTALL_DATA} ${WRKSRC}/ASV.* ${PYTHONPREFIX_SITELIBDIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for docfile in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
-.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-.for egfile in ${PORTEXAMPLES}
-	${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
-.endfor
-.endif
+	${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${STAGEDIR}${PREFIX}/bin/asv
+	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+	${INSTALL_DATA} ${WRKSRC}/ASV.* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



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