mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
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
This commit is contained in:
parent
b1864dc14e
commit
a03c50d808
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456763
1
MOVED
1
MOVED
@ -6474,7 +6474,6 @@ audio/liquidsoap||2014-09-01|Not staged
|
||||
benchmarks/spec-sfs||2014-09-01|Not staged
|
||||
biology/blast||2014-09-01|Not staged
|
||||
biology/embassy||2014-09-01|Not staged
|
||||
biology/pymol||2014-09-01|Not staged
|
||||
cad/scv||2014-09-01|Not staged
|
||||
cad/systemc||2014-09-01|Not staged
|
||||
chinese/cmexfonts||2014-09-01|Not staged
|
||||
|
@ -170,6 +170,7 @@
|
||||
SUBDIR += py-pupynere
|
||||
SUBDIR += py-pyaixi
|
||||
SUBDIR += py-pydicom
|
||||
SUBDIR += py-pymol
|
||||
SUBDIR += py-pysal
|
||||
SUBDIR += py-pyteomics
|
||||
SUBDIR += py-pyteomics.biolccc
|
||||
|
37
science/py-pymol/Makefile
Normal file
37
science/py-pymol/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# Created by: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pymol
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.8.6.0
|
||||
CATEGORIES= science biology python
|
||||
MASTER_SITES= SF/pymol/pymol/1.8/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= OpenGL-based molecular visualization system
|
||||
|
||||
LICENSE= PyMOL
|
||||
LICENSE_NAME= Open-Source PyMOL Copyright
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack-python>0:devel/py-msgpack-python@${FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}Pmw>0:x11-toolkits/py-Pmw@${FLAVOR}
|
||||
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
||||
libpng16.so:graphics/png \
|
||||
libmsgpackc.so:devel/msgpack
|
||||
|
||||
WRKSRC= ${WRKDIR}/pymol
|
||||
|
||||
USES= compiler:c++11-lang python shebangfix tar:bz2
|
||||
USE_GL= gl glew glu glut
|
||||
USE_GNOME= libxml2
|
||||
USE_PYTHON= distutils concurrent # autoplist is broken: https://sourceforge.net/p/pymol/bugs/189
|
||||
SHEBANG_FILES= test/show test/run test/cyg
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pymol/_cmd.so
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/chempy/champ/_champ.so
|
||||
|
||||
.include <bsd.port.mk>
|
3
science/py-pymol/distinfo
Normal file
3
science/py-pymol/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1509591135
|
||||
SHA256 (pymol-v1.8.6.0.tar.bz2) = 7eaaf90ac1e1be0969291cdb1154b3631b5b6403cce1d697133d90cd37a3c565
|
||||
SIZE (pymol-v1.8.6.0.tar.bz2) = 8717164
|
34
science/py-pymol/files/patch-create__shadertext.py
Normal file
34
science/py-pymol/files/patch-create__shadertext.py
Normal file
@ -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('''
|
22
science/py-pymol/files/patch-setup.py
Normal file
22
science/py-pymol/files/patch-setup.py
Normal file
@ -0,0 +1,22 @@
|
||||
--- setup.py.orig 2017-03-09 18:16:07 UTC
|
||||
+++ setup.py
|
||||
@@ -52,6 +52,8 @@ try:
|
||||
"keyword support.")
|
||||
parser.add_argument('--help-distutils', action="store_true",
|
||||
help="show help for distutils options and exit")
|
||||
+ parser.add_argument('--single-version-externally-managed', action="store_true",
|
||||
+ help="single-version-externally-managed")
|
||||
options, sys.argv[1:] = parser.parse_known_args(namespace=options)
|
||||
except ImportError:
|
||||
print("argparse not available")
|
||||
@@ -318,8 +320,8 @@ else: # unix style (linux, mac, ...)
|
||||
|
||||
# optimization currently causes a clang segfault on OS X 10.9 when
|
||||
# compiling layer2/RepCylBond.cpp
|
||||
- if sys.platform != 'darwin':
|
||||
- ext_comp_args += ["-O3"]
|
||||
+ #if sys.platform != 'darwin':
|
||||
+ # ext_comp_args += ["-O3"]
|
||||
|
||||
def get_pymol_version():
|
||||
return re.findall(r'_PyMOL_VERSION "(.*)"', open('layer0/Version.h').read())[0]
|
9
science/py-pymol/pkg-descr
Normal file
9
science/py-pymol/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
PyMOL is a Python-enhanced molecular graphics tool. It excels at
|
||||
3D visualization of proteins, small molecules, density, surfaces,
|
||||
and trajectories. It also includes molecular editing, ray tracing,
|
||||
and movies. Open Source PyMOL is free to everyone!
|
||||
|
||||
This version represents the community-supported open source distribution
|
||||
of the closed source commercial product PyMOL.
|
||||
|
||||
WWW: https://www.pymol.org
|
1002
science/py-pymol/pkg-plist
Normal file
1002
science/py-pymol/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user