Print this page
Remove Python 2.6
*** 19,29 ****
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
! # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#
# Load support functions
. ../../lib/functions.sh
--- 19,29 ----
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
! # Copyright 2017 OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#
# Load support functions
. ../../lib/functions.sh
*** 30,56 ****
PROG=Mako
VER=1.0.4
SUMMARY="Mako - a python templating language"
DESC="$SUMMARY"
! # Pardon the copy/paste, but we have to do this twice (2.6 & 2.7) for now.
! # And the only way buildctl detects packages is by grepping for PKG assignment.
!
! OLDPV=$PYTHONVER
!
! set_python_version 2.6
! XFORM_ARGS="-D PYTHONVER=$PYTHONVER"
! PKG=library/python-2/mako-26
! RUN_DEPENDS_IPS="runtime/python-26 library/python-2/setuptools-26"
! init
! download_source $PROG $PROG $VER
! patch_source
! prep_build
! python_build
! make_package
! clean_up
!
set_python_version 2.7
XFORM_ARGS="-D PYTHONVER=$PYTHONVER"
PKG=library/python-2/mako-27
RUN_DEPENDS_IPS="runtime/python-27 library/python-2/setuptools-27"
init
--- 30,42 ----
PROG=Mako
VER=1.0.4
SUMMARY="Mako - a python templating language"
DESC="$SUMMARY"
! # In the future when we upgrade python again, be sure to wrap the following
! # around with set_python_version and reassign PKG and RUN_DEPENDS_IPS.
! # The only way buildctl detects packages is by grepping for PKG assignment.
set_python_version 2.7
XFORM_ARGS="-D PYTHONVER=$PYTHONVER"
PKG=library/python-2/mako-27
RUN_DEPENDS_IPS="runtime/python-27 library/python-2/setuptools-27"
init
*** 58,64 ****
patch_source
prep_build
python_build
make_package
clean_up
-
- set_python_version $OLDPV
--- 44,48 ----