git: 4f49abdc507b - main - math/adol-c: Add PYTHON option that enables puthon binding.
Yuri Victorovich
yuri at FreeBSD.org
Fri Jul 23 05:25:10 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4f49abdc507b2ff8ca579914261f53b828f4f6a4
commit 4f49abdc507b2ff8ca579914261f53b828f4f6a4
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-07-23 05:23:08 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
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 at 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 <bsd.port.mk>
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
More information about the dev-commits-ports-all
mailing list