Date: Wed, 26 Sep 2012 15:18:16 +0400 From: Dmitry Sivachenko <demon@FreeBSD.org> To: Ruslan Mahmatkhanov <cvs-src@yandex.ru> Cc: Dmitry Sivachenko <demon@FreeBSD.org>, python@freebsd.org, Chris Rees <utisoft@gmail.com> Subject: Re: bin/python3 symlink for python3X ports Message-ID: <5062E478.8020000@FreeBSD.org> In-Reply-To: <5062C8CE.701@yandex.ru> References: <5062AAEA.4000401@FreeBSD.org> <CADLo838ZysqxVHPuj6_M223ohanPWRoqc2mwePNeBYbGa2OfRQ@mail.gmail.com> <5062C5CB.4060109@yandex.ru> <5062C769.6090305@FreeBSD.org> <5062C8CE.701@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5062E478.8020000>