From owner-dev-commits-ports-all@freebsd.org Fri Jul 23 05:25:10 2021 Return-Path: Delivered-To: dev-commits-ports-all@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 9BA5C66CB1C; Fri, 23 Jul 2021 05:25:10 +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 4GWHny3nL9z4VDq; Fri, 23 Jul 2021 05:25:10 +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 5FD441F82C; Fri, 23 Jul 2021 05:25:10 +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 16N5PA8D067790; Fri, 23 Jul 2021 05:25:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16N5PAG8067789; Fri, 23 Jul 2021 05:25:10 GMT (envelope-from git) Date: Fri, 23 Jul 2021 05:25:10 GMT Message-Id: <202107230525.16N5PAG8067789@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: 4f49abdc507b - main - math/adol-c: Add PYTHON option that enables puthon binding. 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: 4f49abdc507b2ff8ca579914261f53b828f4f6a4 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2021 05:25:10 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f49abdc507b2ff8ca579914261f53b828f4f6a4 commit 4f49abdc507b2ff8ca579914261f53b828f4f6a4 Author: Yuri Victorovich AuthorDate: 2021-07-23 05:23:08 +0000 Commit: Yuri Victorovich CommitDate: 2021-07-23 05:23:08 +0000 math/adol-c: Add PYTHON option that enables puthon binding. It properly disables python when off, fixing issues with python detection. PR: 257344 Reported by: alt2600@icloud.com --- math/adol-c/Makefile | 17 ++++++++++++----- math/adol-c/pkg-descr | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/math/adol-c/Makefile b/math/adol-c/Makefile index 9253500bb230..d5c1ae42016a 100644 --- a/math/adol-c/Makefile +++ b/math/adol-c/Makefile @@ -1,6 +1,6 @@ PORTNAME= adol-c DISTVERSION= 2.7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= https://www.coin-or.org/download/source/${PORTNAME:tu}/ DISTNAME= ${PORTNAME:tu}-${DISTVERSION} @@ -14,24 +14,31 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libboost_system.so:devel/boost-libs -USES= compiler:c++11-lang gmake libtool python:3.7+,build tar:tgz +USES= compiler:c++11-lang gmake libtool tar:tgz USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_SHELL= ${LOCALBASE}/bin/bash -CONFIGURE_ENV= PYTHON=${PYTHON_CMD} - INSTALL_TARGET= install-strip -OPTIONS_DEFINE= SPARSE # also uses AMPI, a seemingly obscure MPI implementation +BINARY_ALIAS= swig=false + +OPTIONS_DEFINE= PYTHON SPARSE # also uses AMPI, a seemingly obscure MPI implementation OPTIONS_DEFAULT= SPARSE OPTIONS_SUB= yes +PYTHON_USES= python:build +PYTHON_CONFIGURE_ENV= PYTHON=${PYTHON_CMD} +PYTHON_BROKEN= https://github.com/coin-or/ADOL-C/issues/42 + SPARSE_DESC= Build sparse drivers SPARSE_CONFIGURE_ENABLE= sparse post-patch: # broken with ColPack: https://github.com/coin-or/ADOL-C/issues/40 @${REINPLACE_CMD} -e 's|with_colpack|with_colpackx| ; s|-lColPack||' ${WRKSRC}/configure +post-patch-PYTHON-off: + @${REINPLACE_CMD} -e 's|test x$$python_found = xyes|false \&\& &|' ${WRKSRC}/configure + .include diff --git a/math/adol-c/pkg-descr b/math/adol-c/pkg-descr index 994376825b57..361823426fb2 100644 --- a/math/adol-c/pkg-descr +++ b/math/adol-c/pkg-descr @@ -8,4 +8,4 @@ The numerical values of derivative vectors are obtained free of truncation errors at a small multiple of the run time and randomly accessed memory of the given function evaluation program. -WWW: https://projects.coin-or.org/ADOL-C +WWW: https://github.com/coin-or/ADOL-C