diff options
author | Rene Ladan <rene@FreeBSD.org> | 2019-09-08 12:56:20 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2019-09-08 12:56:20 +0000 |
commit | 1fbe2de6837014eddcf4ebee7789d2515661e6ba (patch) | |
tree | 76d5b8a976d8e6680e5adb060f2434cc4e033e47 /math/py-yt | |
parent | - Unbreak qtel (diff) |
Resurrect graphics/py-pyembree and math/py-yt now that graphics/embree is fixed.
PR: 240117 (related)
Submitted by: FreeBSD@ShaneWare.Biz
Notes
Notes:
svn path=/head/; revision=511574
Diffstat (limited to 'math/py-yt')
-rw-r--r-- | math/py-yt/Makefile | 39 | ||||
-rw-r--r-- | math/py-yt/distinfo | 3 | ||||
-rw-r--r-- | math/py-yt/files/patch-yt_extern_tqdm___utils.py | 11 | ||||
-rw-r--r-- | math/py-yt/files/patch-yt_utilities_lib_platform__dep.h | 11 | ||||
-rw-r--r-- | math/py-yt/pkg-descr | 7 |
5 files changed, 71 insertions, 0 deletions
diff --git a/math/py-yt/Makefile b/math/py-yt/Makefile new file mode 100644 index 000000000000..a8307fed88b1 --- /dev/null +++ b/math/py-yt/Makefile @@ -0,0 +1,39 @@ +# Created by: Yuri Victorovich <yuri@rawbw.com> +# $FreeBSD$ + +PORTNAME= yt +DISTVERSION= 3.5.0 +PORTREVISION= 3 +CATEGORIES= math astro python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Analysis and visualization toolkit for volumetric data + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING.txt + +BUILD_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}pyembree>0:graphics/py-pyembree@${PY_FLAVOR} +LIB_DEPENDS= libembree.so:graphics/embree \ + libomp.so:devel/openmp +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sympy>=1.0:math/py-sympy@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}pyembree>0:graphics/py-pyembree@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.5.3:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ipython5>=1.0:devel/ipython5@${PY_FLAVOR} + +USES= dos2unix localbase python +USE_PYTHON= distutils cython autoplist concurrent + +post-patch: + @${REINPLACE_CMD} -e "s|check_for_pyembree() is not None|True|; s|check_for_openmp() is True|True|" \ + ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e "s|\['-fopenmp', filename\]|['-I${LOCALBASE}/include', '-L${LOCALBASE}/lib', '-lm', '-fopenmp', filename]|" \ + ${WRKSRC}/setupext.py + +post-install: + @${STRIP_CMD} $$(${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name "*.so") + +.include <bsd.port.mk> diff --git a/math/py-yt/distinfo b/math/py-yt/distinfo new file mode 100644 index 000000000000..e3cfab5cd2e8 --- /dev/null +++ b/math/py-yt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1539846194 +SHA256 (yt-3.5.0.tar.gz) = ee4bf8349f02ce21f571654c26d85c1f69d9678fc8f5c7cfe5d1686c7ed2e3ca +SIZE (yt-3.5.0.tar.gz) = 10417638 diff --git a/math/py-yt/files/patch-yt_extern_tqdm___utils.py b/math/py-yt/files/patch-yt_extern_tqdm___utils.py new file mode 100644 index 000000000000..42900ea89072 --- /dev/null +++ b/math/py-yt/files/patch-yt_extern_tqdm___utils.py @@ -0,0 +1,11 @@ +--- yt/extern/tqdm/_utils.py.orig 2017-01-01 20:57:19 UTC ++++ yt/extern/tqdm/_utils.py +@@ -40,7 +40,7 @@ def _environ_cols_wrapper(): # pragma: + _environ_cols = _environ_cols_windows + if _environ_cols is None: + _environ_cols = _environ_cols_tput +- if current_os in ['Linux', 'Darwin'] or current_os.startswith('CYGWIN'): ++ if current_os in ['FreeBSD', 'Linux', 'Darwin'] or current_os.startswith('CYGWIN'): + _environ_cols = _environ_cols_linux + return _environ_cols + diff --git a/math/py-yt/files/patch-yt_utilities_lib_platform__dep.h b/math/py-yt/files/patch-yt_utilities_lib_platform__dep.h new file mode 100644 index 000000000000..4bf2fcc821d3 --- /dev/null +++ b/math/py-yt/files/patch-yt_utilities_lib_platform__dep.h @@ -0,0 +1,11 @@ +--- yt/utilities/lib/platform_dep.h.orig 2017-01-01 20:57:35 UTC ++++ yt/utilities/lib/platform_dep.h +@@ -57,7 +57,7 @@ double erf(double x) + + #else + #include <stdint.h> +-#include "alloca.h" ++#include <stdlib.h> + #include <math.h> + #endif + diff --git a/math/py-yt/pkg-descr b/math/py-yt/pkg-descr new file mode 100644 index 000000000000..164d85c3123e --- /dev/null +++ b/math/py-yt/pkg-descr @@ -0,0 +1,7 @@ +yt supports structured, variable-resolution meshes, unstructured meshes, +and discrete or sampled data such as particles. Focused on driving +physically-meaningful inquiry, yt has been applied in domains such as +astrophysics, seismology, nuclear engineering, molecular dynamics, and +oceanography. + +WWW: http://yt-project.org |