Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/python.mk
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | |||||
PYTHON_SUFFIX= ${_PYTHON_VERSION:S/.//g} | PYTHON_SUFFIX= ${_PYTHON_VERSION:S/.//g} | ||||
PYTHON_MAJOR_VER= ${PYTHON_VER:R} | PYTHON_MAJOR_VER= ${PYTHON_VER:R} | ||||
PYTHON_REL= # empty | PYTHON_REL= # empty | ||||
PYTHON_ABIVER= # empty | PYTHON_ABIVER= # empty | ||||
PYTHON_PORTSDIR= ${_PYTHON_RELPORTDIR}${PYTHON_SUFFIX} | PYTHON_PORTSDIR= ${_PYTHON_RELPORTDIR}${PYTHON_SUFFIX} | ||||
# Protect partial checkouts from Mk/Scripts/functions.sh:export_ports_env(). | # Protect partial checkouts from Mk/Scripts/functions.sh:export_ports_env(). | ||||
.if !defined(_PORTS_ENV_CHECK) || exists(${PYTHON_PORTSDIR}) | .if !defined(_PORTS_ENV_CHECK) || exists(${PYTHON_PORTSDIR}) | ||||
.if !defined(PYTHON_PORTVERSION) | .if !defined(PYTHON_PORTVERSION) | ||||
PYTHON_PORTVERSION!= ${MAKE} -V PORTVERSION -C ${PYTHON_PORTSDIR} | .include "${PYTHON_PORTSDIR}/Makefile.version"; | ||||
antoine: Stray ; ? | |||||
marinoAuthorUnsubmitted Not Done Inline Actionsyeah. Maybe a carry-over from all the Ada code I've been writing lately. I'll remove it in final. marino: yeah. Maybe a carry-over from all the Ada code I've been writing lately. I'll remove it in… | |||||
.endif | .endif | ||||
_EXPORTED_VARS+= PYTHON_PORTVERSION | _EXPORTED_VARS+= PYTHON_PORTVERSION | ||||
.endif | .endif | ||||
# Create a 4 integer version string, prefixing 0 to the last token if | # Create a 4 integer version string, prefixing 0 to the last token if | ||||
# it's a single character. Only use the the first 3 tokens of | # it's a single character. Only use the the first 3 tokens of | ||||
# PORTVERSION to support pre-release versions (rc3, alpha4, etc) of | # PORTVERSION to support pre-release versions (rc3, alpha4, etc) of | ||||
# any Python port (lang/pythonXY) | # any Python port (lang/pythonXY) | ||||
PYTHON_REL= ${PYTHON_PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/:C/\.([0-9]+)$/.0\1/:C/\.0?([0-9][0-9])$/.\1/:S/.//g} | PYTHON_REL= ${PYTHON_PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/:C/\.([0-9]+)$/.0\1/:C/\.0?([0-9][0-9])$/.\1/:S/.//g} | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |
Stray ; ?