[Midnightbsd-cvs] mports [16392] trunk/devel/scons: switch to python 2
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jun 15 14:00:16 EDT 2014
Revision: 16392
http://svnweb.midnightbsd.org/mports/?rev=16392
Author: laffer1
Date: 2014-06-15 14:00:16 -0400 (Sun, 15 Jun 2014)
Log Message:
-----------
switch to python 2
Modified Paths:
--------------
trunk/devel/scons/Makefile
Added Paths:
-----------
trunk/devel/scons/files/patch-script__scons
Modified: trunk/devel/scons/Makefile
===================================================================
--- trunk/devel/scons/Makefile 2014-06-13 23:08:09 UTC (rev 16391)
+++ trunk/devel/scons/Makefile 2014-06-15 18:00:16 UTC (rev 16392)
@@ -3,6 +3,7 @@
PORTNAME= scons
PORTVERSION= 2.3.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
@@ -11,18 +12,16 @@
LICENSE= mit
-USE_PYTHON= yes
+USE_PYTHON= 2
USE_PYDISTUTILS= yes
-PYDISTUTILS_EGGINFODIR= ${PREFIX}/lib/scons-${PORTVERSION}
+PYDISTUTILS_AUTOPLIST= yes
-PLIST_SUB+= SCONS_VER=${PORTVERSION} \
- PYDISTUTILS_EGGINFO=${PYDISTUTILS_EGGINFO}
+PLIST_SUB+= SCONS_VER=${PORTVERSION}
-.include <bsd.port.pre.mk>
+post-patch:
+ @${REINPLACE_CMD} \
+ -e 's,distutils\.command\.install$$,setuptools\.command\.install,' \
+ -e 's,distutils\.command\.install\.,setuptools\.command\.install\.,' \
+ ${WRKSRC}/setup.py
-.if defined (NO_INSTALL_MANPAGES)
-PYDISTUTILS_INSTALLARGS+= --no-install-man
-.endif
-
-.include <bsd.port.post.mk>
-
+.include <bsd.port.mk>
Added: trunk/devel/scons/files/patch-script__scons
===================================================================
--- trunk/devel/scons/files/patch-script__scons (rev 0)
+++ trunk/devel/scons/files/patch-script__scons 2014-06-15 18:00:16 UTC (rev 16392)
@@ -0,0 +1,8 @@
+--- ./script/scons.orig 2013-04-19 23:35:11.656613793 -0400
++++ ./script/scons 2013-04-19 23:35:16.127614561 -0400
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/env python2
+ #
+ # SCons - a Software Constructor
+ #
More information about the Midnightbsd-cvs
mailing list