diff options
author | dbn <dbn@FreeBSD.org> | 2015-12-13 21:16:31 +0800 |
---|---|---|
committer | dbn <dbn@FreeBSD.org> | 2015-12-13 21:16:31 +0800 |
commit | 24891f09a7d9c010e7ab4fe4e715ff57e919618b (patch) | |
tree | eb1343333fc0cbae9958cb22d68195b8487a264b /lang | |
parent | c60996bfa31c4c4c268de65b21f0270d27a74383 (diff) | |
download | freebsd-ports-gnome-24891f09a7d9c010e7ab4fe4e715ff57e919618b.tar.gz freebsd-ports-gnome-24891f09a7d9c010e7ab4fe4e715ff57e919618b.tar.zst freebsd-ports-gnome-24891f09a7d9c010e7ab4fe4e715ff57e919618b.zip |
lang/pypy: unbreak build on i386 and armv6
- Add back PYPY_BITS as it is required to define the names of two files,
depending if pypy is translated for 32 or 64 bit systems [1].
- Change maintainership to python@ [2][3][4]
Reported by: pkg-fallout [1]
Approved by: koobs@ [2]
PR: 204743 [3]
Submitted by: robak@ [4]
Diffstat (limited to 'lang')
-rw-r--r-- | lang/pypy/Makefile | 12 | ||||
-rw-r--r-- | lang/pypy/pkg-plist | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lang/pypy/Makefile b/lang/pypy/Makefile index 4f48a4a31691..aa7a01a6fd50 100644 --- a/lang/pypy/Makefile +++ b/lang/pypy/Makefile @@ -8,13 +8,13 @@ MASTER_SITES= https://bitbucket.org/pypy/pypy/get/ LOCAL/dbn/pypy DISTNAME= release-${DISTVERSION} DIST_SUBDIR= pypy -MAINTAINER= dbn@FreeBSD.org +MAINTAINER= python@FreeBSD.org COMMENT= Fast, compliant implementation of the Python language LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ libffi.so:${PORTSDIR}/devel/libffi -ONLY_FOR_ARCHS= i386 amd64 armv6 +ONLY_FOR_ARCHS= i386 amd64 armv6 powerpc64 ONLY_FOR_ARCHS_REASON= PyPy JIT only supported on these architectures PYTHON_DESC= Use Python-2.7 to translate (slowest) @@ -48,6 +48,13 @@ PYTHON_CMD?= ${SETENV} PYPY_GC_MAX_DELTA=200MB ${LOCALBASE}/bin/pypy --jit loop_ USES+= python:2,build .endif +.if ${ARCH} == "i386" || ${ARCH} == "armv6" +PYPY_BITS= 32 +.elif ${ARCH} == "amd64" || ${ARCH} == "powerpc64" +PYPY_BITS= 64 +.endif +PLIST_SUB+= PYPY_BITS="${PYPY_BITS}" + pre-build: if [ ! -f ${BUILD_WRKSRC}/Makefile ]; then \ ${RM} -r ${WRKDIR}/build; \ @@ -86,6 +93,7 @@ regression-test: build pkg-plist: build ${TAR} -tf ${WRKDIR}/build/${PYPY_DIR}.tar.bz2 > ${WRKDIR}/.plist-files-gen ${REINPLACE_CMD} -e 's|^${PYPY_DIR}|%%PYPY_DIR%%|g' \ + -e 's|_${PYPY_BITS}_|_%%PYPY_BITS%%_|g' \ -e 's|-${PYPY_CFFI_VER}|-%%PYPY_CFFI_VER%%|g' \ -e '/\/$$/d' \ ${WRKDIR}/.plist-files-gen diff --git a/lang/pypy/pkg-plist b/lang/pypy/pkg-plist index e7215cc16f3e..e650e3010d46 100644 --- a/lang/pypy/pkg-plist +++ b/lang/pypy/pkg-plist @@ -2145,9 +2145,9 @@ bin/pypy %%PYPY_DIR%%/lib_pypy/cffi/vengine_gen.py %%PYPY_DIR%%/lib_pypy/cffi/verifier.py %%PYPY_DIR%%/lib_pypy/ctypes_config_cache/__init__.py -%%PYPY_DIR%%/lib_pypy/ctypes_config_cache/_locale_64_.py +%%PYPY_DIR%%/lib_pypy/ctypes_config_cache/_locale_%%PYPY_BITS%%_.py %%PYPY_DIR%%/lib_pypy/ctypes_config_cache/_locale_cache.py -%%PYPY_DIR%%/lib_pypy/ctypes_config_cache/_resource_64_.py +%%PYPY_DIR%%/lib_pypy/ctypes_config_cache/_resource_%%PYPY_BITS%%_.py %%PYPY_DIR%%/lib_pypy/ctypes_config_cache/_resource_cache.py %%PYPY_DIR%%/lib_pypy/ctypes_config_cache/dumpcache.py %%PYPY_DIR%%/lib_pypy/ctypes_config_cache/locale.ctc.py |