annotate lang/pypy2/Makefile @ 194:24bb1d616158

Upgrade to PyPy v7.3.15
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 19 Jan 2024 01:14:49 +0100
parents a1fb60596d43
children 8b567a874360
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
1 # Created by: Franz Glasner <fzglas.hg@dom66.de>
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
2 # based on the port created by: David Naylor <naylor.b.david@gmail.com>
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
4 PORTNAME= pypy2
194
24bb1d616158 Upgrade to PyPy v7.3.15
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
5 DISTVERSION= 7.3.15
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6 CATEGORIES= lang python
10
c269f1e91387 Update to build PyPy on FreeBSD 13.1 with dist versilon 7.3.9
Franz Glasner <fzglas.hg@dom66.de>
parents: 2
diff changeset
7 MASTER_SITES= https://downloads.python.org/pypy/
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
8 DISTNAME= pypy${PYPY_PYTHON_IMPL_VER}-v${DISTVERSION}-src
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9
132
fd184f6f2453 FIX: Typo in MAINTAINER address
Franz Glasner <fzglas.hg@dom66.de>
parents: 131
diff changeset
10 MAINTAINER= fzglas.hg@dom66.de
191
a1fb60596d43 Also document that pypy2 implements Python 2.7
Franz Glasner <hg@dom66.de>
parents: 132
diff changeset
11 COMMENT= Fast, compliant implementation of the Python language (Python 2.7)
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
12 WWW= https://www.pypy.org
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14 LICENSE= MIT PSFL
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15 LICENSE_COMB= multi
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16 LICENSE_FILE_MIT= ${WRKSRC}/LICENSE
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
18 BROKEN_armv6= fails to package: pypy_objspace_std.c: Crash in JIT!
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19 BROKEN_armv7= fails to package: pypy_objspace_std.c: Crash in JIT!
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 BROKEN_powerpc64= fails to compile: platcheck_109.c: fatal error: linux/auxvec.h: No such file or directory
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21 ONLY_FOR_ARCHS?= amd64 armv6 armv7 i386 powerpc64 powerpc64le
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
22 ONLY_FOR_ARCHS_REASON?= PyPy JIT only supported on these architectures
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
24 LIB_DEPENDS= libexpat.so:textproc/expat2 \
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25 libffi.so:devel/libffi
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26 TEST_DEPENDS= ${LOCALBASE}/${PYPY_DIR}/lib_pypy/_gdbm_cffi.${PYPY_CFFI_VER}.so:databases/pypy-gdbm \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27 ${LOCALBASE}/${PYPY_DIR}/lib_pypy/_sqlite3_cffi.${PYPY_CFFI_VER}.so:databases/pypy-sqlite3 \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
28 ${LOCALBASE}/${PYPY_DIR}/lib_pypy/_tkinter/tklib_cffi.${PYPY_CFFI_VER}.so:x11-toolkits/pypy-tkinter
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
29
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
30 USES= compiler:c11 gettext-runtime gmake shebangfix ssl tar:bzip2
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
31 USE_LDCONFIG= ${PREFIX}/${PYPY_DIR}/bin
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
32
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
33 OPTIONS_DEFINE= BYTECOMPILE
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
34 OPTIONS_DEFAULT= BYTECOMPILE PYTHON
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
35 OPTIONS_SINGLE= TRANS
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
36 OPTIONS_SINGLE_TRANS= PYTHON PYPY PYPY_MINMEM
127
9f22a8fb45b6 Style: Order of OPTIONS configure options
Franz Glasner <fzglas.hg@dom66.de>
parents: 126
diff changeset
37 OPTIONS_SUB= yes
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
38
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
39 BYTECOMPILE_DESC= Enable to build byte-compiled Python files
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
40 TRANS_DESC= Translation method
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
41 PYTHON_DESC= Use Python-2.7 to translate (slowest)
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
42 PYPY_DESC= Use PyPy to translate (fastest, highest memory usage)
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
43 PYPY_MINMEM_DESC= Use PyPy to translate (lowest memory usage)
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
44
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
45 PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:devel/py-pycparser@${PY_FLAVOR}
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
46 PYTHON_USES= python:2.7,build
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
47 PYPY_BUILD_DEPENDS= pypy2:lang/pypy2
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
48 PYPY_VARS= PYTHON_CMD=${LOCALBASE}/bin/pypy
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
49 PYPY_MINMEM_BUILD_DEPENDS= pypy2:lang/pypy2
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
50 PYPY_MINMEM_VARS= PYTHON_CMD="${SETENV} PYPY_GC_MAX_DELTA=200MB ${LOCALBASE}/bin/pypy --jit loop_longevity=300"
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
51
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
52 PYPY_TAG= pypy
131
27cfd860729d FIX: Support for DISTVERSION with more than one digit in the major version part
Franz Glasner <fzglas.hg@dom66.de>
parents: 127
diff changeset
53 PYPY_DIR= ${PYPY_TAG}-${DISTVERSION:C|([0-9]+)\.([0-9]+).*|\1.\2|}
59
e25be229d3b6 Order of LOCALBASE
Franz Glasner <hg@dom66.de>
parents: 58
diff changeset
54
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
55 PYPY_PYTHON_IMPL_VER= 2.7
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
56 PYPY_PYTHON_IMPL_VER_MAJOR= ${PYPY_PYTHON_IMPL_VER:C|([0-9]+)\.[0-9]+|\1|}
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
57
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
58 PYPY_CFFI_VER= pypy-73
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
59 PYPY_LDLIBRARY= libpypy-c.so
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
60 PYPY_EXECUTABLE= pypy-c
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
61
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
62 PYPY_ARGS=
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
63
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
64 PLIST_SUB+= PYPY_DIR=${PYPY_DIR} \
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
65 PYPY_CFFI_VER=${PYPY_CFFI_VER} \
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
66 PYPY_LDLIBRARY=${PYPY_LDLIBRARY}
59
e25be229d3b6 Order of LOCALBASE
Franz Glasner <hg@dom66.de>
parents: 58
diff changeset
67
43
af3a2629a882 Allow to build PyPy3.9: the target name in the generated Makefile has changed
Franz Glasner <fzglas.hg@dom66.de>
parents: 42
diff changeset
68 ALL_TARGET= ${PYPY_EXECUTABLE}
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
69 BUILD_WRKSRC= ${WRKDIR}/build/usession-${PYPY_TAG}-0/testing_1
45
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
70 MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} LDSHARED="${CC} -shared"
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
71 PACKAGE_ARGS= --without-gdbm --without-sqlite3 --without-_tkinter
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
72 LLD_UNSAFE= yes
63
87850df999db Make compilation for Python 3.10 work: Refactor SHEBANG_FILES
Franz Glasner <fzglas.hg@dom66.de>
parents: 60
diff changeset
73
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
74 # shebang configuration
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
75 python_CMD= ${LOCALBASE}/bin/pypy${PYPY_PYTHON_IMPL_VER}
63
87850df999db Make compilation for Python 3.10 work: Refactor SHEBANG_FILES
Franz Glasner <fzglas.hg@dom66.de>
parents: 60
diff changeset
76 SHEBANG_FILES= lib-python/2.7/plat-mac/appletrunner.py \
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
77 lib-python/2.7/plat-mac/bundlebuilder.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
78 lib-python/2.7/keyword.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
79 lib-python/2.7/test/regrtest.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
80 lib-python/2.7/test/pystone.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
81 lib-python/2.7/test/curses_tests.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
82 lib-python/2.7/test/re_tests.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
83 lib-python/2.7/test/crashers/recursive_call.py \
10
c269f1e91387 Update to build PyPy on FreeBSD 13.1 with dist versilon 7.3.9
Franz Glasner <fzglas.hg@dom66.de>
parents: 2
diff changeset
84 lib-python/2.7/test/bisect_cmd.py \
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
85 lib-python/2.7/UserString.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
86 lib-python/2.7/pdb.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
87 lib-python/2.7/mimify.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
88 lib-python/2.7/pydoc.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
89 lib-python/2.7/uu.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
90 lib-python/2.7/trace.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
91 lib-python/2.7/platform.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
92 lib-python/2.7/profile.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
93 lib-python/2.7/tabnanny.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
94 lib-python/2.7/lib2to3/tests/pytree_idempotency.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
95 lib-python/2.7/lib2to3/tests/data/false_encoding.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
96 lib-python/2.7/lib2to3/tests/data/different_encoding.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
97 lib-python/2.7/lib2to3/pgen2/token.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
98 lib-python/2.7/encodings/rot_13.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
99 lib-python/2.7/base64.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
100 lib-python/2.7/webbrowser.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
101 lib-python/2.7/idlelib/PyShell.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
102 lib-python/2.7/cgi.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
103 lib-python/2.7/symbol.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
104 lib-python/2.7/cProfile.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
105 lib-python/2.7/smtpd.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
106 lib-python/2.7/quopri.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
107 lib-python/2.7/timeit.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
108 lib-python/2.7/smtplib.py \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
109 lib_pypy/_cffi_ssl/tools/make_ssl_data.py
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
110
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
111 #.include "bsd.pypy.mk"
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
112 .include <bsd.port.pre.mk>
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
113
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
114 .if ${OPSYS} == FreeBSD && ${ARCH} != i386 && ${ARCH} != amd64
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
115 PYPY_ARGS= --withoutmod-_vmprof
63
87850df999db Make compilation for Python 3.10 work: Refactor SHEBANG_FILES
Franz Glasner <fzglas.hg@dom66.de>
parents: 60
diff changeset
116 .else
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
117 LIB_DEPENDS+= libunwind.so:devel/libunwind
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
118 .endif
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
119
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
120 pre-build:
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
121 if [ ! -f ${BUILD_WRKSRC}/Makefile ]; then \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
122 ${RM} -r ${WRKDIR}/build; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
123 ${MKDIR} ${WRKDIR}/build; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
124 (cd ${WRKSRC}/pypy/goal; \
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
125 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYPY_USESSION_BASENAME=${PYPY_TAG} \
56
585cf5a218ad Allow to build PyPy-v7.3.14 on FreeBSD 13.2:
Franz Glasner <fzglas.hg@dom66.de>
parents: 49
diff changeset
126 ${PYTHON_CMD} ../../rpython/bin/rpython --source --opt=jit targetpypystandalone.py ${PYPY_ARGS}); \
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
127 fi
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
128
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
129 post-build:
43
af3a2629a882 Allow to build PyPy3.9: the target name in the generated Makefile has changed
Franz Glasner <fzglas.hg@dom66.de>
parents: 42
diff changeset
130 ${CP} ${BUILD_WRKSRC}/${PYPY_EXECUTABLE} ${BUILD_WRKSRC}/${PYPY_LDLIBRARY} ${WRKSRC}/pypy/goal/
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
131
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
132 do-install:
45
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
133 (cd ${WRKSRC}; \
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
134 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build \
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
135 ${PYTHON_CMD} ${WRKSRC}/pypy/tool/release/package.py --builddir ${WRKDIR}/build --archive-name ${PYPY_DIR} \
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
136 ${PACKAGE_ARGS})
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
137 ${EXTRACT_CMD} -C ${STAGEDIR}${PREFIX} -xf ${WRKDIR}/build/${PYPY_DIR}.tar.bz2
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
138 ${LN} -fs ../${PYPY_DIR}/bin/${PYPY_TAG} ${STAGEDIR}${PREFIX}/bin/${PYPY_TAG}
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
139 ${LN} -fs ../${PYPY_DIR}/bin/${PYPY_TAG} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
140 ${LN} -fs ../${PYPY_DIR}/bin/${PYPY_TAG} ${STAGEDIR}${PREFIX}/bin/${PYPY_TAG}${PYPY_PYTHON_IMPL_VER}
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
141 ${FIND} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/lib_pypy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
126
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
142 .if ${PORT_OPTIONS:MBYTECOMPILE}
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
143 @${ECHO} Byte-compile the Python standard library for optimization levels 0and 1
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
144 . for subdir in lib-python lib_pypy
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
145 (cd ${STAGEDIR}${PREFIX}/${PYPY_DIR} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/pypy/goal \
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
146 ${WRKSRC}/pypy/goal/${PYPY_EXECUTABLE} -B -E -s -m compileall -q -x '/tests?/|/tools/make_ssl_data.py' -f -d "${PREFIX}/${PYPY_DIR}/${subdir}" ${subdir})
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
147 (cd ${STAGEDIR}${PREFIX}/${PYPY_DIR} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/pypy/goal \
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
148 ${WRKSRC}/pypy/goal/${PYPY_EXECUTABLE} -B -E -s -O -m compileall -q -x '/tests?/|/tools/make_ssl_data.py' -f -d "${PREFIX}/${PYPY_DIR}/${subdir}" ${subdir})
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
149 . endfor
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
150 .else
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
151 @${ECHO} Distribution of byte-compiled standard library files is deactivated
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
152 .endif
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
153
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
154 do-test:
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
155 # See https://bitbucket.org/pypy/buildbot/src/default/bot2/pypybuildbot/builds.py?at=default#builds.py-386
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
156 # add_translated_tests()
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
157 (cd ${WRKSRC}; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
158 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYTHONPATH=${WRKSRC} \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
159 ${WRKSRC}/pypy/goal/pypy-c testrunner/runner.py --root pypy --logfile=pytest-A.log \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
160 --parallel-runs ${MAKE_JOBS_NUMBER} \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
161 --config pypy/pytest-A.cfg --config pypy/pytest-A.py)
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
162 .for dir in lib-python pypy/module/pypyjit/test
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
163 (cd ${WRKSRC}; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
164 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYTHONPATH=${WRKSRC} \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
165 ${WRKSRC}/pypy/goal/pypy-c pypy/test_all.py --basetemp ${WRKDIR}/build --pypy pypy/goal/pypy-c \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
166 ${dir} )
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
167 .endfor
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
168 (cd ${WRKSRC}/lib-python/2.7/test; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
169 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYTHONPATH=${WRKSRC} \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
170 ${WRKSRC}/pypy/goal/pypy-c regrtest.py -vvu all)
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
171
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
172 pkg-plist: stage
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
173 ${TAR} -tf ${WRKDIR}/build/${PYPY_DIR}.tar.bz2 > ${WRKDIR}/.plist-files-gen
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
174 ${REINPLACE_CMD} -e 's|^${PYPY_DIR}|%%PYPY_DIR%%|g' \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
175 -e 's|${PYPY_CFFI_VER}|%%PYPY_CFFI_VER%%|g' \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
176 -e 's/\(.*\/__pycache__\)\/$$/@dir \1/g' \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
177 -e '/\/$$/d' \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
178 ${WRKDIR}/.plist-files-gen
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
179 ${ECHO} bin/${PYPY_TAG} > ${WRKDIR}/pkg-plist
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
180 ${SORT} ${WRKDIR}/.plist-files-gen | ${GREP} -v '\.orig' >> ${WRKDIR}/pkg-plist
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
181 ${CP} ${WRKDIR}/pkg-plist ${.CURDIR}/pkg-plist
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
182
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
183 .include <bsd.port.post.mk>