Mercurial > hgrepos > FreeBSD > ports > PyPy
annotate Makefile @ 28:6cddc8f64f05
Cross-check the port's build options with the installed pypy3 ones.
This is because the CFFI port must be compatible to the installed pypy3 build.
This is to ensure the same Python compatibility level (3.7, 3.8 or e.9).
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 06 Oct 2022 09:35:15 +0200 |
| parents | d2d396c79e9f |
| children | f005c4d19ca4 |
| rev | line source |
|---|---|
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 # Created by: David Naylor <naylor.b.david@gmail.com> |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 PORTNAME?= pypy |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 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
|
5 MASTER_SITES= https://downloads.python.org/pypy/ |
|
21
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
6 DISTNAME?= ${PYTHON_IMPL_MINOR}-v${DISTVERSION}-src |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
7 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 MAINTAINER= python@FreeBSD.org |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 COMMENT= Fast, compliant implementation of the Python language |
|
12
a92355d5c173
Put the "WWW" info into the Makefile now
Franz Glasner <fzglas.hg@dom66.de>
parents:
10
diff
changeset
|
10 WWW= http://pypy.org |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 LICENSE= MIT PSFL |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 LICENSE_COMB= multi |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 LICENSE_FILE_MIT= ${WRKSRC}/LICENSE |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 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
|
17 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
|
18 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
|
19 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
|
20 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
|
21 |
|
14
0e79fd0685d3
Because the slave port pypy3 now needs an extra LIB_DEPENDS item just add here only; do not overwrite
Franz Glasner <fzglas.hg@dom66.de>
parents:
12
diff
changeset
|
22 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
|
23 libffi.so:devel/libffi |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
24 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
|
25 ${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
|
26 ${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
|
27 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
28 USES= gettext-runtime gmake shebangfix ssl tar:bzip2 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
29 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
|
30 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
31 OPTIONS_SINGLE= TRANS |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
32 OPTIONS_SINGLE_TRANS= PYTHON |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
33 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
|
34 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
|
35 PYPY_MINMEM_DESC= Use PyPy to translate (lowest memory usage) |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
36 TRANS_DESC= Translation method |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
37 LOCALBASE?= /usr/local |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
38 # Only allow building with pypy if it wouldn't cause a dependency loop (pypy depending on itself) |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
39 .if exists(${LOCALBASE}/bin/pypy) || ${PORTNAME} != pypy |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
40 OPTIONS_SINGLE_TRANS+= PYPY PYPY_MINMEM |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
41 . if exists(${LOCALBASE}/bin/pypy) |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
42 OPTIONS_DEFAULT= PYPY_MINMEM |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
43 . else |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
44 OPTIONS_DEFAULT= PYTHON |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
45 . endif |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
46 .else |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
47 OPTIONS_SLAVE= PYTHON |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
48 .endif |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
49 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
50 ALL_TARGET= ${PORTNAME}-c |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
51 BUILD_WRKSRC?= ${WRKDIR}/build/usession-${PORTNAME}-0/testing_1 |
|
18
cb562cb4ec47
Do not write a file into the current working directory when building: use WRKDIR instead
Franz Glasner <fzglas.hg@dom66.de>
parents:
14
diff
changeset
|
52 MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} PYPY_WRKDIR=${WRKDIR} LDSHARED="${CC} -shared" |
|
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
|
53 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
|
54 LLD_UNSAFE= yes |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
55 SHEBANG_FILES?= lib-python/2.7/plat-mac/appletrunner.py \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 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
|
78 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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
90 python_OLD_CMD= ${LOCALBASE}/bin/python |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
91 python_CMD= ${PREFIX}/bin/${PORTNAME} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
92 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
93 .if ${PORTNAME} != pypy |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
94 PYPY_BUILD_DEPENDS= pypy:lang/pypy |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
95 PYPY_MINMEM_BUILD_DEPENDS= pypy:lang/pypy |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
96 .endif |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
97 PYPY_VARS= PYTHON_CMD=${LOCALBASE}/bin/pypy |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
98 PYPY_MINMEM_VARS= PYTHON_CMD="${SETENV} PYPY_GC_MAX_DELTA=200MB ${LOCALBASE}/bin/pypy --jit loop_longevity=300" |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
99 PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:devel/py-pycparser@${PY_FLAVOR} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
100 PYTHON_USES= python:2.7,build |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
101 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
102 DESCR= ${.CURDIR}/pkg-descr |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
103 PATCHDIR= ${.CURDIR}/files |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
104 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
105 .include "bsd.pypy.mk" |
|
20
246c2f328231
Now include bsd.port.pre.mk automitically from within bsd.pypy.mk
Franz Glasner <fzglas.hg@dom66.de>
parents:
18
diff
changeset
|
106 #.include <bsd.port.pre.mk> |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
107 |
|
24
d2d396c79e9f
Allow to overwrite DISTINFO_FILE and PLIST from slave ports.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
21
diff
changeset
|
108 DISTINFO_FILE?= ${.CURDIR}/distinfo |
|
d2d396c79e9f
Allow to overwrite DISTINFO_FILE and PLIST from slave ports.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
21
diff
changeset
|
109 PLIST?= ${.CURDIR}/pkg-plist |
|
d2d396c79e9f
Allow to overwrite DISTINFO_FILE and PLIST from slave ports.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
21
diff
changeset
|
110 |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
111 .if ${OPSYS} == FreeBSD && ${ARCH} != i386 && ${ARCH} != amd64 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
112 PYPY_ARGS= --withoutmod-_vmprof |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
113 .else |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
114 LIB_DEPENDS+= libunwind.so:devel/libunwind |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
115 .endif |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
116 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
117 pre-build: |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
118 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
|
119 ${RM} -r ${WRKDIR}/build; \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
120 ${MKDIR} ${WRKDIR}/build; \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
121 (cd ${WRKSRC}/pypy/goal; \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
122 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build PYPY_USESSION_BASENAME=${PORTNAME} \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
123 ${PYTHON_CMD} ../../rpython/bin/rpython --source -Ojit targetpypystandalone.py ${PYPY_ARGS}); \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
124 fi |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
125 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
126 post-build: |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
127 ${CP} ${BUILD_WRKSRC}/${PORTNAME}-c ${BUILD_WRKSRC}/lib${PORTNAME}-c.so ${WRKSRC}/pypy/goal/ |
|
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 do-install: |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
130 ${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
131 ${PYTHON_CMD} ${WRKSRC}/pypy/tool/release/package.py --builddir ${WRKDIR}/build --archive-name ${PYPY_DIR} \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
132 ${PACKAGE_ARGS} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
133 ${EXTRACT_CMD} -C ${STAGEDIR}${PREFIX} -xf ${WRKDIR}/build/${PYPY_DIR}.tar.bz2 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
134 ${LN} -fs ../${PYPY_DIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
135 ${FIND} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/lib_pypy/ -name '*.so' | ${XARGS} ${STRIP_CMD} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
136 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
137 do-test: |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
138 # 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
|
139 # add_translated_tests() |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
140 (cd ${WRKSRC}; \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
141 ${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
|
142 ${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
|
143 --parallel-runs ${MAKE_JOBS_NUMBER} \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
144 --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
|
145 .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
|
146 (cd ${WRKSRC}; \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
147 ${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
|
148 ${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
|
149 ${dir} ) |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
150 .endfor |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
151 (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
|
152 ${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
|
153 ${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
|
154 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
155 pkg-plist: stage |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
156 ${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
|
157 ${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
|
158 -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
|
159 -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
|
160 -e '/\/$$/d' \ |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
161 ${WRKDIR}/.plist-files-gen |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
162 ${ECHO} bin/${PORTNAME} > ${WRKDIR}/pkg-plist |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
163 ${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
|
164 ${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
|
165 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
166 .include <bsd.port.post.mk> |
