bin/python3 symlink for python3X ports
Dmitry Sivachenko
demon at FreeBSD.org
Wed Sep 26 11:18:36 UTC 2012
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.
-------------- next part --------------
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 | \
More information about the freebsd-python
mailing list