Print this page
Remove Python 2.6

*** 30,70 **** PROG=Pyrex VER=0.9.9 SUMMARY="Pyrex - a Language for Writing Python Extension Modules" 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 ! PKG=library/python-2/pyrex-26 ! RUN_DEPENDS_IPS="runtime/python-26" ! init ! download_source $PROG $PROG $VER ! patch_source ! prep_build ! python_build ! # XXX KEBE SAYS FIX ME... ! mv $DESTDIR/usr/bin/pyrexc $DESTDIR/usr/bin/pyrexc2.6 ! ln -s ./pyrexc2.6 $DESTDIR/usr/bin/pyrexc ! strip_install -x ! make_package ! clean_up ! ! set_python_version 2.7 PKG=library/python-2/pyrex-27 RUN_DEPENDS_IPS="runtime/python-27" init download_source $PROG $PROG $VER patch_source prep_build python_build - # XXX KEBE SAYS FIX ME... mv $DESTDIR/usr/bin/pyrexc $DESTDIR/usr/bin/pyrexc2.7 ln -s ./pyrexc2.7 $DESTDIR/usr/bin/pyrexc strip_install -x make_package clean_up - - set_python_version $OLDPV --- 30,49 ---- PROG=Pyrex VER=0.9.9 SUMMARY="Pyrex - a Language for Writing Python Extension Modules" 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. PKG=library/python-2/pyrex-27 RUN_DEPENDS_IPS="runtime/python-27" init download_source $PROG $PROG $VER patch_source prep_build python_build mv $DESTDIR/usr/bin/pyrexc $DESTDIR/usr/bin/pyrexc2.7 ln -s ./pyrexc2.7 $DESTDIR/usr/bin/pyrexc strip_install -x make_package clean_up