Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 20:18:08 +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: r336287 - in head/math/py-numarray: . files
Message-ID:  <201312122018.rBCKI82h065823@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Thu Dec 12 20:18:08 2013
New Revision: 336287
URL: http://svnweb.freebsd.org/changeset/ports/336287

Log:
  math/py-numarray: allow staging and use auto python plist

Added:
  head/math/py-numarray/files/
  head/math/py-numarray/files/patch-setup.py   (contents, props changed)
Deleted:
  head/math/py-numarray/pkg-plist
Modified:
  head/math/py-numarray/Makefile

Modified: head/math/py-numarray/Makefile
==============================================================================
--- head/math/py-numarray/Makefile	Thu Dec 12 20:00:58 2013	(r336286)
+++ head/math/py-numarray/Makefile	Thu Dec 12 20:18:08 2013	(r336287)
@@ -12,19 +12,22 @@ COMMENT=	Numeric array manipulation exte
 
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-NO_STAGE=	yes
 post-configure:
 	cd ${WRKSRC} && \
 	${PYTHON_CMD} generate.py && \
 	${PYTHON_CMD} Include/numarray/genapis.py
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
-	@${TAR} -C ${WRKSRC}/Doc -cf- .|${TAR} -C ${DOCSDIR} -xf-
-	@${TAR} -C ${WRKSRC}/Examples -cf- .|${TAR} -C ${EXAMPLESDIR} -xf-
-	@${RM} -fr ${EXAMPLESDIR}/ufunc/build
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@${TAR} -C ${WRKSRC}/Doc -cf- .|${TAR} -C ${STAGEDIR}${DOCSDIR} -xf-
+	@${TAR} -C ${WRKSRC}/Examples -cf- .|${TAR} -C ${STAGEDIR}${EXAMPLESDIR} -xf-
+	@${RM} -fr ${STAGEDIR}${EXAMPLESDIR}/ufunc/build
 
 .include <bsd.port.mk>

Added: head/math/py-numarray/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-numarray/files/patch-setup.py	Thu Dec 12 20:18:08 2013	(r336287)
@@ -0,0 +1,9 @@
+--- setup.py.orig	2013-12-12 18:04:59.679796972 -0200
++++ setup.py	2013-12-12 18:05:04.376796310 -0200
+@@ -227,6 +227,4 @@
+ # Do the installation.
+ #
+ if __name__ == "__main__":
+-  if "config" not in sys.argv and ("build" in sys.argv or "install" in sys.argv):
+-    sys.argv.insert(sys.argv.index("setup.py")+1, "config")
+   main()



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