mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
lang/python: restore USES=python variables and SUB_LIST (no-op)
Has been a to do item for time. These are independent from but used by the bytecode trigger.
This commit is contained in:
+20
-5
@@ -257,17 +257,20 @@
|
||||
# packages for different Python versions.
|
||||
# default: -py${PYTHON_SUFFIX}
|
||||
#
|
||||
# Using USES=python also will add some useful entries to PLIST_SUB:
|
||||
# Using USES=python also will add some useful entries to SUB_LIST and PLIST_SUB:
|
||||
#
|
||||
# PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;}
|
||||
# PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;}
|
||||
# PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR}
|
||||
# PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR}
|
||||
# PYTHON_PLATFORM=${PYTHON_PLATFORM}
|
||||
# PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
|
||||
# PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR}
|
||||
# PYTHON_SUFFIX=${PYTHON_SUFFIX}
|
||||
# PYTHON_VER=${PYTHON_VER}
|
||||
# PYTHON_VERSION=${PYTHON_VERSION}
|
||||
#
|
||||
# and PYTHON2 and PYTHON3 will be set according to the Python version:
|
||||
# where PYTHON_INCLUDEDIR, PYTHON_LIBDIR and PYTHON_SITELIBDIR have their PREFIX
|
||||
# stripped for PLIST_SUB.
|
||||
#
|
||||
# PYTHON2 and PYTHON3 will also be set according to the Python version:
|
||||
#
|
||||
# PYTHON2="" PYTHON3="@comment " for Python 2.x
|
||||
# PYTHON2="@comment " PYTHON3="" for Python 3.x
|
||||
@@ -785,6 +788,16 @@ ${_stage}_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR}
|
||||
PREFIX= ${PYTHONBASE}
|
||||
. endif
|
||||
|
||||
# Substitutions for SUB_FILES
|
||||
SUB_LIST+= PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR} \
|
||||
PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR} \
|
||||
PYTHON_PLATFORM=${PYTHON_PLATFORM} \
|
||||
PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR} \
|
||||
PYTHON_SUFFIX=${PYTHON_SUFFIX} \
|
||||
PYTHON_EXT_SUFFIX=${PYTHON_EXT_SUFFIX} \
|
||||
PYTHON_VER=${PYTHON_VER} \
|
||||
PYTHON_VERSION=${PYTHON_VERSION}
|
||||
|
||||
# Substitutions for pkg-plist
|
||||
# Use a short form of the PYTHONPREFIX_*DIR variables; we don't need the
|
||||
# base directory in the plist file.
|
||||
@@ -797,8 +810,10 @@ PLIST_SUB+= PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} \
|
||||
PYTHON_VER=${PYTHON_VER} \
|
||||
PYTHON_VERSION=${PYTHON_VERSION}
|
||||
. if ${PYTHON_REL} < 30000
|
||||
SUB_LIST+= PYTHON2="" PYTHON3="@comment "
|
||||
PLIST_SUB+= PYTHON2="" PYTHON3="@comment "
|
||||
. else
|
||||
SUB_LIST+= PYTHON2="@comment " PYTHON3=""
|
||||
PLIST_SUB+= PYTHON2="@comment " PYTHON3=""
|
||||
. endif
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ LICENSE= PSFL
|
||||
|
||||
LIB_DEPENDS= libffi.so:devel/libffi
|
||||
|
||||
USES= compiler:c11 cpe ncurses pathfix pkgconfig readline \
|
||||
shebangfix ssl tar:xz
|
||||
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
|
||||
python:${PYTHON_DISTVERSION:R},env readline shebangfix ssl tar:xz
|
||||
PATHFIX_MAKEFILEIN= Makefile.pre.in
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
@@ -26,11 +26,6 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
|
||||
Lib/test/ziptestdata/exe_with_zip \
|
||||
Lib/test/ziptestdata/header.sh
|
||||
|
||||
# Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits.
|
||||
PYTHON_VER= ${PYTHON_DISTVERSION:R}
|
||||
PYTHON_VERSION= python${PYTHON_VER}
|
||||
PYTHON_SUFFIX= ${PYTHON_VER:S/.//g}
|
||||
|
||||
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
|
||||
CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
|
||||
--with-system-ffi
|
||||
|
||||
@@ -15,8 +15,8 @@ LICENSE= PSFL
|
||||
|
||||
LIB_DEPENDS= libffi.so:devel/libffi
|
||||
|
||||
USES= compiler:c11 cpe ncurses pathfix pkgconfig readline \
|
||||
shebangfix ssl tar:xz
|
||||
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
|
||||
python:${PYTHON_DISTVERSION:R},env readline shebangfix ssl tar:xz
|
||||
PATHFIX_MAKEFILEIN= Makefile.pre.in
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
@@ -26,11 +26,6 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
|
||||
Lib/test/ziptestdata/exe_with_zip \
|
||||
Lib/test/ziptestdata/header.sh
|
||||
|
||||
# Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits.
|
||||
PYTHON_VER= ${PYTHON_DISTVERSION:R}
|
||||
PYTHON_VERSION= python${PYTHON_VER}
|
||||
PYTHON_SUFFIX= ${PYTHON_VER:S/.//g}
|
||||
|
||||
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
|
||||
CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
|
||||
--with-system-ffi
|
||||
|
||||
@@ -19,18 +19,14 @@ EXPIRATION_DATE= 2023-06-27
|
||||
LIB_DEPENDS= libffi.so:devel/libffi \
|
||||
libmpdec.so:math/mpdecimal
|
||||
|
||||
USES= cpe ncurses pathfix pkgconfig readline shebangfix ssl tar:xz
|
||||
USES= cpe ncurses pathfix pkgconfig python:${PYTHON_DISTVERSION:R},env readline \
|
||||
shebangfix ssl tar:xz
|
||||
PATHFIX_MAKEFILEIN= Makefile.pre.in
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
python_CMD= ${PREFIX}/bin/python${PYTHON_DISTVERSION:R}
|
||||
SHEBANG_FILES= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py
|
||||
|
||||
# Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits.
|
||||
PYTHON_VER= ${PYTHON_DISTVERSION:R}
|
||||
PYTHON_VERSION= python${PYTHON_VER}
|
||||
PYTHON_SUFFIX= ${PYTHON_VER:S/.//g}
|
||||
|
||||
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
|
||||
CONFIGURE_ARGS+= --enable-shared --with-system-ffi --with-system-libmpdec --without-ensurepip
|
||||
CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations
|
||||
|
||||
@@ -15,7 +15,8 @@ LICENSE= PSFL
|
||||
|
||||
LIB_DEPENDS= libffi.so:devel/libffi
|
||||
|
||||
USES= cpe ncurses pathfix pkgconfig readline shebangfix ssl tar:xz
|
||||
USES= cpe ncurses pathfix pkgconfig python:${PYTHON_DISTVERSION:R},env readline \
|
||||
shebangfix ssl tar:xz
|
||||
PATHFIX_MAKEFILEIN= Makefile.pre.in
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
@@ -25,11 +26,6 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
|
||||
Lib/test/ziptestdata/exe_with_zip \
|
||||
Lib/test/ziptestdata/header.sh
|
||||
|
||||
# Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits.
|
||||
PYTHON_VER= ${PYTHON_DISTVERSION:R}
|
||||
PYTHON_VERSION= python${PYTHON_VER}
|
||||
PYTHON_SUFFIX= ${PYTHON_VER:S/.//g}
|
||||
|
||||
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
|
||||
CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
|
||||
--with-system-ffi
|
||||
|
||||
@@ -15,8 +15,8 @@ LICENSE= PSFL
|
||||
|
||||
LIB_DEPENDS= libffi.so:devel/libffi
|
||||
|
||||
USES= compiler:c11 cpe ncurses pathfix pkgconfig readline \
|
||||
shebangfix ssl tar:xz
|
||||
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
|
||||
python:${PYTHON_DISTVERSION:R},env readline shebangfix ssl tar:xz
|
||||
PATHFIX_MAKEFILEIN= Makefile.pre.in
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
@@ -26,11 +26,6 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
|
||||
Lib/test/ziptestdata/exe_with_zip \
|
||||
Lib/test/ziptestdata/header.sh
|
||||
|
||||
# Duplicate python.mk variables. TODO: Let lang/python?? ports use python.mk bits.
|
||||
PYTHON_VER= ${PYTHON_DISTVERSION:R}
|
||||
PYTHON_VERSION= python${PYTHON_VER}
|
||||
PYTHON_SUFFIX= ${PYTHON_VER:S/.//g}
|
||||
|
||||
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
|
||||
CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
|
||||
--with-system-ffi
|
||||
|
||||
Reference in New Issue
Block a user