diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2019-01-09 11:04:37 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2019-01-09 11:04:37 +0000 |
commit | 2324f72911b77312c5b66d7e7087c65d00565530 (patch) | |
tree | e54a08faa1b1173a8bc338604163f4916accc8e2 /science | |
parent | - Enable mpris2 support in xfce4-parole (diff) |
science/agrum: Fix build for python 3.x
PR: 234780
Reported by: antoine
Notes
Notes:
svn path=/head/; revision=489768
Diffstat (limited to 'science')
-rw-r--r-- | science/agrum/Makefile | 3 | ||||
-rw-r--r-- | science/agrum/pkg-plist | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/science/agrum/Makefile b/science/agrum/Makefile index 119143e39901..cf67bec280a4 100644 --- a/science/agrum/Makefile +++ b/science/agrum/Makefile @@ -33,6 +33,9 @@ OPENMP_LIB_DEPENDS= libomp.so:devel/openmp PYTHON_CMAKE_BOOL= BUILD_PYTHON PYTHON_USES= python +PYTHON_VARS= PYTHON_VER_MAJ=${PYTHON_VER:R} + +PLIST_SUB+= PYTHON_VER_MAJ=${PYTHON_VER_MAJ} # use clang from ports because cmake can't find OpenMP with base clang, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} diff --git a/science/agrum/pkg-plist b/science/agrum/pkg-plist index c5dcd41fc297..b1508f1af29a 100644 --- a/science/agrum/pkg-plist +++ b/science/agrum/pkg-plist @@ -838,7 +838,7 @@ 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-py%%PYTHON_VER_MAJ%%.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 |