diff lang/pypy2/bsd.pypy.cffi.mk @ 123:b907e948fed9

Remove support for building PyPy for Python versions 3.7 and 3.8
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 13 Jan 2024 11:45:03 +0100
parents 9e9df3f25e7d
children
line wrap: on
line diff
--- a/lang/pypy2/bsd.pypy.cffi.mk	Sat Jan 13 11:44:10 2024 +0100
+++ b/lang/pypy2/bsd.pypy.cffi.mk	Sat Jan 13 11:45:03 2024 +0100
@@ -19,30 +19,24 @@
 .include "${.CURDIR}/../../lang/pypy/bsd.pypy.mk"
 
 #
-# Check that this port's build selected option FORPYIMPL37, FORPYIMPL38, FORPYIMPL39 or FORPYIMPL310
+# Check that this port's build selected option FORPYIMPL39 or FORPYIMPL310
 # is compatible to the corresponding build option of the installed pypy3.
 #
 .if ${FLAVOR} == pypy3 && exists(${LOCALBASE}/bin/pypy3)
 _PYPY_SC_PLATSTDLIB=	${:!${LOCALBASE}/bin/pypy3 -c 'import sysconfig; print(sysconfig.get_path("platstdlib"))'!}
-.  if ${PORT_OPTIONS:MFORPYIMPL37}
-.    if ${_PYPY_SC_PLATSTDLIB:T} != lib_pypy
+.  if ${_PYPY_SC_PLATSTDLIB:T} != ${PYTHON_IMPL_MINOR}
 IGNORE=		Port option mismatch: must match FORPYIMPLxx of the installed lang/pypy3
-.    endif
-.  else
-.    if ${_PYPY_SC_PLATSTDLIB:T} != ${PYTHON_IMPL_MINOR}
-IGNORE=		Port option mismatch: must match FORPYIMPLxx of the installed lang/pypy3
-.    endif
 .  endif
 .endif
 
-.if ${FLAVOR} == pypy || ${PORT_OPTIONS:MFORPYIMPL37}
+.if ${FLAVOR} == pypy
 PLIST_FILES=	${PYPY_DIR}/lib_pypy/${CFFI_MODULE}_cffi.${PYPY_CFFI_VER}.so
 .else  # pypy3
 PLIST_FILES=	${PYPY_DIR}/lib/${PYTHON_IMPL_MINOR}/${CFFI_MODULE}_cffi.${PYPY_CFFI_VER}.so
 .endif
 
 do-build:
-.if ${FLAVOR} == pypy || ${PORT_OPTIONS:MFORPYIMPL37}
+.if ${FLAVOR} == pypy
 	${CP} ${LOCALBASE}/${PYPY_DIR}/lib_pypy/${CFFI_MODULE}_build.py ${WRKDIR}/${PORTNAME}.py
 .else     # newer pypy3
 	${CP} ${LOCALBASE}/${PYPY_DIR}/lib/${PYTHON_IMPL_MINOR}/${CFFI_MODULE}_build.py ${WRKDIR}/${PORTNAME}.py
@@ -51,7 +45,7 @@
 		${PYTHON_CMD} -c "from ${PORTNAME} import ${CFFI_NAME} as ffi; ffi.compile('${WRKDIR}');")
 
 do-install:
-.if ${FLAVOR} == pypy || ${PORT_OPTIONS:MFORPYIMPL37}
+.if ${FLAVOR} == pypy
 	${MKDIR} ${STAGEDIR}${PREFIX}/${PYPY_DIR}/lib_pypy/`dirname ${CFFI_MODULE}`/
 	${INSTALL_LIB} ${WRKDIR}/${CFFI_MODULE}_cffi.${PYPY_CFFI_VER}.so ${STAGEDIR}${PREFIX}/${PYPY_DIR}/lib_pypy/`dirname ${CFFI_MODULE}`/
 .else  # newer pypy3