pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-hash devel/py-hash: Fix build with versioned ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7123905cda86
branches:  trunk
changeset: 382354:7123905cda86
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Sat Jun 30 19:01:52 2018 +0000

description:
devel/py-hash: Fix build with versioned boost_python lib.

diffstat:

 devel/py-hash/Makefile               |   4 +++-
 devel/py-hash/distinfo               |   4 ++--
 devel/py-hash/patches/patch-setup.py |  14 ++++----------
 3 files changed, 9 insertions(+), 13 deletions(-)

diffs (72 lines):

diff -r d09924b45e2a -r 7123905cda86 devel/py-hash/Makefile
--- a/devel/py-hash/Makefile    Sat Jun 30 12:43:28 2018 +0000
+++ b/devel/py-hash/Makefile    Sat Jun 30 19:01:52 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2017/07/30 22:32:16 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2018/06/30 19:01:52 fhajny Exp $
 
 DISTNAME=      pyfasthash-0.6.2
 PKGNAME=       ${DISTNAME:S/pyfast/${PYPKGPREFIX}-/}
@@ -16,6 +16,8 @@
 
 EGG_NAME=      ${DISTNAME:S/fast//}
 
+MAKE_ENV+=     PYVER=${_PYTHON_VERSION}
+
 .include "../../mk/endian.mk"
 .if ${MACHINE_ENDIAN} == "little"
 CPPFLAGS+=     -DHASH_LITTLE_ENDIAN=1 -DHASH_BIG_ENDIAN=0
diff -r d09924b45e2a -r 7123905cda86 devel/py-hash/distinfo
--- a/devel/py-hash/distinfo    Sat Jun 30 12:43:28 2018 +0000
+++ b/devel/py-hash/distinfo    Sat Jun 30 19:01:52 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.2 2016/06/21 18:00:02 joerg Exp $
+$NetBSD: distinfo,v 1.3 2018/06/30 19:01:52 fhajny Exp $
 
 SHA1 (pyfasthash-0.6.2.tar.gz) = e703ff597cd8db8bfd83f44f0e42e7ac9153c302
 RMD160 (pyfasthash-0.6.2.tar.gz) = 3a6e3f5015c8b2c8d4a7f2bc04ef0ca7f75eabb6
 SHA512 (pyfasthash-0.6.2.tar.gz) = 1820a56f27dd58d1aff4657230b1e5c9b276d64fc1573ad5c14612efd92d584070f12414a9e4fd9929eb61e054a6d65dc6ce1f25457431eaf736c38ecb6fc9be
 Size (pyfasthash-0.6.2.tar.gz) = 197576 bytes
 SHA1 (patch-pyhash.py) = 6e9428959693b72c8efe50ed272b8c1610a682c5
-SHA1 (patch-setup.py) = e993f644120ab43eb4853624fc78de0bb33b8880
+SHA1 (patch-setup.py) = ec7181e8027470634e9b6aa4d6d141ee77ffb74e
 SHA1 (patch-src_fnv_fnv.h) = c942d2bb434ffdc99a6110781bf66e5cb878a889
 SHA1 (patch-src_lookup3_lookup3.c) = 85e5be79ddf7050af7e98858610323accdaba453
diff -r d09924b45e2a -r 7123905cda86 devel/py-hash/patches/patch-setup.py
--- a/devel/py-hash/patches/patch-setup.py      Sat Jun 30 12:43:28 2018 +0000
+++ b/devel/py-hash/patches/patch-setup.py      Sat Jun 30 19:01:52 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-setup.py,v 1.2 2016/06/21 18:00:02 joerg Exp $
+$NetBSD: patch-setup.py,v 1.3 2018/06/30 19:01:52 fhajny Exp $
 
 print is a function in Python 3.
 
@@ -12,25 +12,19 @@
  
  from ez_setup import use_setuptools
  use_setuptools()
-@@ -56,14 +57,22 @@ elif os.name == "posix" and sys.platform
+@@ -56,14 +57,16 @@ elif os.name == "posix" and sys.platform
          '/opt/local/include',
          '/usr/local/include'
      ]
 -    libraries += ["boost_python-mt"]
 -    extra_compile_args += ["-msse4.2"]
-+    if sys.version_info.major == 2:
-+        libraries += ["boost_python-mt"]
-+    else:
-+        libraries += ["boost_python3-mt"]
++    libraries += ["boost_python" + os.environ.get('PYVER') + "-mt"]
 +    if platform.machine() in ("i386", "amd64"):
 +        extra_compile_args += ["-msse4.2"]
  elif os.name == "posix":
 -    libraries += ["boost_python", "rt"]
 -    extra_compile_args += ["-msse4.2"]
-+    if sys.version_info.major == 2:
-+        libraries += ["boost_python", "rt"]
-+    else:
-+        libraries += ["boost_python3", "rt"]
++    libraries += ["boost_python" + os.environ.get('PYVER'), "rt"]
 +    if platform.machine() in ("i386", "amd64"):
 +        extra_compile_args += ["-msse4.2"]
  



Home | Main Index | Thread Index | Old Index