From owner-dev-commits-ports-main@freebsd.org Thu Aug 5 17:09:47 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF4B8666A68; Thu, 5 Aug 2021 17:09:47 +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 4GgZpz5mh8z3Pl6; Thu, 5 Aug 2021 17:09:47 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 9C0A51E18D; Thu, 5 Aug 2021 17:09:47 +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 175H9lZo022622; Thu, 5 Aug 2021 17:09:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 175H9lkV022621; Thu, 5 Aug 2021 17:09:47 GMT (envelope-from git) Date: Thu, 5 Aug 2021 17:09:47 GMT Message-Id: <202108051709.175H9lkV022621@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: 9fa053ecfce6 - main - science/py-pygmo2: Update 2.16.1 -> 2.18.0 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: 9fa053ecfce6c7b078ba5c50fc1c177b054eada5 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2021 17:09:48 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=9fa053ecfce6c7b078ba5c50fc1c177b054eada5 commit 9fa053ecfce6c7b078ba5c50fc1c177b054eada5 Author: Yuri Victorovich AuthorDate: 2021-08-05 07:17:25 +0000 Commit: Yuri Victorovich CommitDate: 2021-08-05 16:51:47 +0000 science/py-pygmo2: Update 2.16.1 -> 2.18.0 Also * fix using wrong python version by patching the CMakeLists.txt * add comment about the test target. Reported by: portscout science/py-pygmo2: Add patch to fix python version --- science/py-pygmo2/Makefile | 6 +++--- science/py-pygmo2/distinfo | 6 +++--- science/py-pygmo2/files/patch-CMakeLists.txt | 13 +++++++++++++ science/py-pygmo2/pkg-plist | 2 +- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/science/py-pygmo2/Makefile b/science/py-pygmo2/Makefile index 16553740fe0f..6ada1b4427e0 100644 --- a/science/py-pygmo2/Makefile +++ b/science/py-pygmo2/Makefile @@ -1,7 +1,6 @@ PORTNAME= pygmo2 DISTVERSIONPREFIX= v -DISTVERSION= 2.16.1 -PORTREVISION= 2 +DISTVERSION= 2.18.0 CATEGORIES= science graphics PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -28,10 +27,11 @@ USE_GITHUB= yes GH_ACCOUNT= esa CMAKE_ON= PYGMO_ENABLE_IPO +CMAKE_ARGS= -DFREEBSD_PYTHON_DISTVERSION=${PYTHON_DISTVERSION} CXXFLAGS+= -I${LOCALBASE}/include/coin # see https://github.com/esa/pygmo2/issues/58 -do-test: # requires to have the package installed; test taken from azure-pipelines.yml +do-test: install # tests require sysctl sudo sysctl kern.threads.max_threads_per_proc variable to be at least 15000 ; test taken from azure-pipelines.yml @${PYTHON_CMD} -c "import pygmo; pygmo.test.run_test_suite(1); pygmo.mp_island.shutdown_pool(); pygmo.mp_bfe.shutdown_pool()" .include diff --git a/science/py-pygmo2/distinfo b/science/py-pygmo2/distinfo index c309be735252..fcb71603b8fd 100644 --- a/science/py-pygmo2/distinfo +++ b/science/py-pygmo2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1608698367 -SHA256 (esa-pygmo2-v2.16.1_GH0.tar.gz) = 54d4fa99e4bff539fca67dfcdc909499fd3f1a3186f7c7fc8200f19512954166 -SIZE (esa-pygmo2-v2.16.1_GH0.tar.gz) = 3027274 +TIMESTAMP = 1628134231 +SHA256 (esa-pygmo2-v2.18.0_GH0.tar.gz) = 9f081cc973297894af09f713f889870ac452bfb32b471f9f7ba08a5e0bb9a125 +SIZE (esa-pygmo2-v2.18.0_GH0.tar.gz) = 3021797 diff --git a/science/py-pygmo2/files/patch-CMakeLists.txt b/science/py-pygmo2/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..b3cf3308cc40 --- /dev/null +++ b/science/py-pygmo2/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +- Fix the python version to one used by the port. + +--- CMakeLists.txt.orig 2021-08-05 03:52:20 UTC ++++ CMakeLists.txt +@@ -137,7 +137,7 @@ if(${pagmo_VERSION} VERSION_LESS ${_PYGMO_MIN_PAGMO_VE + endif() + + # python. +-find_package(Python3 REQUIRED COMPONENTS Interpreter Development) ++find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED COMPONENTS Interpreter Development) + message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}") + message(STATUS "Python3 installation directory: ${Python3_SITEARCH}") + set(PYGMO_INSTALL_PATH "" CACHE STRING "pygmo module installation path") diff --git a/science/py-pygmo2/pkg-plist b/science/py-pygmo2/pkg-plist index c3401f636ce4..c4cc5ac853af 100644 --- a/science/py-pygmo2/pkg-plist +++ b/science/py-pygmo2/pkg-plist @@ -21,6 +21,6 @@ %%PYTHON_SITELIBDIR%%/pygmo/_s_policy_test.py %%PYTHON_SITELIBDIR%%/pygmo/_topology_test.py %%PYTHON_SITELIBDIR%%/pygmo/_version.py -%%PYTHON_SITELIBDIR%%/pygmo/core.so +%%PYTHON_SITELIBDIR%%/pygmo/core%%PYTHON_EXT_SUFFIX%%.so %%PYTHON_SITELIBDIR%%/pygmo/plotting/__init__.py %%PYTHON_SITELIBDIR%%/pygmo/test.py