Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison lang/pypy3/Makefile @ 137:aa62b751b2af
Make a lang/pypy3 port: a meta-port for the current ("default") PyPy3 version
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 14 Jan 2024 21:50:07 +0100 |
| parents | b907e948fed9 |
| children | 1e06396580ad |
comparison
equal
deleted
inserted
replaced
| 136:0110ab1309c1 | 137:aa62b751b2af |
|---|---|
| 1 # Created by: David Naylor <dbn@FreeBSD.org> | 1 # Created by: David Naylor <dbn@FreeBSD.org> |
| 2 | 2 |
| 3 PORTNAME= pypy3 | 3 PORTNAME= pypy3 |
| 4 PORTREVISION= 0 | 4 PORTVERSION= 3 |
| 5 DISTNAME= ${PYTHON_IMPL_MINOR}-v${DISTVERSION}-src | 5 PORTEPOCH= 1 |
| 6 CATEGORIES= lang python | |
| 7 MASTER_SITES= | |
| 8 DISTFILES= | |
| 6 | 9 |
| 7 MASTERDIR= ${.CURDIR}/../pypy2 | 10 MAINTAINER= fzglas.hg@dom66.de |
| 11 COMMENT= Meta-port for the PyPy Python implementation (PyPy3) | |
| 12 WWW= https://www.pypy.org | |
| 8 | 13 |
| 9 WRKSRC= ${WRKDIR}/${PYTHON_IMPL_MINOR}-v${DISTVERSION:C/-.*//}-src | 14 LICENSE= MIT |
| 10 | 15 |
| 11 # Without gdbm is not supported on v7.3.9 any more: no extra package needed | 16 RUN_DEPENDS= ${LOCALBASE}/bin/pypy${PYPY_PYTHON_IMPL_VERSION}:lang/${PYPY_PORT} |
| 12 LIB_DEPENDS+= libgdbm.so:databases/gdbm | |
| 13 # We also need for dbm.ndbm the BerkeleyDB in version 5 | |
| 14 LIB_DEPENDS+= libdb-5.so:databases/db5 | |
| 15 | 17 |
| 16 SHEBANG_FILES= \ | 18 NO_ARCH= yes |
| 17 lib-python/3/base64.py \ | 19 NO_BUILD= yes |
| 18 lib-python/3/cProfile.py \ | 20 NO_TEST= yes |
| 19 lib-python/3/cgi.py \ | |
| 20 lib-python/3/encodings/rot_13.py \ | |
| 21 lib-python/3/keyword.py \ | |
| 22 lib-python/3/idlelib/pyshell.py \ | |
| 23 lib-python/3/lib2to3/pgen2/token.py \ | |
| 24 lib-python/3/lib2to3/tests/data/different_encoding.py \ | |
| 25 lib-python/3/lib2to3/tests/data/false_encoding.py \ | |
| 26 lib-python/3/lib2to3/tests/pytree_idempotency.py \ | |
| 27 lib-python/3/pdb.py \ | |
| 28 lib-python/3/platform.py \ | |
| 29 lib-python/3/profile.py \ | |
| 30 lib-python/3/pydoc.py \ | |
| 31 lib-python/3/quopri.py \ | |
| 32 lib-python/3/smtpd.py \ | |
| 33 lib-python/3/smtplib.py \ | |
| 34 lib-python/3/symbol.py \ | |
| 35 lib-python/3/tabnanny.py \ | |
| 36 lib-python/3/tarfile.py \ | |
| 37 lib-python/3/test/bisect_cmd.py \ | |
| 38 lib-python/3/test/crashers/recursive_call.py \ | |
| 39 lib-python/3/test/curses_tests.py \ | |
| 40 lib-python/3/test/pystone.py \ | |
| 41 lib-python/3/test/re_tests.py \ | |
| 42 lib-python/3/test/regrtest.py \ | |
| 43 lib-python/3/timeit.py \ | |
| 44 lib-python/3/trace.py \ | |
| 45 lib-python/3/turtledemo/bytedesign.py \ | |
| 46 lib-python/3/turtledemo/clock.py \ | |
| 47 lib-python/3/turtledemo/forest.py \ | |
| 48 lib-python/3/turtledemo/fractalcurves.py \ | |
| 49 lib-python/3/turtledemo/lindenmayer.py \ | |
| 50 lib-python/3/turtledemo/minimal_hanoi.py \ | |
| 51 lib-python/3/turtledemo/paint.py \ | |
| 52 lib-python/3/turtledemo/peace.py \ | |
| 53 lib-python/3/turtledemo/penrose.py \ | |
| 54 lib-python/3/turtledemo/planet_and_moon.py \ | |
| 55 lib-python/3/turtledemo/tree.py \ | |
| 56 lib-python/3/turtledemo/yinyang.py \ | |
| 57 lib-python/3/uu.py \ | |
| 58 lib-python/3/webbrowser.py \ | |
| 59 lib_pypy/_cffi_ssl/tools/make_ssl_data.py | |
| 60 | 21 |
| 61 FORPYIMPL39_VARS= PLIST=${.CURDIR}/pkg-plist.py39 | 22 PLIST_FILES= bin/pypy${PYPY_PYTHON_IMPL_VER_MAJOR} \ |
| 23 ${PYPY_DIR}/bin/pypy${PYPY_PYTHON_IMPL_VER_MAJOR} \ | |
| 24 ${PYPY_DIR}/bin/python${PYPY_PYTHON_IMPL_VER_MAJOR} | |
| 62 | 25 |
| 63 FORPYIMPL310_VARS= PLIST=${.CURDIR}/pkg-plist.py310 | 26 # The default PyPy version that this meta-port is dependent on |
| 27 PYPY_VERSION= 7.3.14 | |
| 28 PYPY_PYTHON_IMPL_VERSION= 3.10 | |
| 29 PYPY_PYTHON_IMPL_VER_MAJOR= ${PYPY_PYTHON_IMPL_VERSION:C|([0-9]+)\.[0-9]+|\1|} | |
| 30 PYPY_PORT= pypy310 | |
| 31 PYPY_DIR= pypy${PYPY_PYTHON_IMPL_VER_MAJOR}-${PYPY_VERSION:C|([0-9]+)\.([0-9]+).*|\1.\2|} | |
| 64 | 32 |
| 65 PACKAGE_ARGS= --without-sqlite3 --without-_tkinter | 33 do-install: |
| 34 ${MKDIR} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin | |
| 35 ${LN} -sf ../${PYPY_DIR}/bin/pypy${PYPY_PYTHON_IMPL_VERSION} ${STAGEDIR}${PREFIX}/bin/pypy${PYPY_PYTHON_IMPL_VER_MAJOR} | |
| 36 ${LN} -sf pypy${PYPY_PYTHON_IMPL_VERSION} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin/pypy${PYPY_PYTHON_IMPL_VER_MAJOR} | |
| 37 ${LN} -sf pypy${PYPY_PYTHON_IMPL_VERSION} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/bin/python${PYPY_PYTHON_IMPL_VER_MAJOR} | |
| 66 | 38 |
| 67 pre-install: | 39 .include <bsd.port.mk> |
| 68 ${FIND} ${WRKSRC} -name '*.pyc' -delete | |
| 69 #${CHMOD} -R a-w ${WRKSRC} | |
| 70 #${CHMOD} -R u+w ${WRKSRC}/lib_pypy | |
| 71 | |
| 72 .include "${MASTERDIR}/Makefile" |
