| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/science/thermofun/ |
Upload File : |
PORTNAME= thermofun
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.0
CATEGORIES= science # chemistry
MAINTAINER= yuri@FreeBSD.org
COMMENT= Code for calculating thermodynamic properties of materials
WWW= https://github.com/thermohub/thermofun
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json \
spdlog>0:devel/spdlog
LIB_DEPENDS= libChemicalFun.so:science/chemicalfun
USES= cmake compiler:c++14-lang
USE_GITHUB= yes
GH_ACCOUNT= thermohub
CXXFLAGS+= -DSPDLOG_FMT_EXTERNAL # see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258073#c3
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
TEST_WRKSRC= ${WRKSRC}
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
PYTHON_USES= python
PYTHON_USE= PYTHON=pytest # 2 tests fail, see https://github.com/thermohub/thermofun/issues/37
PYTHON_CMAKE_BOOL= TFUN_BUILD_PYTHON
PYTHON_CMAKE_ON= -DFREEBSD_STAGEDIR=${STAGEDIR}
PYTHON_BUILD_DEPENDS= pybind11>0:devel/pybind11
post-install-PYTHON-on:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/thermofun/PyThermoFun${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>