From nobody Tue Mar 7 09:37:55 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PW9NM43kSz3x8hW; Tue, 7 Mar 2023 09:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PW9NM36Ksz3HKq; Tue, 7 Mar 2023 09:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678181875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3vEibQoRHAdkrkh4oo3jl+d0zIwqFRoNRq/3ZuFn+u8=; b=P6TGkKcVRC5bvF8CY26JMbWOnbkv7qCFatQzpOc3s4pSQKibb+V/t9ifDYyxcrfoqbroYm EbLSYoi/69ly5vXTl2jr9JIE05aCSFL6+1d31BbfyLqBKcoccukuarv+mDxmtR+c4NitxX U5ufib45iMXsj400V2z6URCcxaChZDHyRylciYXFbSLkOoxPqFAaFBgvOUb+CUquwAGqT3 A2OZzvmncrdCJA7rCZGhb1PpwqtjJp8osMEdiRxTRx9iGTV9eaFUOA1qsqIiuEqGmJ2zmS Y1rfvI+Qu5mW4FZxEwELYP+UP/47WVP8vkWSq4XVO6X/96cGrOhxtlUeP8SwfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678181875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3vEibQoRHAdkrkh4oo3jl+d0zIwqFRoNRq/3ZuFn+u8=; b=lTdtZccsnJQKcqD4dOnFbRJ/cY9BZ69LjquFUI4/rznyMFw9FR912whIKN1bVutvS6C7IZ KlSd/uHGEuNpghkjyBCxVn/XGvrZuy7OOUK82ufbWG4G1tbTe+aXIrD761HukgHhABeTtu MTvNZ7XOgTdE/H0iZRMKM0+oWpGCKWOsK1I6Aj1SxZ+oTZWMdupgVVsUy6zosGoEt/Ei6M ouzSNm1kMhK2IA6GBptt5IzywTLlsgL2KVqc6y18OedP6Qkxvv7V9TkvfBdZHHWEnT7Wv0 ylAG/NdzZgQPyHEpHEYBbn5d6854mTjKbH15rWW979+7+Oj+wEHYvC+Lvq7laA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678181875; a=rsa-sha256; cv=none; b=tWOhONdjU4DBrrdS594/q5gzA8m5pda+bVgVZbTNbyU1VpItFJ+17CwaQRge6l3iPucVQ9 fvgUefdlkYtK7IzgZ89nL0e7mJH/VjYwHWmUys+wHM+G+mC6OfFnd8g8Cwrg3lhsSbpOHe rwJ1wZqSuhIJZrLywSyK7jlZmSc/9HMcmOQOkbjvSLd8jViJ4K/Ljnx0QOMYOavTYfNTPg sor2WnNLqOEpiO9SIigbwOtE4qZi22vL2ZmRaaD4H3cVQruBdieL8F0mqWtf4db9VRU8e7 rDOTNbkly9+2JyOBpeHgUISpwry4qhlMzy8XoIwS5xLblpCYTqsPF/Hv89QPpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PW9NM2CvxzfKx; Tue, 7 Mar 2023 09:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3279btwC000623; Tue, 7 Mar 2023 09:37:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3279bt4x000622; Tue, 7 Mar 2023 09:37:55 GMT (envelope-from git) Date: Tue, 7 Mar 2023 09:37:55 GMT Message-Id: <202303070937.3279bt4x000622@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: fcafe6faabe5 - main - =?utf-8?Q?science/thermofun:=20Update=200.4.1=20=E2=86=92=200.4.3?= List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fcafe6faabe53481af5f327ca2d5932c9d421279 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=fcafe6faabe53481af5f327ca2d5932c9d421279 commit fcafe6faabe53481af5f327ca2d5932c9d421279 Author: Yuri Victorovich AuthorDate: 2023-03-07 09:37:25 +0000 Commit: Yuri Victorovich CommitDate: 2023-03-07 09:37:50 +0000 science/thermofun: Update 0.4.1 → 0.4.3 Reported by: portscout --- science/thermofun/Makefile | 14 ++++++++++---- science/thermofun/distinfo | 6 +++--- .../files/patch-python_thermofun_CMakeLists.txt | 17 +++++++++++++---- science/thermofun/pkg-plist | 12 +++++++----- 4 files changed, 33 insertions(+), 16 deletions(-) diff --git a/science/thermofun/Makefile b/science/thermofun/Makefile index 16573bf51c04..743fb672df7c 100644 --- a/science/thermofun/Makefile +++ b/science/thermofun/Makefile @@ -1,6 +1,6 @@ PORTNAME= thermofun DISTVERSIONPREFIX= v -DISTVERSION= 0.4.1 +DISTVERSION= 0.4.3 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org @@ -8,10 +8,12 @@ COMMENT= Code for calculating thermodynamic properties of materials WWW= https://github.com/thermohub/thermofun LICENSE= LGPL3 -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ - spdlog>0:devel/spdlog + spdlog>0:devel/spdlog \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} LIB_DEPENDS= libChemicalFun.so:science/chemicalfun USES= cmake compiler:c++14-lang @@ -31,11 +33,15 @@ OPTIONS_SUB= yes PYTHON_USES= python PYTHON_USE= PYTHON=pytest PYTHON_CMAKE_BOOL= TFUN_BUILD_PYTHON -PYTHON_CMAKE_ON= -DFREEBSD_STAGEDIR=${STAGEDIR} +PYTHON_CMAKE_ON= -DFREEBSD_STAGEDIR=${STAGEDIR} -DFREEBSD_PREFIX=${PREFIX} PYTHON_BUILD_DEPENDS= pybind11>0:devel/pybind11 \ ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} post-install-PYTHON-on: + # remove wrong *.pyc, see related bug https://bitbucket.org/gems4/chemicalfun/issues/1/please-support-stagedir + @${FIND} ${STAGEDIR} -name "*.pyc" -delete + @${FIND} ${STAGEDIR} -name __pycache__ -delete + # strip binary @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/thermofun/PyThermoFun${PYTHON_EXT_SUFFIX}.so .include diff --git a/science/thermofun/distinfo b/science/thermofun/distinfo index add6b515ddbb..675495a4c1d7 100644 --- a/science/thermofun/distinfo +++ b/science/thermofun/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1669583901 -SHA256 (thermohub-thermofun-v0.4.1_GH0.tar.gz) = 4f0cf27876a18e9be1c0d882b1ec0a031c41c29d6b6cb541f058ea9be958c2a0 -SIZE (thermohub-thermofun-v0.4.1_GH0.tar.gz) = 1341676 +TIMESTAMP = 1678178602 +SHA256 (thermohub-thermofun-v0.4.3_GH0.tar.gz) = 76c02ba5c0f417e14153ffa98004190d20bc1c526f7b5c43e2237fb649940e3c +SIZE (thermohub-thermofun-v0.4.3_GH0.tar.gz) = 2084591 diff --git a/science/thermofun/files/patch-python_thermofun_CMakeLists.txt b/science/thermofun/files/patch-python_thermofun_CMakeLists.txt index 9919f4931845..96ea83360240 100644 --- a/science/thermofun/files/patch-python_thermofun_CMakeLists.txt +++ b/science/thermofun/files/patch-python_thermofun_CMakeLists.txt @@ -1,11 +1,20 @@ ---- python/thermofun/CMakeLists.txt.orig 2022-07-17 19:24:14 UTC +--- python/thermofun/CMakeLists.txt.orig 2023-03-02 11:19:26 UTC +++ python/thermofun/CMakeLists.txt -@@ -43,7 +43,7 @@ install(CODE +@@ -26,7 +26,7 @@ add_custom_target(thermofun ALL + COMMAND ${CMAKE_COMMAND} -E copy $ + ${CMAKE_CURRENT_BINARY_DIR}/$ + #COMMAND ${PYTHON_EXECUTABLE} -m pip install ${_PIP_ARG} -e ${CMAKE_CURRENT_BINARY_DIR} +- COMMAND ${PYTHON_EXECUTABLE} -m pip install --prefix ${CMAKE_BINARY_DIR} --ignore-installed . ++ COMMAND ${PYTHON_EXECUTABLE} -m pip install --root ${FREEBSD_STAGEDIR} --prefix ${FREEBSD_PREFIX} --ignore-installed . + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) + + # Set dependencies of thermofun target +@@ -54,7 +54,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} +- COMMAND ${PYTHON_EXECUTABLE} -m pip install --prefix \${THERMOFUN_PYTHON_INSTALL_PREFIX_NATIVE} ${CMAKE_CURRENT_BINARY_DIR} ++ COMMAND ${PYTHON_EXECUTABLE} -m pip install --root ${FREEBSD_STAGEDIR} --prefix ${FREEBSD_PREFIX} ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) " ) diff --git a/science/thermofun/pkg-plist b/science/thermofun/pkg-plist index ec205216f226..c11f3bece961 100644 --- a/science/thermofun/pkg-plist +++ b/science/thermofun/pkg-plist @@ -68,10 +68,12 @@ 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-0.4.1-py%%PYTHON_VER%%.egg-info/PKG-INFO -%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.1-py%%PYTHON_VER%%.egg-info/SOURCES.txt -%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.1-py%%PYTHON_VER%%.egg-info/dependency_links.txt -%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.1-py%%PYTHON_VER%%.egg-info/top_level.txt +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/INSTALLER +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/METADATA +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/RECORD +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/REQUESTED +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/WHEEL +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/direct_url.json +%%PYTHON%%%%PYTHON_SITELIBDIR%%/thermofun-0.4.3.dist-info/top_level.txt %%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