annotate lang/pypy310/Makefile @ 192:412473bb4bea

FIX: COMMENT length
author Franz Glasner <f.glasner@feldmann-mg.com>
date Tue, 16 Jan 2024 13:01:07 +0100
parents 1e06396580ad
children 24bb1d616158
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
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
4 PORTNAME= pypy310
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
5 DISTVERSION= 7.3.14
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
190
1e06396580ad More detailed comments regarding the Python implementations
Franz Glasner <hg@dom66.de>
parents: 136
diff changeset
11 COMMENT= Fast, compliant implementation of the Python language (Python 3.10)
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
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
26 # Without gdbm is not supported on v7.3.9 any more: no extra package needed
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
27 LIB_DEPENDS+= libgdbm.so:databases/gdbm
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
28 # We also need for dbm.ndbm the BerkeleyDB in version 5
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
29 LIB_DEPENDS+= libdb-5.so:databases/db5
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
30 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
31 ${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
32 ${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
33
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
34 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
35 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
36
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
37 OPTIONS_DEFINE= BYTECOMPILE
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
38 OPTIONS_DEFAULT= BYTECOMPILE PYTHON BCUNCHECKEDHASH
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
39 OPTIONS_SINGLE= TRANS BCSTYLE
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
40 OPTIONS_SINGLE_TRANS= PYTHON PYPY PYPY_MINMEM
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
41 OPTIONS_SINGLE_BCSTYLE= BCTIMESTAMP BCCHECKEDHASH BCUNCHECKEDHASH
127
9f22a8fb45b6 Style: Order of OPTIONS configure options
Franz Glasner <fzglas.hg@dom66.de>
parents: 126
diff changeset
42 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
43
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
44 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
45 TRANS_DESC= Translation method
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
46 BCSTYLE_DESC= PEP-552 .pyc-File Invalidation Modes
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
47 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
48 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
49 PYPY_MINMEM_DESC= Use PyPy to translate (lowest memory usage)
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
50 BCTIMESTAMP_DESC= Traditional timestamp based .pyc file invalidataion
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
51 BCCHECKEDHASH_DESC= Use checked hash based .pyc file invalidataion
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
52 BCUNCHECKEDHASH_DESC= Use unchecked hash based .pyc file invalidataion
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
53
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
54 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
55 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
56 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
57 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
58 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
59 PYPY_MINMEM_VARS= PYTHON_CMD="${SETENV} PYPY_GC_MAX_DELTA=200MB ${LOCALBASE}/bin/pypy --jit loop_longevity=300"
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
60 BCTIMESTAMP_VARS= COMPILEALL_INVALIDATIONMODE=timestamp
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
61 BCCHECKEDHASH_VARS= COMPILEALL_INVALIDATIONMODE=checked-hash
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
62 BCUNCHECKEDHASH_VARS= COMPILEALL_INVALIDATIONMODE=unchecked-hash
125
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 PYPY_TAG= pypy
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
65 PYPY_DIR= pypy${PYPY_PYTHON_IMPL_VER_MAJOR}-${DISTVERSION:C|([0-9]+)\.([0-9]+).*|\1.\2|}
59
e25be229d3b6 Order of LOCALBASE
Franz Glasner <hg@dom66.de>
parents: 58
diff changeset
66
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
67 PYPY_PYTHON_IMPL_VER= 3.10
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
68 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
69
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
70 PYPY_CFFI_VER= pypy${PYPY_PYTHON_IMPL_VER:S/.//}-pp${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||}
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
71 PYPY_LDLIBRARY= libpypy${PYPY_PYTHON_IMPL_VER}-c.so
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
72 PYPY_EXECUTABLE= pypy${PYPY_PYTHON_IMPL_VER}-c
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
73 PYPY_BCTAG= .pypy${PYPY_PYTHON_IMPL_VER:S/.//}
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
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
75 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
76
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
77 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
78 PYPY_CFFI_VER=${PYPY_CFFI_VER} \
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
79 PYPY_LDLIBRARY=${PYPY_LDLIBRARY} \
136
0110ab1309c1 FIX: Allow to install pypy39 and pypy310 at the same time: move colliding LICENSE and README files
Franz Glasner <fzglas.hg@dom66.de>
parents: 134
diff changeset
80 PKGNAME=${PKGNAME} \
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
81 PYTHON_IMPL_MINOR=pypy${PYPY_PYTHON_IMPL_VER} \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
82 PY_VERSION_SHORT=${PYPY_PYTHON_IMPL_VER} \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
83 PYPY_BCTAG=${PYPY_BCTAG}
59
e25be229d3b6 Order of LOCALBASE
Franz Glasner <hg@dom66.de>
parents: 58
diff changeset
84
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
85 ALL_TARGET= ${PYPY_EXECUTABLE}
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
86 BUILD_WRKSRC= ${WRKDIR}/build/usession-${PORTNAME}-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
87 MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} LDSHARED="${CC} -shared"
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
88 PACKAGE_ARGS= --without-sqlite3 --without-_tkinter
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
89 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
90
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
91 # 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
92 python_CMD= ${LOCALBASE}/bin/pypy${PYPY_PYTHON_IMPL_VER}
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
93 SHEBANG_FILES= \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
94 lib-python/3/base64.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
95 lib-python/3/cProfile.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
96 lib-python/3/cgi.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
97 lib-python/3/encodings/rot_13.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
98 lib-python/3/keyword.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
99 lib-python/3/idlelib/pyshell.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
100 lib-python/3/lib2to3/pgen2/token.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
101 lib-python/3/lib2to3/tests/data/different_encoding.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
102 lib-python/3/lib2to3/tests/data/false_encoding.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
103 lib-python/3/lib2to3/tests/pytree_idempotency.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
104 lib-python/3/pdb.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
105 lib-python/3/platform.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
106 lib-python/3/profile.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
107 lib-python/3/pydoc.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
108 lib-python/3/quopri.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
109 lib-python/3/smtpd.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
110 lib-python/3/smtplib.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
111 lib-python/3/tabnanny.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
112 lib-python/3/tarfile.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
113 lib-python/3/test/bisect_cmd.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
114 lib-python/3/test/crashers/recursive_call.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
115 lib-python/3/test/curses_tests.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
116 lib-python/3/test/pystone.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
117 lib-python/3/test/re_tests.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
118 lib-python/3/test/regrtest.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
119 lib-python/3/timeit.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
120 lib-python/3/trace.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
121 lib-python/3/turtledemo/bytedesign.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
122 lib-python/3/turtledemo/clock.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
123 lib-python/3/turtledemo/forest.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
124 lib-python/3/turtledemo/fractalcurves.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
125 lib-python/3/turtledemo/lindenmayer.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
126 lib-python/3/turtledemo/minimal_hanoi.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
127 lib-python/3/turtledemo/paint.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
128 lib-python/3/turtledemo/peace.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
129 lib-python/3/turtledemo/penrose.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
130 lib-python/3/turtledemo/planet_and_moon.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
131 lib-python/3/turtledemo/sorting_animate.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
132 lib-python/3/turtledemo/tree.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
133 lib-python/3/turtledemo/yinyang.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
134 lib-python/3/turtledemo/__main__.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
135 lib-python/3/uu.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
136 lib-python/3/webbrowser.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
137 lib_pypy/_cffi_ssl/tools/make_ssl_data.py \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
138 lib-python/3/test/ziptestdata/header.sh \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
139 lib-python/3/test/ziptestdata/exe_with_z64 \
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
140 lib-python/3/test/ziptestdata/exe_with_zip
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
141
125
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
142 #.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
143 .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
144
e11577711968 Build the new pypy2:lang/pypy2 using the new monorepo for PyPy.
Franz Glasner <fzglas.hg@dom66.de>
parents: 123
diff changeset
145 .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
146 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
147 .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
148 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
149 .endif
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
150
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
151 pre-build:
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
152 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
153 ${RM} -r ${WRKDIR}/build; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
154 ${MKDIR} ${WRKDIR}/build; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
155 (cd ${WRKSRC}/pypy/goal; \
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
156 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYPY_USESSION_BASENAME=${PORTNAME} \
56
585cf5a218ad Allow to build PyPy-v7.3.14 on FreeBSD 13.2:
Franz Glasner <fzglas.hg@dom66.de>
parents: 49
diff changeset
157 ${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
158 fi
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
159
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
160 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
161 ${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
162
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
163 do-install:
45
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
164 (cd ${WRKSRC}; \
5e046980990d Call the package.py script with WRKSRC as the CWD.
Franz Glasner <fzglas.hg@dom66.de>
parents: 43
diff changeset
165 ${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
166 ${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
167 ${PACKAGE_ARGS})
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
168 ${EXTRACT_CMD} -C ${STAGEDIR}${PREFIX} -xf ${WRKDIR}/build/${PYPY_DIR}.tar.bz2
136
0110ab1309c1 FIX: Allow to install pypy39 and pypy310 at the same time: move colliding LICENSE and README files
Franz Glasner <fzglas.hg@dom66.de>
parents: 134
diff changeset
169 ${MV} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/LICENSE ${STAGEDIR}${PREFIX}/${PYPY_DIR}/LICENSE-${PKGNAME}
0110ab1309c1 FIX: Allow to install pypy39 and pypy310 at the same time: move colliding LICENSE and README files
Franz Glasner <fzglas.hg@dom66.de>
parents: 134
diff changeset
170 ${MV} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/README.rst ${STAGEDIR}${PREFIX}/${PYPY_DIR}/README-${PKGNAME}.rst
0110ab1309c1 FIX: Allow to install pypy39 and pypy310 at the same time: move colliding LICENSE and README files
Franz Glasner <fzglas.hg@dom66.de>
parents: 134
diff changeset
171 ${MV} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/include/README ${STAGEDIR}${PREFIX}/${PYPY_DIR}/include/README-${PKGNAME}
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
172 ${RM} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin/${PYPY_TAG}
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
173 ${RM} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin/${PYPY_TAG}${PYPY_PYTHON_IMPL_VER_MAJOR}
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
174 ${RM} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin/python
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
175 ${RM} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin/python${PYPY_PYTHON_IMPL_VER_MAJOR}
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
176 ${LN} -fs ../${PYPY_DIR}/bin/${PYPY_TAG}${PYPY_PYTHON_IMPL_VER} ${STAGEDIR}${PREFIX}/bin/${PYPY_TAG}${PYPY_PYTHON_IMPL_VER}
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
177 ${FIND} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/lib/${PYTHON_IMPL_MINOR} -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
178 .if ${PORT_OPTIONS:MBYTECOMPILE}
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
179 @${ECHO} Byte-compile the Python standard library for optimization levels 0, 1 and 2 with invalidation mode ${COMPILEALL_INVALIDATIONMODE}
126
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
180 (cd ${STAGEDIR}${PREFIX}/${PYPY_DIR} && ${SETENV} LD_LIBRARY_PATH=${WRKSRC}/pypy/goal \
134
cb43b563307b Build of lang/pypy310 done
Franz Glasner <fzglas.hg@dom66.de>
parents: 132
diff changeset
181 ${WRKSRC}/pypy/goal/${PYPY_EXECUTABLE} -B -I -m compileall --invalidation-mode=${COMPILEALL_INVALIDATIONMODE} -q -x '/tests?/' -o 0 -o 1 -o 2 -d "${PREFIX}/${PYPY_DIR}/lib" lib)
126
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
182 .else
1c224aaef1af Now also include the byte-compiled Python files (.pyc, .pyo) by default
Franz Glasner <fzglas.hg@dom66.de>
parents: 125
diff changeset
183 @${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
184 .endif
2
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
185
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
186 do-test:
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
187 # 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
188 # add_translated_tests()
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
189 (cd ${WRKSRC}; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
190 ${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
191 ${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
192 --parallel-runs ${MAKE_JOBS_NUMBER} \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
193 --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
194 .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
195 (cd ${WRKSRC}; \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
196 ${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
197 ${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
198 ${dir} )
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
199 .endfor
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
200 (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
201 ${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
202 ${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
203
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
204 pkg-plist: stage
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
205 ${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
206 ${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
207 -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
208 -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
209 -e '/\/$$/d' \
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
210 ${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
211 ${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
212 ${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
213 ${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
214
5797a1bc38cb ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
215 .include <bsd.port.post.mk>