Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 08:27:24 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464350 - in head/science/lamprop: . files
Message-ID:  <201803130827.w2D8ROgI063723@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Mar 13 08:27:23 2018
New Revision: 464350
URL: https://svnweb.freebsd.org/changeset/ports/464350

Log:
  science/lamprop: Unbreak by fixing the python interpreter in the shebang
  
  While here, added NO_ARCH.
  
  Approved by:	portmgr (port compliance, infrastructure)

Added:
  head/science/lamprop/files/
  head/science/lamprop/files/patch-build.py   (contents, props changed)
Modified:
  head/science/lamprop/Makefile

Modified: head/science/lamprop/Makefile
==============================================================================
--- head/science/lamprop/Makefile	Tue Mar 13 08:24:33 2018	(r464349)
+++ head/science/lamprop/Makefile	Tue Mar 13 08:27:23 2018	(r464350)
@@ -14,9 +14,9 @@ LICENSE=	BSD2CLAUSE
 RUN_DEPENDS=	${PYNUMPY}
 
 USES=		python:3.4+
-
 USE_GITHUB=	yes
 GH_ACCOUNT=	rsmith-nl
+NO_ARCH=	yes
 
 PLIST_FILES=	bin/lamprop \
 		man/man1/lamprop.1.gz \

Added: head/science/lamprop/files/patch-build.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/lamprop/files/patch-build.py	Tue Mar 13 08:27:23 2018	(r464350)
@@ -0,0 +1,11 @@
+--- build.py.orig	2018-03-13 08:20:32 UTC
++++ build.py
+@@ -28,7 +28,7 @@ def mkarchive(name, modules, main='__mai
+     """
+     std = '__main__.py'
+     vi = sys.version_info
+-    shebang = '#!/usr/bin/env python{}\n'.format(vi.major).encode('ascii')
++    shebang = '#!/usr/bin/env python{}.{}\n'.format(vi.major, vi.minor).encode('ascii')
+     if isinstance(modules, str):
+         modules = [modules]
+     if main != std:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803130827.w2D8ROgI063723>