1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/lang/python/Makefile

83 lines
1.9 KiB
Makefile
Raw Normal View History

# Created by: jkh
1999-08-25 06:35:40 +00:00
# $FreeBSD$
1995-08-08 22:09:07 +00:00
PORTNAME= python
PORTVERSION= ${PYTHON_DEFAULT}
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= lang python ipv6
MASTER_SITES= # empty
DISTFILES= # empty
EXTRACT_ONLY= # empty
1998-04-08 09:23:59 +00:00
MAINTAINER= python@FreeBSD.org
COMMENT= The "meta-port" for the default version of Python interpreter
1995-08-08 22:09:07 +00:00
USES= python:run
NO_BUILD= yes
PLIST_FILES= bin/2to3 \
bin/idle \
bin/pydoc \
bin/python \
bin/python-config
.include <bsd.port.pre.mk>
.if ${PYTHON_MAJOR_VER} == 2
RUN_DEPENDS+= python2:lang/python2
.elif ${PYTHON_MAJOR_VER} == 3
RUN_DEPENDS+= python3:lang/python3
.endif
do-install:
${LN} -sf python${PYTHON_MAJOR_VER} ${STAGEDIR}${PREFIX}/bin/python
${LN} -sf 2to3-${PYTHON_MAJOR_VER} ${STAGEDIR}${PREFIX}/bin/2to3
.if ${PYTHON_MAJOR_VER} == 2
.for file in idle pydoc
${LN} -sf ${file}${PYTHON_MAJOR_VER} ${STAGEDIR}${PREFIX}/bin/${file}
.endfor
.elif ${PYTHON_MAJOR_VER} == 3
.for file in idle pydoc
${LN} -sf ${file}${PYTHON_MAJOR_VER}-${PYTHON_VER} \
2014-01-25 08:46:11 +00:00
${STAGEDIR}${PREFIX}/bin/${file}
.endfor
.endif
${LN} -sf python${PYTHON_MAJOR_VER}-config \
2014-01-25 08:46:11 +00:00
${STAGEDIR}${PREFIX}/bin/python-config
# Major upgrade support
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade
.if defined(USE_PORTMASTER)
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster
.endif
2012-10-03 09:18:51 +00:00
PKG_LIST= ${PKG_BIN} query -a '%n-%v'
PKG_LIST_FILES= ${PKG_INFO} -l
upgrade-site-packages:
@if [ ! -x ${PORTUPGRADE_CMD} ]; then \
Populate a new ports-mgmt category. List of moved ports: devel/portcheckout -> ports-mgmt/portcheckout devel/portlint -> ports-mgmt/portlint devel/portmk -> ports-mgmt/portmk devel/porttools -> ports-mgmt/porttools misc/instant-tinderbox -> ports-mgmt/instant-tinderbox misc/porteasy -> ports-mgmt/porteasy misc/portell -> ports-mgmt/portell misc/portless -> ports-mgmt/portless misc/tinderbox -> ports-mgmt/tinderbox security/jailaudit -> ports-mgmt/jailaudit security/portaudit -> ports-mgmt/portaudit security/portaudit-db -> ports-mgmt/portaudit-db security/vulnerability-test-port -> ports-mgmt/vulnerability-test-port sysutils/barry -> ports-mgmt/barry sysutils/bpm -> ports-mgmt/bpm sysutils/kports -> ports-mgmt/kports sysutils/managepkg -> ports-mgmt/managepkg sysutils/newportsversioncheck -> ports-mgmt/newportsversioncheck sysutils/pib -> ports-mgmt/pib sysutils/pkgfe -> ports-mgmt/pkgfe sysutils/pkg-orphan -> ports-mgmt/pkg-orphan sysutils/pkg_cutleaves -> ports-mgmt/pkg_cutleaves sysutils/pkg_install -> ports-mgmt/pkg_install sysutils/pkg_install-devel -> ports-mgmt/pkg_install-devel sysutils/pkg_remove -> ports-mgmt/pkg_remove sysutils/pkg_rmleaves -> ports-mgmt/pkg_rmleaves sysutils/pkg_trackinst -> ports-mgmt/pkg_trackinst sysutils/pkg_tree -> ports-mgmt/pkg_tree sysutils/portbrowser -> ports-mgmt/portbrowser sysutils/portconf -> ports-mgmt/portconf sysutils/portdowngrade -> ports-mgmt/portdowngrade sysutils/portcheck -> ports-mgmt/portcheck sysutils/portmanager -> ports-mgmt/portmanager sysutils/portmaster -> ports-mgmt/portmaster sysutils/portscout -> ports-mgmt/portscout sysutils/portsearch -> ports-mgmt/portsearch sysutils/portsman -> ports-mgmt/portsman sysutils/portsnap -> ports-mgmt/portsnap sysutils/portsopt -> ports-mgmt/portsopt sysutils/portupgrade -> ports-mgmt/portupgrade sysutils/portupgrade-devel -> ports-mgmt/portupgrade-devel sysutils/port-authoring-tools -> ports-mgmt/port-authoring-tools sysutils/port-maintenance-tools -> ports-mgmt/port-maintenance-tools sysutils/psearch -> ports-mgmt/psearch sysutils/p5-FreeBSD-Portindex -> ports-mgmt/p5-FreeBSD-Portindex sysutils/qtpkg -> ports-mgmt/qtpkg textproc/p5-FreeBSD-Ports -> ports-mgmt/p5-FreeBSD-Ports Repocopies by: marcus
2007-02-05 01:08:46 +00:00
${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=""; \
2012-10-03 09:18:51 +00:00
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.post.mk>