From owner-freebsd-python@FreeBSD.ORG Wed Sep 26 11:18:36 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A986F106564A; Wed, 26 Sep 2012 11:18:36 +0000 (UTC) (envelope-from demon@FreeBSD.org) Received: from dinosaur.yandex.ru (dinosaur.yandex.ru [77.88.34.8]) by mx1.freebsd.org (Postfix) with ESMTP id 558E48FC16; Wed, 26 Sep 2012 11:18:36 +0000 (UTC) Received: from dhcp175-40-red.yandex.net (dhcp175-40-red.yandex.net [95.108.175.40]) by dinosaur.yandex.ru (Postfix) with ESMTP id 3XRc8p3r38z2q7c; Wed, 26 Sep 2012 15:18:34 +0400 (MSK) Message-ID: <5062E478.8020000@FreeBSD.org> Date: Wed, 26 Sep 2012 15:18:16 +0400 From: Dmitry Sivachenko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120903 Thunderbird/15.0 MIME-Version: 1.0 To: Ruslan Mahmatkhanov References: <5062AAEA.4000401@FreeBSD.org> <5062C5CB.4060109@yandex.ru> <5062C769.6090305@FreeBSD.org> <5062C8CE.701@yandex.ru> In-Reply-To: <5062C8CE.701@yandex.ru> Content-Type: multipart/mixed; boundary="------------030303070608010401000700" Cc: Dmitry Sivachenko , python@freebsd.org, Chris Rees Subject: Re: bin/python3 symlink for python3X ports X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 11:18:36 -0000 This is a multi-part message in MIME format. --------------030303070608010401000700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 26.09.2012 13:20, Ruslan Mahmatkhanov wrote: > Dmitry Sivachenko wrote on 26.09.2012 13:14: >> I don't have a patch but I can make one if you like. > > Please do. > Please consider the attached patch. --------------030303070608010401000700 Content-Type: text/plain; charset=KOI8-R; name="diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="diff.txt" Index: pkg-plist =================================================================== --- pkg-plist (revision 304891) +++ pkg-plist (working copy) @@ -6,8 +6,10 @@ bin/pydoc3-%%PYVER%% %%IF_DEFAULT%%bin/python bin/python%%PYVER%% +bin/python%%PYMAJOR%% %%IF_DEFAULT%%bin/python-config bin/python%%PYVER%%-config +bin/python%%PYMAJOR%%-config %%IF_DEFAULT%%bin/python-shared bin/python-shared%%PYVER%% %%IF_DEFAULT%%bin/python-shared-config Index: Makefile =================================================================== --- Makefile (revision 304891) +++ Makefile (working copy) @@ -7,7 +7,7 @@ PORTNAME= python32 PORTVERSION= 3.2.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -30,12 +30,14 @@ USE_PYTHON= yes PYTHON_VERSION= python3.2 +PYTHON_MAJOR= 3 PYTHON_NO_DEPENDS= yes PYABIVER= # default empty, for after appending SHARED_WRKSRC= ${PYTHON_WRKSRC}/portbld.shared PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \ + PYMAJOR=${PYTHON_MAJOR} \ PYVER_WITHPAT=${PORTVERSION:S/.rc/rc/} \ PYABIVER=${PYABIVER} EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_VERSION} @@ -215,6 +217,10 @@ done .endif +.for file in python python-config + cd ${LOCALBASE}/bin && ${LN} -sf ${file:S/python/${PYTHON_VERSION}/} ${file:S/python/python${PYTHON_MAJOR}/} +.endfor + .if !defined(NOPORTDATA) @${MKDIR} ${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ --------------030303070608010401000700--