fix #! line in pip3.9/pip3.11 scripts, ok kmos@

This commit is contained in:
sthen 2022-12-25 13:42:05 +00:00
parent e6f07015a6
commit ed2bb52cd9
3 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,8 @@ SHARED_LIBS = python3.11 0.0
VERSION_SPEC = >=3.11,<3.12
PORTROACH = limit:^3\.11
REVISION-main = 0
CONFIGURE_ENV += ac_cv_working_openssl_hashlib=yes \
TCLTK_CFLAGS="-I${MODTCL_INCDIR} -I${MODTK_INCDIR} -I${X11BASE}/include" \
TCLTK_LIBS="-L${X11BASE}/lib -l${MODTCL_LIB} -l${MODTK_LIB} -lpthread"

View File

@ -9,5 +9,6 @@ VERSION_SPEC = >=3.9,<3.10
PORTROACH = limit:^3\.9
REVISION = 0
REVISION-main = 1
.include <bsd.port.mk>

View File

@ -197,6 +197,9 @@ post-install:
${PREFIX}/bin/python${VERSION}-2to3
.else
rm -f ${PREFIX}/bin/pip3 # in devel/py-pip for default Python version
perl -pi -e \
's@#!/usr/local/bin/python@#!${PREFIX}/bin/python${VERSION}@' \
${PREFIX}/bin/pip${VERSION}
.endif
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/python${VERSION}
${INSTALL_DATA} ${FILESDIR}/CHANGES.OpenBSD \