| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.2 2022/11/02 11:36:23 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.3 2023/01/14 17:22:25 wiz Exp $ |
2 | | | 2 | |
3 | .include "dist.mk" | | 3 | .include "dist.mk" |
4 | | | 4 | |
5 | PKGNAME= python311-${PY_DISTVERSION} | | 5 | PKGNAME= python311-${PY_DISTVERSION} |
6 | CATEGORIES= lang python | | 6 | CATEGORIES= lang python |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.python.org/ | | 9 | HOMEPAGE= https://www.python.org/ |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | | 10 | COMMENT= Interpreted, interactive, object-oriented programming language |
11 | LICENSE= python-software-foundation | | 11 | LICENSE= python-software-foundation |
12 | | | 12 | |
13 | CONFLICTS+= python-[0-9]* | | 13 | CONFLICTS+= python-[0-9]* |
14 | | | 14 | |
| @@ -122,27 +122,26 @@ PRINT_PLIST_AWK+= { gsub(/python${PY_VER | | | @@ -122,27 +122,26 @@ PRINT_PLIST_AWK+= { gsub(/python${PY_VER |
122 | "python$${PY_VER_SUFFIX}") } | | 122 | "python$${PY_VER_SUFFIX}") } |
123 | | | 123 | |
124 | TEST_TARGET= test | | 124 | TEST_TARGET= test |
125 | INSTALL_TARGET= altinstall | | 125 | INSTALL_TARGET= altinstall |
126 | | | 126 | |
127 | REPLACE_INTERPRETER+= python | | 127 | REPLACE_INTERPRETER+= python |
128 | REPLACE.python.old= .*python[^ ]* | | 128 | REPLACE.python.old= .*python[^ ]* |
129 | REPLACE.python.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | | 129 | REPLACE.python.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} |
130 | REPLACE_FILES.python+= Lib/base64.py | | 130 | REPLACE_FILES.python+= Lib/base64.py |
131 | REPLACE_FILES.python+= Lib/cProfile.py | | 131 | REPLACE_FILES.python+= Lib/cProfile.py |
132 | REPLACE_FILES.python+= Lib/cgi.py | | 132 | REPLACE_FILES.python+= Lib/cgi.py |
133 | REPLACE_FILES.python+= Lib/encodings/rot_13.py | | 133 | REPLACE_FILES.python+= Lib/encodings/rot_13.py |
134 | REPLACE_FILES.python+= Lib/idlelib/pyshell.py | | 134 | REPLACE_FILES.python+= Lib/idlelib/pyshell.py |
135 | REPLACE_FILES.python+= Lib/keyword.py | | | |
136 | REPLACE_FILES.python+= Lib/lib2to3/pgen2/token.py | | 135 | REPLACE_FILES.python+= Lib/lib2to3/pgen2/token.py |
137 | REPLACE_FILES.python+= Lib/lib2to3/tests/data/different_encoding.py | | 136 | REPLACE_FILES.python+= Lib/lib2to3/tests/data/different_encoding.py |
138 | REPLACE_FILES.python+= Lib/lib2to3/tests/data/false_encoding.py | | 137 | REPLACE_FILES.python+= Lib/lib2to3/tests/data/false_encoding.py |
139 | REPLACE_FILES.python+= Lib/lib2to3/tests/pytree_idempotency.py | | 138 | REPLACE_FILES.python+= Lib/lib2to3/tests/pytree_idempotency.py |
140 | REPLACE_FILES.python+= Lib/pdb.py | | 139 | REPLACE_FILES.python+= Lib/pdb.py |
141 | REPLACE_FILES.python+= Lib/platform.py | | 140 | REPLACE_FILES.python+= Lib/platform.py |
142 | REPLACE_FILES.python+= Lib/profile.py | | 141 | REPLACE_FILES.python+= Lib/profile.py |
143 | REPLACE_FILES.python+= Lib/pydoc.py | | 142 | REPLACE_FILES.python+= Lib/pydoc.py |
144 | REPLACE_FILES.python+= Lib/quopri.py | | 143 | REPLACE_FILES.python+= Lib/quopri.py |
145 | REPLACE_FILES.python+= Lib/smtpd.py | | 144 | REPLACE_FILES.python+= Lib/smtpd.py |
146 | REPLACE_FILES.python+= Lib/smtplib.py | | 145 | REPLACE_FILES.python+= Lib/smtplib.py |
147 | REPLACE_FILES.python+= Lib/tabnanny.py | | 146 | REPLACE_FILES.python+= Lib/tabnanny.py |
148 | REPLACE_FILES.python+= Lib/tarfile.py | | 147 | REPLACE_FILES.python+= Lib/tarfile.py |
| @@ -160,28 +159,26 @@ REPLACE_FILES.python+= Lib/turtledemo/fo | | | @@ -160,28 +159,26 @@ REPLACE_FILES.python+= Lib/turtledemo/fo |
160 | REPLACE_FILES.python+= Lib/turtledemo/fractalcurves.py | | 159 | REPLACE_FILES.python+= Lib/turtledemo/fractalcurves.py |
161 | REPLACE_FILES.python+= Lib/turtledemo/lindenmayer.py | | 160 | REPLACE_FILES.python+= Lib/turtledemo/lindenmayer.py |
162 | REPLACE_FILES.python+= Lib/turtledemo/minimal_hanoi.py | | 161 | REPLACE_FILES.python+= Lib/turtledemo/minimal_hanoi.py |
163 | REPLACE_FILES.python+= Lib/turtledemo/paint.py | | 162 | REPLACE_FILES.python+= Lib/turtledemo/paint.py |
164 | REPLACE_FILES.python+= Lib/turtledemo/peace.py | | 163 | REPLACE_FILES.python+= Lib/turtledemo/peace.py |
165 | REPLACE_FILES.python+= Lib/turtledemo/penrose.py | | 164 | REPLACE_FILES.python+= Lib/turtledemo/penrose.py |
166 | REPLACE_FILES.python+= Lib/turtledemo/planet_and_moon.py | | 165 | REPLACE_FILES.python+= Lib/turtledemo/planet_and_moon.py |
167 | REPLACE_FILES.python+= Lib/turtledemo/sorting_animate.py | | 166 | REPLACE_FILES.python+= Lib/turtledemo/sorting_animate.py |
168 | REPLACE_FILES.python+= Lib/turtledemo/tree.py | | 167 | REPLACE_FILES.python+= Lib/turtledemo/tree.py |
169 | REPLACE_FILES.python+= Lib/turtledemo/yinyang.py | | 168 | REPLACE_FILES.python+= Lib/turtledemo/yinyang.py |
170 | REPLACE_FILES.python+= Lib/uu.py | | 169 | REPLACE_FILES.python+= Lib/uu.py |
171 | REPLACE_FILES.python+= Lib/webbrowser.py | | 170 | REPLACE_FILES.python+= Lib/webbrowser.py |
172 | | | 171 | |
173 | REPLACE_SH+= Misc/python-config.sh.in | | | |
174 | | | | |
175 | # XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib | | 172 | # XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib |
176 | # Test: python -c 'from ctypes.util import find_library; print(find_library("ffi"));' | | 173 | # Test: python -c 'from ctypes.util import find_library; print(find_library("ffi"));' |
177 | SUBST_CLASSES+= findlib | | 174 | SUBST_CLASSES+= findlib |
178 | SUBST_MESSAGE.findlib= Fixing find_library(). | | 175 | SUBST_MESSAGE.findlib= Fixing find_library(). |
179 | SUBST_STAGE.findlib= pre-configure | | 176 | SUBST_STAGE.findlib= pre-configure |
180 | SUBST_FILES.findlib= Lib/ctypes/macholib/dyld.py | | 177 | SUBST_FILES.findlib= Lib/ctypes/macholib/dyld.py |
181 | SUBST_FILES.findlib+= Lib/ctypes/util.py | | 178 | SUBST_FILES.findlib+= Lib/ctypes/util.py |
182 | SUBST_FILES.findlib+= Lib/distutils/unixccompiler.py | | 179 | SUBST_FILES.findlib+= Lib/distutils/unixccompiler.py |
183 | SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},' | | 180 | SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},' |
184 | SUBST_SED.findlib+= -e "s!\('-Wl,-t'\)!'${COMPILER_RPATH_FLAG}${PREFIX}/lib', '-L${PREFIX}/lib', \1!" | | 181 | SUBST_SED.findlib+= -e "s!\('-Wl,-t'\)!'${COMPILER_RPATH_FLAG}${PREFIX}/lib', '-L${PREFIX}/lib', \1!" |
185 | SUBST_NOOP_OK.findlib= yes | | 182 | SUBST_NOOP_OK.findlib= yes |
186 | | | 183 | |
187 | SUBST_CLASSES+= pkgversion | | 184 | SUBST_CLASSES+= pkgversion |