diff options
| author | Mathieu Arnold <mat@FreeBSD.org> | 2020-01-09 13:33:08 +0000 |
|---|---|---|
| committer | Mathieu Arnold <mat@FreeBSD.org> | 2020-01-09 13:33:08 +0000 |
| commit | 3b90c52bf135aab579df73ebd803cd5a2901908f (patch) | |
| tree | db0f886edb67089e6807851241fb8ddd167eb891 /lang/python | |
| parent | c990abadc1a9aa1ece49c466799def40831e34d7 (diff) | |
Notes
Diffstat (limited to 'lang/python')
| -rw-r--r-- | lang/python/Makefile | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile index c5f58a38899a..37c103b1a405 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -33,37 +33,4 @@ do-install: .endfor ${LN} -sf python${PYTHON_MAJOR_VER}-config ${STAGEDIR}${PREFIX}/bin/python-config -# Major upgrade support -PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade - -.if defined(USE_PORTMASTER) -PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster -.endif - -PKG_LIST= ${PKG_BIN} query -a '%n-%v' -PKG_LIST_FILES= ${PKG_INFO} -l - -upgrade-site-packages: - @if [ ! -x ${PORTUPGRADE_CMD} ]; then \ - ${ECHO_MSG} "Please install ports-mgmt/portupgrade."; \ - ${FALSE}; \ - fi - - @GREP_ARGS="-q"; \ - for ver in `echo ${_PYTHON_ALLBRANCHES:C/${PYTHON_VER}//}`; do \ - GREP_ARGS="$${GREP_ARGS} -e lib/python$$ver"; \ - done; \ - UPD=""; \ - for pkg in `${PKG_LIST}`; do \ - ${PKG_LIST_FILES} $${pkg} | ${GREP} $${GREP_ARGS} && \ - UPD="$${UPD} $${pkg}"; \ - done; \ - if [ "$${UPD}" ]; then \ - if [ -n ${PORTUPGRADE_ARGS} ]; then \ - ${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $${UPD}; \ - else \ - ${PORTUPGRADE_CMD} -f $${UPD}; \ - fi; \ - fi; \ - .include <bsd.port.mk> |
