From d6a492c017993cbf5cc3ea37ee368e9ed3759f17 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 13 Sep 2017 09:32:37 +0200 Subject: [PATCH] python3: remove 'python3' alternatives group No longer useful since we support one Python 3 version now. --- srcpkgs/python3/template | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template index 8d9d0cef6c5..484b35f8e29 100644 --- a/srcpkgs/python3/template +++ b/srcpkgs/python3/template @@ -1,7 +1,7 @@ # Template file for 'python3' pkgname=python3 version=3.6.2 -revision=1 +revision=2 wrksrc="Python-${version}" short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)" maintainer="Juan RP " @@ -21,16 +21,7 @@ alternatives=" python:2to3:/usr/bin/2to3-${version%.*} python:pydoc:/usr/bin/pydoc${version%.*} python:python:/usr/bin/python${version%.*} - python:python.1:/usr/share/man/man1/python${version%.*}.1 - python3:idle3:/usr/bin/idle${version%.*} - python3:2to3:/usr/bin/2to3-${version%.*} - python3:pydoc3:/usr/bin/pydoc${version%.*} - python3:python3:/usr/bin/python${version%.*} - python3:pyvenv3:/usr/bin/pyvenv-${version%.*} - python3:python3-config:/usr/bin/python${version%.*}-config - python3:libpython3.so:/usr/lib/libpython${version%.*}m.so - python3:python3.pc:/usr/lib/pkgconfig/python-${version%.*}.pc - python3:python3.1:/usr/share/man/man1/python${version%.*}.1" + python:python.1:/usr/share/man/man1/python${version%.*}.1" pre_configure() { # Ensure that internal copies of zlib, expat and libffi are not used @@ -67,12 +58,6 @@ do_install() { vlicense LICENSE rm -f ${DESTDIR}/usr/bin/2to3 - rm -f ${DESTDIR}/usr/bin/pyvenv - rm -f ${DESTDIR}/usr/bin/{idle,pydoc,python}3 - rm -f ${DESTDIR}/usr/share/man/man1/python3.1 - rm -f ${DESTDIR}/usr/bin/python3-config - rm -f ${DESTDIR}/usr/lib/libpython3.so - rm -f ${DESTDIR}/usr/lib/pkgconfig/python3.pc # Remove test module and tests that fail to be byte-compiled. rm -rf ${DESTDIR}/usr/lib/python${version%.*}/test @@ -127,7 +112,7 @@ idle-python3_package() { depends="${sourcepkg}-${version}_${revision} python3-tkinter" short_desc+=" - IDE for Python3 using Tkinter" pkg_install() { - vmove usr/bin/idle${version%.*} + vmove usr/bin/idle3* vmove usr/lib/python${version%.*}/idlelib vinstall ${FILESDIR}/idle3.xpm 644 usr/share/pixmaps vinstall ${FILESDIR}/idle3.desktop 644 usr/share/applications