mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Garbage collecte unusable things from lang/python{,2,3} metaports.
This commit is contained in:
parent
c990abadc1
commit
3b90c52bf1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=522489
@ -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>
|
||||
|
@ -26,8 +26,6 @@ PLIST_FILES= bin/2to3-${PYTHON_MAJOR_VER} \
|
||||
bin/python${PYTHON_MAJOR_VER}-config \
|
||||
libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-install:
|
||||
.for file in idle pydoc python
|
||||
${LN} -sf ${file}${PYTHON_VER} \
|
||||
@ -40,14 +38,4 @@ do-install:
|
||||
${LN} -sf python-${PYTHON_VER}.pc \
|
||||
${STAGEDIR}${PREFIX}/libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
|
||||
|
||||
# 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
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -23,8 +23,6 @@ PLIST_FILES= bin/2to3-${PYTHON_MAJOR_VER} \
|
||||
bin/python${PYTHON_MAJOR_VER}-config \
|
||||
libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-install:
|
||||
${LN} -sf python${PYTHON_VER} \
|
||||
${STAGEDIR}${PREFIX}/bin/python${PYTHON_MAJOR_VER}
|
||||
@ -39,14 +37,4 @@ do-install:
|
||||
${LN} -sf python-${PYTHON_VER}.pc \
|
||||
${STAGEDIR}${PREFIX}/libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
|
||||
|
||||
# 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
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user