PORTNAME= PyNE DISTVERSION= 0.7.7 PORTREVISION= 4 CATEGORIES= science # physics MASTER_SITES= https://raw.githubusercontent.com/pyne/data/master/:decay \ https://raw.githubusercontent.com/pyne/data/master/:cram \ https://raw.githubusercontent.com/pyne/data/master/:dlc \ https://raw.githubusercontent.com/pyne/data/master/:clc \ https://github.com/pyne/data/master/:nuc_data PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= decay.tar.gz:decay \ cram.tar.gz:cram \ decay-linux-clang.tar.gz:dlc \ cram-linux-clang.tar.gz:clc \ prebuilt_nuc_data.h5:nuc_data DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER= yuri@FreeBSD.org COMMENT= PyNE: The Nuclear Engineering Toolkit WWW= https://pyne.io/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/license.txt BROKEN_armv7= clang runs out of memory BROKEN_FreeBSD_14= fails to build: no member named std in namespace std PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}tables>0:devel/py-tables@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} BUILD_DEPENDS= cmake:devel/cmake-core \ ${PY_DEPENDS} LIB_DEPENDS= libhdf5.so:science/hdf5 \ libMOAB.so:math/moab \ libsz.so:science/libaec RUN_DEPENDS= ${PY_DEPENDS} USES= compiler:c++17-lang fortran python USE_PYTHON= distutils cython flavors USE_GITHUB= yes GH_ACCOUNT= pyne GH_PROJECT= pyne MAKE_ENV= DESTDIR=${STAGEDIR} FFLAGS+= -fallow-argument-mismatch # all arguments are described here: http://pyne.io/install/source.html#source PY_EXTRA_ARGS= --slow # this chooses slow compilation of sources from {decay,cram}.tar.gz # over incompatible pre-compiled assembly from {decay,cram}-linux-clang.tar.gz PY_EXTRA_ARGS+= ${_MAKE_JOBS} PY_EXTRA_ARGS+= --hdf5 ${LOCALBASE} PY_EXTRA_ARGS+= --moab ${LOCALBASE} PYDISTUTILS_CONFIGUREARGS= ${PY_EXTRA_ARGS} PYDISTUTILS_BUILDARGS= ${PY_EXTRA_ARGS} BINARY_ALIAS= python=${PYTHON_CMD} post-extract: .for f in decay.tar.gz cram.tar.gz decay-linux-clang.tar.gz cram-linux-clang.tar.gz @${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}/src .endfor do-install: # install project cd ${INSTALL_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_INSTALL_TARGET} # also install nuc_data.h5 because it is referred to in the code and is required by Jupyter notebooks ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/prebuilt_nuc_data.h5 ${STAGEDIR}${PYTHON_SITELIBDIR}/pyne/nuc_data.h5 # strip ${STRIP_CMD} \ ${STAGEDIR}${LOCALBASE}/lib/lib*.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/pyne/*.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/pyne/xs/models.so .include