pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python27 python27: clean-up SUBST to match other ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/faba2c9da5d3
branches: trunk
changeset: 330455:faba2c9da5d3
user: adam <adam%pkgsrc.org@localhost>
date: Sun Mar 03 10:44:41 2019 +0000
description:
python27: clean-up SUBST to match other Python versions
diffstat:
lang/python27/Makefile | 23 ++++++++---------------
lang/python27/options.mk | 12 ++++++------
2 files changed, 14 insertions(+), 21 deletions(-)
diffs (66 lines):
diff -r 8a8c47a470a4 -r faba2c9da5d3 lang/python27/Makefile
--- a/lang/python27/Makefile Sun Mar 03 10:41:28 2019 +0000
+++ b/lang/python27/Makefile Sun Mar 03 10:44:41 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2018/09/28 11:01:37 adam Exp $
+# $NetBSD: Makefile,v 1.76 2019/03/03 10:44:41 adam Exp $
.include "dist.mk"
@@ -171,23 +171,16 @@
SUBST_FILES.libffi= setup.py
SUBST_SED.libffi= -e 's,/usr/include/ffi,${BUILDLINK_PREFIX.libffi}/include,'
+# XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib
+# Test: python -c 'from ctypes.util import find_library; print(find_library("ffi"));'
SUBST_CLASSES+= findlib
-SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin.
+SUBST_MESSAGE.findlib= Fixing find_library().
SUBST_STAGE.findlib= pre-configure
-SUBST_FILES.findlib= Lib/distutils/unixccompiler.py
+SUBST_FILES.findlib= Lib/ctypes/macholib/dyld.py
+SUBST_FILES.findlib+= Lib/ctypes/util.py
+SUBST_FILES.findlib+= Lib/distutils/unixccompiler.py
SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},'
-
-# XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib
-# Testing:
-# >>> from ctypes.util import find_library
-# >>> find_library("m")
-# 'libm.so.0'
-
-SUBST_CLASSES+= pfindlib
-SUBST_MESSAGE.pfindlib= Fixing find_library() on POSIX-like (excluding Darwin) systems.
-SUBST_STAGE.pfindlib= pre-configure
-SUBST_FILES.pfindlib= Lib/ctypes/util.py
-SUBST_SED.pfindlib= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \1!'
+SUBST_SED.findlib+= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \1!'
.include "options.mk"
diff -r 8a8c47a470a4 -r faba2c9da5d3 lang/python27/options.mk
--- a/lang/python27/options.mk Sun Mar 03 10:41:28 2019 +0000
+++ b/lang/python27/options.mk Sun Mar 03 10:44:41 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2016/07/26 16:44:28 kamil Exp $
+# $NetBSD: options.mk,v 1.2 2019/03/03 10:44:41 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.python27
PKG_SUPPORTED_OPTIONS+= x11
@@ -10,11 +10,11 @@
.if !empty(PKG_OPTIONS:Mx11)
# Support for native X11 paths as an option
# This code is no-op for modular X11, however for simplicity don't make it conditional.
-SUBST_CLASSES+= x11findlib
-SUBST_MESSAGE.x11findlib= Fixing find_library() for native X11.
-SUBST_STAGE.x11findlib= pre-configure
-SUBST_FILES.x11findlib= Lib/ctypes/util.py
-SUBST_SED.x11findlib= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib \1!'
+SUBST_CLASSES+= xfindlib
+SUBST_MESSAGE.xfindlib= Fixing find_library() for native X11.
+SUBST_STAGE.xfindlib= pre-configure
+SUBST_FILES.xfindlib= Lib/ctypes/util.py
+SUBST_SED.xfindlib= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib \1!'
# Required to get definition of X11BASE and retain X11 rpath paths for linker
# We need to pass rpath to _ctypes.so to get functional dlopen(3) for X11 libs
Home |
Main Index |
Thread Index |
Old Index