From a03c50d80803c72f85bdbc48b2efb297814dfa8e Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 19 Dec 2017 19:49:17 +0000 Subject: 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 --- science/py-pymol/files/patch-create__shadertext.py | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 science/py-pymol/files/patch-create__shadertext.py (limited to 'science/py-pymol/files/patch-create__shadertext.py') 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(''' -- cgit v1.2.3