diff uwsginl-plugin-lang-pypy3/Makefile @ 162:620a0992bf93

FIX: The exported symbol from a plugin really needs to match the name of the plugin
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 19 Oct 2022 02:34:51 +0200
parents 5a9516babd5e
children 9b279d675487
line wrap: on
line diff
--- a/uwsginl-plugin-lang-pypy3/Makefile	Tue Oct 18 17:55:56 2022 +0200
+++ b/uwsginl-plugin-lang-pypy3/Makefile	Wed Oct 19 02:34:51 2022 +0200
@@ -69,6 +69,11 @@
 # Use the PATCHDIR of the binary executable by default
 PATCHDIR?=		${.CURDIR}/../uwsginl/files
 
+.if ${PLUGIN_NAME} != pypy3 && ${PLUGIN_NAME} != pypy38
+post-patch:
+	${REINPLACE_CMD} -i '' -e 's/pypy3_plugin/${PLUGIN_NAME}_plugin/g' ${WRKSRC}/${PLUGIN_SOURCE}/pypy_setup.py
+.endif
+
 do-configure:
 	@${DO_NADA}