From 1dda7301a5110a0dc909888763ba6e72e9c94839 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 25 Apr 2016 17:20:25 +0200 Subject: [PATCH] python3.4: register 'python3' alternatives group Thanks chris2 and xtraeme. --- srcpkgs/python3.4/template | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3.4/template b/srcpkgs/python3.4/template index aa03f220c93..499b1d7070c 100644 --- a/srcpkgs/python3.4/template +++ b/srcpkgs/python3.4/template @@ -1,7 +1,7 @@ # Template file for 'python3.4' pkgname=python3.4 version=3.4.4 -revision=4 +revision=5 wrksrc="Python-${version}" short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)" maintainer="Juan RP " @@ -20,14 +20,16 @@ depends="ca-certificates" alternatives=" python:idle:/usr/bin/idle3.4 - python:idle3:/usr/bin/idle3.4 python:2to3:/usr/bin/2to3-3.4 python:pydoc:/usr/bin/pydoc3.4 - python:pydoc3:/usr/bin/pydoc3.4 python:python:/usr/bin/python3.4 - python:python3:/usr/bin/python3.4 python:python.1:/usr/share/man/man1/python3.4.1 - python:python3.1:/usr/share/man/man1/python3.4.1" + python3:idle3:/usr/bin/idle3.4 + python3:pydoc3:/usr/bin/pydoc3.4 + python3:python3:/usr/bin/python3.4 + python3:python3-config:/usr/bin/python3.4-config + python3:python3.pc:/usr/lib/pkgconfig/python-3.4.pc + python3:python3.1:/usr/share/man/man1/python3.4.1" pre_configure() { # Ensure that internal copies of zlib, expat and libffi are not used @@ -68,6 +70,8 @@ do_install() { rm -f ${DESTDIR}/usr/bin/2to3 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/pkgconfig/python3.pc ln -sf ../../libpython${version%.*}m.so \ ${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m/libpython${version%.*}m.so