Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2019 11:04:37 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489768 - head/science/agrum
Message-ID:  <201901091104.x09B4bxx065770@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Jan  9 11:04:37 2019
New Revision: 489768
URL: https://svnweb.freebsd.org/changeset/ports/489768

Log:
  science/agrum: Fix build for python 3.x
  
  PR:		234780
  Reported by:	antoine

Modified:
  head/science/agrum/Makefile
  head/science/agrum/pkg-plist

Modified: head/science/agrum/Makefile
==============================================================================
--- head/science/agrum/Makefile	Wed Jan  9 11:03:30 2019	(r489767)
+++ head/science/agrum/Makefile	Wed Jan  9 11:04:37 2019	(r489768)
@@ -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}

Modified: head/science/agrum/pkg-plist
==============================================================================
--- head/science/agrum/pkg-plist	Wed Jan  9 11:03:30 2019	(r489767)
+++ head/science/agrum/pkg-plist	Wed Jan  9 11:04:37 2019	(r489768)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901091104.x09B4bxx065770>