science/agrum: Add Python binding; Add ODBC option

The Python binding is bundled for now because that's how
the project is set up.
This commit is contained in:
Yuri Victorovich 2018-12-20 06:31:04 +00:00
parent c6c5703ddf
commit f49eafa198
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487846
2 changed files with 37 additions and 1 deletions

View file

@ -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>

View file

@ -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