1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

lang/python2: Clean up

- Remove leading definite article from COMMENT
- Remove unneeded use of PYTHON_MAJOR_VER because this is for python 2.7
This commit is contained in:
Po-Chuan Hsieh 2021-07-25 04:23:05 +08:00
parent a86365210d
commit b7f8a1602e
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -1,5 +1,5 @@
PORTNAME= python2
PORTVERSION= ${PYTHON_MAJOR_VER}
PORTVERSION= 2
PORTREVISION= 3
CATEGORIES= lang python
MASTER_SITES= # empty
@ -7,7 +7,7 @@ DISTFILES= # empty
EXTRACT_ONLY= # empty
MAINTAINER= python@FreeBSD.org
COMMENT= The "meta-port" for version 2 of the Python interpreter
COMMENT= Meta-port for the Python interpreter 2.7
DEPRECATED= EOLed upstream
EXPIRATION_DATE= 2020-12-31
@ -17,23 +17,23 @@ USES= python:2.7,run
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= bin/2to3-${PYTHON_MAJOR_VER} \
bin/idle${PYTHON_MAJOR_VER} \
bin/pydoc${PYTHON_MAJOR_VER} \
bin/python${PYTHON_MAJOR_VER} \
bin/python${PYTHON_MAJOR_VER}-config \
libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
PLIST_FILES= bin/2to3-2 \
bin/idle2 \
bin/pydoc2 \
bin/python2 \
bin/python2-config \
libdata/pkgconfig/python2.pc
do-install:
.for file in idle pydoc python
${LN} -sf ${file}${PYTHON_VER} \
${STAGEDIR}${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}
${STAGEDIR}${PREFIX}/bin/${file}2
.endfor
${LN} -sf 2to3-${PYTHON_VER} \
${STAGEDIR}${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER}
${STAGEDIR}${PREFIX}/bin/2to3-2
${LN} -sf python${PYTHON_VER}-config \
${STAGEDIR}${PREFIX}/bin/python${PYTHON_MAJOR_VER}-config
${STAGEDIR}${PREFIX}/bin/python2-config
${LN} -sf python-${PYTHON_VER}.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
${STAGEDIR}${PREFIX}/libdata/pkgconfig/python2.pc
.include <bsd.port.mk>