Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2018 21:07:51 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485487 - in head/devel/py-numba: . files
Message-ID:  <201811202107.wAKL7pX5030559@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Nov 20 21:07:51 2018
New Revision: 485487
URL: https://svnweb.freebsd.org/changeset/ports/485487

Log:
  devel/py-numba: Update 0.38.0 -> 0.40.1
  
  PR:		233232
  Approved by:	dave@dal.ca (maintainer)

Added:
  head/devel/py-numba/files/
  head/devel/py-numba/files/patch-numba_npyufunc_workqueue.c   (contents, props changed)
Modified:
  head/devel/py-numba/Makefile
  head/devel/py-numba/distinfo

Modified: head/devel/py-numba/Makefile
==============================================================================
--- head/devel/py-numba/Makefile	Tue Nov 20 21:05:57 2018	(r485486)
+++ head/devel/py-numba/Makefile	Tue Nov 20 21:07:51 2018	(r485487)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	numba
-DISTVERSION=	0.38.0
-PORTREVISION=	1
+DISTVERSION=	0.40.1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,21 +14,17 @@ LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>1.7,1:math/py-numpy@${PY_FLAVOR}
+LIB_DEPENDS=	libomp.so:devel/openmp \
+		libtbb.so:devel/tbb
 RUN_DEPENDS=	${PY_ENUM34} \
 		${PYTHON_PKGNAMEPREFIX}llvmlite>=0.12:devel/py-llvmlite@${PY_FLAVOR}
+py27_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}singledispatch>0:devel/py-singledispatch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}funcsigs>0:devel/py-funcsigs@${PY_FLAVOR}
 
-USES=		python fortran
+USES=		python fortran localbase
 USE_PYTHON=	distutils concurrent autoplist
 
-.include <bsd.port.pre.mk>
-
-# Required for Python 2.7
-.if ${PYTHON_REL} < 3400
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}singledispatch>0:devel/py-singledispatch@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}funcsigs>0:devel/py-funcsigs@${PY_FLAVOR}
-.endif
-
 post-install:
 	@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name "*.so" | ${XARGS} ${STRIP_CMD}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/py-numba/distinfo
==============================================================================
--- head/devel/py-numba/distinfo	Tue Nov 20 21:05:57 2018	(r485486)
+++ head/devel/py-numba/distinfo	Tue Nov 20 21:07:51 2018	(r485487)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1527530784
-SHA256 (numba-0.38.0.tar.gz) = da1a5ae35a64536dcc46880450e0f839e53a2cf5c587fb09e5e1bf9cbcca8693
-SIZE (numba-0.38.0.tar.gz) = 1406895
+TIMESTAMP = 1542233569
+SHA256 (numba-0.40.1.tar.gz) = 52d046c13bcf0de79dbfb936874b7228f141b9b8e3447cc35855e9ad3e12aa33
+SIZE (numba-0.40.1.tar.gz) = 1518126

Added: head/devel/py-numba/files/patch-numba_npyufunc_workqueue.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-numba/files/patch-numba_npyufunc_workqueue.c	Tue Nov 20 21:07:51 2018	(r485487)
@@ -0,0 +1,14 @@
+--- numba/npyufunc/workqueue.c.orig	2018-11-14 22:14:35 UTC
++++ numba/npyufunc/workqueue.c
+@@ -19,7 +19,11 @@ race condition.
+ /* PThread */
+ #include <pthread.h>
+ #include <unistd.h>
++#if defined(__FreeBSD__)
++#include <stdlib.h>
++#else
+ #include <alloca.h>
++#endif
+ #define NUMBA_PTHREAD
+ #endif
+ 



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