[Midnightbsd-cvs] mports [22871] trunk/lang/python27: get python to build on 1.0

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Oct 1 16:09:40 EDT 2017


Revision: 22871
          http://svnweb.midnightbsd.org/mports/?rev=22871
Author:   laffer1
Date:     2017-10-01 16:09:39 -0400 (Sun, 01 Oct 2017)
Log Message:
-----------
get python to build on 1.0

Modified Paths:
--------------
    trunk/lang/python27/Makefile
    trunk/lang/python27/pkg-plist

Modified: trunk/lang/python27/Makefile
===================================================================
--- trunk/lang/python27/Makefile	2017-10-01 18:05:21 UTC (rev 22870)
+++ trunk/lang/python27/Makefile	2017-10-01 20:09:39 UTC (rev 22871)
@@ -2,7 +2,7 @@
 
 PORTNAME=	python27
 PORTVERSION=	${PYTHON_PORTVERSION}
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	lang python ipv6
 MASTER_SITES=	PYTHON/ftp/python/${PORTVERSION}
 DISTNAME=	Python-${PORTVERSION}
@@ -34,9 +34,11 @@
 MAKE_ARGS+=		LIBPC="${PREFIX}/libdata/pkgconfig"			# Until pathfix gets support for files other than Makefile.in
 MAKE_JOBS_UNSAFE=	yes							# Parser/pgen build bug. See Issue: 200622, 201974
 
+OSMAJOR=	${OSREL:C/([0-9]*).[0-9]*/\1/}
+
 PLIST_SUB=		ABI=${ABIFLAGS} \
 			PORTVERSION=${PORTVERSION} \
-			OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}		# For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554
+			OSMAJOR=${OSMAJOR}		# For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554
 
 OPTIONS_DEFINE=		DEBUG IPV6 LIBFFI PYMALLOC SEM THREADS
 OPTIONS_DEFAULT=	IPV6 LIBFFI PYMALLOC SEM THREADS UCS4

Modified: trunk/lang/python27/pkg-plist
===================================================================
--- trunk/lang/python27/pkg-plist	2017-10-01 18:05:21 UTC (rev 22870)
+++ trunk/lang/python27/pkg-plist	2017-10-01 20:09:39 UTC (rev 22871)
@@ -2463,10 +2463,10 @@
 lib/python2.7/pkgutil.py
 lib/python2.7/pkgutil.pyo
 lib/python2.7/pkgutil.pyc
-lib/python2.7/plat-midnightbsd0/IN.py
-lib/python2.7/plat-midnightbsd0/IN.pyo
-lib/python2.7/plat-midnightbsd0/IN.pyc
-lib/python2.7/plat-midnightbsd0/regen
+lib/python2.7/plat-midnightbsd%%OSMAJOR%%/IN.py
+lib/python2.7/plat-midnightbsd%%OSMAJOR%%/IN.pyo
+lib/python2.7/plat-midnightbsd%%OSMAJOR%%/IN.pyc
+lib/python2.7/plat-midnightbsd%%OSMAJOR%%/regen
 lib/python2.7/platform.py
 lib/python2.7/platform.pyo
 lib/python2.7/platform.pyc



More information about the Midnightbsd-cvs mailing list