summaryrefslogtreecommitdiff
path: root/science/py-pymol/files/patch-create__shadertext.py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2017-12-19 19:49:17 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2017-12-19 19:49:17 +0000
commita03c50d80803c72f85bdbc48b2efb297814dfa8e (patch)
treeed08f9c29ba9e490d2d23920f9493fd19b082d05 /science/py-pymol/files/patch-create__shadertext.py
parentdevel/py-mypy: update to 0.560 (diff)
Re-added port: science/py-pymol: OpenGL based molecular visualization system (existed 2002/08/13-2014/09/01, deleted in r366862)
Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D12902
Diffstat (limited to 'science/py-pymol/files/patch-create__shadertext.py')
-rw-r--r--science/py-pymol/files/patch-create__shadertext.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/science/py-pymol/files/patch-create__shadertext.py b/science/py-pymol/files/patch-create__shadertext.py
new file mode 100644
index 000000000000..20bf5c027e0e
--- /dev/null
+++ b/science/py-pymol/files/patch-create__shadertext.py
@@ -0,0 +1,34 @@
+--- create_shadertext.py.orig 2017-03-09 18:16:07 UTC
++++ create_shadertext.py
+@@ -93,19 +93,20 @@ def create_shadertext(shaderdir, shaderd
+
+ def create_buildinfo(outputdir, pymoldir='.'):
+
+- try:
+- sha = Popen(['git', 'rev-parse', 'HEAD'], cwd=pymoldir,
+- stdout=PIPE).stdout.read().strip().decode()
+- except OSError:
+- sha = ''
++ #try:
++ # sha = Popen(['git', 'rev-parse', 'HEAD'], cwd=pymoldir,
++ # stdout=PIPE).stdout.read().strip().decode()
++ #except OSError:
++ # sha = ''
++ sha = 'n/a'
+
+ rev = 0
+- try:
+- for line in Popen(['svn', 'info'], cwd=pymoldir, stdout=PIPE).stdout:
+- if line.startswith(b'Last Changed Rev'):
+- rev = int(line.split()[3])
+- except OSError:
+- pass
++ #try:
++ # for line in Popen(['svn', 'info'], cwd=pymoldir, stdout=PIPE).stdout:
++ # if line.startswith(b'Last Changed Rev'):
++ # rev = int(line.split()[3])
++ #except OSError:
++ # pass
+
+ with openw(os.path.join(outputdir, 'PyMOLBuildInfo.h')) as out:
+ print('''