Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2016 06:35:22 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429583 - in head/math: . py-yt py-yt/files
Message-ID:  <201612270635.uBR6ZMh0037556@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Tue Dec 27 06:35:22 2016
New Revision: 429583
URL: https://svnweb.freebsd.org/changeset/ports/429583

Log:
  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
  
  PR:		214565
  Submitted by:	yuri@rawbw.com

Added:
  head/math/py-yt/
  head/math/py-yt/Makefile   (contents, props changed)
  head/math/py-yt/distinfo   (contents, props changed)
  head/math/py-yt/files/
  head/math/py-yt/files/patch-yt_extern_tqdm___utils.py   (contents, props changed)
  head/math/py-yt/pkg-descr   (contents, props changed)
Modified:
  head/math/Makefile

Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile	Tue Dec 27 05:36:23 2016	(r429582)
+++ head/math/Makefile	Tue Dec 27 06:35:22 2016	(r429583)
@@ -631,6 +631,7 @@
     SUBDIR += py-theano
     SUBDIR += py-ufl
     SUBDIR += py-viper
+    SUBDIR += py-yt
     SUBDIR += qalculate
     SUBDIR += qd
     SUBDIR += qhull

Added: head/math/py-yt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-yt/Makefile	Tue Dec 27 06:35:22 2016	(r429583)
@@ -0,0 +1,38 @@
+# Created by: Yuri Victorovich <yuri@rawbw.com>
+# $FreeBSD$
+
+PORTNAME=	yt
+PORTVERSION=	3.3.3
+CATEGORIES=	math astro python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@rawbw.com
+COMMENT=	Analysis and visualization toolkit for volumetric data
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING.txt
+
+BUILD_DEPENDS=	cython:lang/cython \
+		${PYNUMPY}
+RUN_DEPENDS=	isympy:math/py-sympy \
+		${PYNUMPY}  \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib \
+		${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython
+LIB_DEPENDS=	libembree.so:graphics/embree \
+		libomp.so:devel/openmp
+
+USES=		localbase python
+USE_PYTHON=	autoplist distutils
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|\['-fopenmp', filename\]|['-I${LOCALBASE}/include', '-L${LOCALBASE}/lib', '-lm', '-fopenmp', filename]|" \
+		${WRKSRC}/setupext.py
+
+post-install:
+	# workaround for the bug https://bitbucket.org/yt_analysis/yt/issues/1296
+	@${ECHO} "${PYTHON_SITELIBDIR}/yt/__hg_version__.py" >> ${_PYTHONPKGLIST}
+	@${ECHO} "${PYTHON_SITELIBDIR}/yt/__hg_version__.pyc" >> ${_PYTHONPKGLIST}
+	@${ECHO} "${PYTHON_SITELIBDIR}/yt/__hg_version__.pyo" >> ${_PYTHONPKGLIST}
+
+.include <bsd.port.mk>

Added: head/math/py-yt/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-yt/distinfo	Tue Dec 27 06:35:22 2016	(r429583)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1482742193
+SHA256 (yt-3.3.3.tar.gz) = edf6453927eee311d4b51afacb52cd5504b2b57cc6d3d92dab9c6bfaf6d883df
+SIZE (yt-3.3.3.tar.gz) = 8911901

Added: head/math/py-yt/files/patch-yt_extern_tqdm___utils.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-yt/files/patch-yt_extern_tqdm___utils.py	Tue Dec 27 06:35:22 2016	(r429583)
@@ -0,0 +1,10 @@
+--- yt/extern/tqdm/_utils.py.orig	2016-10-25 16:08:30 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

Added: head/math/py-yt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-yt/pkg-descr	Tue Dec 27 06:35:22 2016	(r429583)
@@ -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



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