svn commit: r464350 - in head/science/lamprop: . files

Yuri Victorovich yuri at FreeBSD.org
Tue Mar 13 08:27:25 UTC 2018


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:


More information about the svn-ports-all mailing list