diff options
author | yuri <yuri@FreeBSD.org> | 2018-12-20 14:31:04 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-12-20 14:31:04 +0800 |
commit | 70a615b99abb7e09de9dbf9ac440ecccf872021a (patch) | |
tree | 7b5a6cf9a3e46b2fe26bf833c0a141e6424cce9b /science | |
parent | 47bb8c9f8b9f139a75117185c8afaa1fe18d2e5b (diff) | |
download | freebsd-ports-gnome-70a615b99abb7e09de9dbf9ac440ecccf872021a.tar.gz freebsd-ports-gnome-70a615b99abb7e09de9dbf9ac440ecccf872021a.tar.zst freebsd-ports-gnome-70a615b99abb7e09de9dbf9ac440ecccf872021a.zip |
science/agrum: Add Python binding; Add ODBC option
The Python binding is bundled for now because that's how
the project is set up.
Diffstat (limited to 'science')
-rw-r--r-- | science/agrum/Makefile | 16 | ||||
-rw-r--r-- | science/agrum/pkg-plist | 22 |
2 files changed, 37 insertions, 1 deletions
diff --git a/science/agrum/Makefile b/science/agrum/Makefile index 1384e0518082..4406331832a5 100644 --- a/science/agrum/Makefile +++ b/science/agrum/Makefile @@ -2,6 +2,7 @@ PORTNAME= agrum DISTVERSION= 0.13.4 +PORTREVISION= 1 CATEGORIES= science math MAINTAINER= yuri@FreeBSD.org @@ -18,6 +19,19 @@ GL_PROJECT= aGrUM GL_COMMIT= 7fb897064bd26e2844164bad191c97173c71262e USE_LDCONFIG= yes -CMAKE_OFF= BUILD_PYTHON USE_SWIG +CMAKE_OFF= USE_SWIG + +OPTIONS_DEFINE= ODBC PYTHON +OPTIONS_DEFAULT= PYTHON +OPTIONS_SUB= yes + +ODBC_USES= localbase:ldflags +ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC + +PYTHON_CMAKE_BOOL= BUILD_PYTHON +PYTHON_USES= python + +post-patch-ODBC-off: # https://gitlab.com/agrumery/aGrUM/issues/22 + @${REINPLACE_CMD} 's|include(Nanodbc.agrum)|#&|' ${WRKSRC}/src/CMakeLists.txt .include <bsd.port.mk> diff --git a/science/agrum/pkg-plist b/science/agrum/pkg-plist index ffbfbae21e03..c5dcd41fc297 100644 --- a/science/agrum/pkg-plist +++ b/science/agrum/pkg-plist @@ -838,4 +838,26 @@ lib/cmake/aGrUM/agrum-targets.cmake lib/libagrum.so lib/libagrum.so.0 lib/libagrum.so.0.13.4.9 +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum-0.13.4.9-py2.egg-info +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum-0.13.4.9.dist-info/METADATA +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum-0.13.4.9.dist-info/WHEEL +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/__init__.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/_pyAgrum.so +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/deprecated.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/functions.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/__init__.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/_utils/__init__.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/_utils/oslike.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/_utils/progress_bar.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/_utils/pyAgrum_header.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/bn2csv.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/bn2graph.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/bn2roc.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/bn2scores.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/bn_vs_bn.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/dynamicBN.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/ipython.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/notebook.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/lib/pretty_print.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/pyAgrum/pyAgrum.py libdata/pkgconfig/agrum.pc |