Skip to content

Commit

Permalink
science/thermofun: Update 0.3.9 -> 0.4.0
Browse files Browse the repository at this point in the history
Reported by:	portscout
  • Loading branch information
yurivict committed Jul 17, 2022
1 parent 9a53618 commit 9c92256
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
20 changes: 17 additions & 3 deletions science/thermofun/Makefile
@@ -1,6 +1,6 @@
PORTNAME= thermofun
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.9
DISTVERSION= 0.4.0
CATEGORIES= science # chemistry

MAINTAINER= yuri@FreeBSD.org
Expand All @@ -9,14 +9,28 @@ COMMENT= Code for calculating thermodynamic properties of materials
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
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

CMAKE_OFF= TFUN_BUILD_PYTHON
CXXFLAGS+= -DSPDLOG_FMT_EXTERNAL # see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258073#c3

OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes

PYTHON_USES= python
PYTHON_USE= PYTHON=pytest
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>
6 changes: 3 additions & 3 deletions science/thermofun/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1642529596
SHA256 (thermohub-thermofun-v0.3.9_GH0.tar.gz) = 49995b3a139e7ed93d2bf6ab09a316459bca809cf3f612878c9fa017befaf913
SIZE (thermohub-thermofun-v0.3.9_GH0.tar.gz) = 1338633
TIMESTAMP = 1658079403
SHA256 (thermohub-thermofun-v0.4.0_GH0.tar.gz) = bd863174a272ddf166643312bc4b759cb429ed0230e9023678357673e56569b2
SIZE (thermohub-thermofun-v0.4.0_GH0.tar.gz) = 1340065
11 changes: 11 additions & 0 deletions science/thermofun/files/patch-python_thermofun_CMakeLists.txt
@@ -0,0 +1,11 @@
--- python/thermofun/CMakeLists.txt.orig 2022-07-17 19:24:14 UTC
+++ python/thermofun/CMakeLists.txt
@@ -43,7 +43,7 @@ install(CODE
endif()

execute_process(
- COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install --prefix=\${THERMOFUN_PYTHON_INSTALL_PREFIX_NATIVE}
+ COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install --root=${FREEBSD_STAGEDIR} --prefix=\${THERMOFUN_PYTHON_INSTALL_PREFIX_NATIVE}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
"
)
4 changes: 4 additions & 0 deletions science/thermofun/pkg-plist
Expand Up @@ -68,3 +68,7 @@ lib/cmake/ThermoFun/ThermoFunConfigVersion.cmake
lib/cmake/ThermoFun/ThermoFunTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/ThermoFun/ThermoFunTargets.cmake
lib/libThermoFun.so
%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun/PyThermoFun%%PYTHON_EXT_SUFFIX%%.so
%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun/__init__.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.0-py%%PYTHON_VER%%.egg-info

0 comments on commit 9c92256

Please sign in to comment.