diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2017-01-22 23:29:45 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2017-01-22 23:29:45 +0800 |
commit | 82ef0e3f91506a86ce39bf134bf15af0582c6898 (patch) | |
tree | 54276cc594c692bdbfa4742da65d8038c4c60002 /lang | |
parent | e7c090e5600eed14d3244b77bc5f008446b55d9f (diff) | |
download | freebsd-ports-gnome-82ef0e3f91506a86ce39bf134bf15af0582c6898.tar.gz freebsd-ports-gnome-82ef0e3f91506a86ce39bf134bf15af0582c6898.tar.zst freebsd-ports-gnome-82ef0e3f91506a86ce39bf134bf15af0582c6898.zip |
Simplify Makefile
- Simplify RUN_DEPENDS
- Use bsd.port.mk instead of bsd.port.pre.mk + bsd.port.post.mk
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile index a5790e158259..3ee7170dca81 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -13,6 +13,8 @@ EXTRACT_ONLY= # empty MAINTAINER= python@FreeBSD.org COMMENT= "meta-port" for the default version of Python interpreter +RUN_DEPENDS= python${PYTHON_MAJOR_VER}:lang/python${PYTHON_MAJOR_VER} + USES= python:run NO_ARCH= yes NO_BUILD= yes @@ -23,14 +25,6 @@ PLIST_FILES= bin/2to3 \ 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 2to3-${PYTHON_MAJOR_VER} ${STAGEDIR}${PREFIX}/bin/2to3 .for file in idle pydoc python @@ -71,4 +65,4 @@ upgrade-site-packages: fi; \ fi; \ -.include <bsd.port.post.mk> +.include <bsd.port.mk> |