blob: bcf9bacbf96cfb3f81e973ecc879602c2c18592c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
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>
|