Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{bio}[goolf-1.4.10] PyMOL and {devel}[goolf-1.4.10] GLEW (REVIEW) #1405

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 46 additions & 0 deletions easybuild/easyconfigs/g/GLEW/GLEW-1.10.0-goolf-1.4.10.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# Swiss Institute of Bioinformatics
# Biozentrum - University of Basel

name = 'GLEW'
version = '1.10.0'

homepage = 'http://glew.sourceforge.net/index.html'
description = """ The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms
for determining which OpenGL extensions are supported on the target platform. OpenGL core
and extension functionality is exposed in a single header file. GLEW has been tested on
a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris. """

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TGZ]

# this is not standard " configure && make && make install" so let's tweak it
skipsteps = ['configure', 'install']

# we setup as env vars the system to compile and the install dir
prebuildopts = 'SYSTEM=linux && export GLEW_DEST=%(installdir)s && '

# and we do "make all && make install.all"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L27 redundant

buildopts = 'all && make install.all'

python = 'Python'
pythonversion = '2.7.5'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include a versionsuffix based on this:

versionsuffix = '-%s-%s' % (python, pythonversion)

versionsuffix = '-%s-%s' % (python, pythonversion)

dependencies = [
('freeglut', '2.8.1'),
('libXi', '1.7.2'),
('Mesa', '7.11.2', '-%s-%s' % (python, versionsuffix)),
]

sanity_check_paths = {
'files': ["bin/glewinfo", "include/GL/glew.h", "lib64/libGLEW.so", "lib64/libGLEW.a"],
'dirs': [],
}

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name = 'libxml2'
version = '2.9.1'

homepage = 'http://xmlsoft.org/'
description = """Libxml2 is the XML C parser and toolchain developed for the Gnome project (but usable
outside of the Gnome platform)."""
toolchain = {'name': 'goolf', 'version': '1.4.10'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

help above 3 lines in readability... (split descr., empty line etc)


source_urls = [
'http://xmlsoft.org/sources/',
'http://xmlsoft.org/sources/old/'
]
sources = [SOURCELOWER_TAR_GZ]

configopts = 'CC="$CC" CXX="$CXX" --with-pic'

pythonver = '2.7.5'
pythonshortver = '.'.join(pythonver.split('.')[0:2])
versionsuffix = '-%s-%s' % ('Python', pythonver)

dependencies = [
('zlib', '1.2.8'),
('Python', pythonver),
]

moduleclass = 'lib'
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
easyblock = 'ConfigureMake'

name = 'Mesa'
version = '7.11.2'

homepage = 'http://www.mesa3d.org/'
description = """Mesa is an open-source implementation of the OpenGL specification -
a system for rendering interactive 3D graphics."""
toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'optarch': True}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readability issues, like above...


sources = ['%sLib-%s.tar.gz' % (name, version)]
source_urls = [
'ftp://ftp.freedesktop.org/pub/mesa/%(version)s',
'ftp://ftp.freedesktop.org/pub/mesa/older-versions/%(version_major)s.x/%(version)s',
]

pythonver = '2.7.5'
pythonshortver = '.'.join(pythonver.split('.')[0:2])
versionsuffix = '-%s-%s' % ('Python', pythonver)

dependencies = [
('flex', '2.5.35'),
('Bison', '2.5'),
('makedepend', '1.0.4'),
('Python', pythonver),
('libxml2', '2.9.1', versionsuffix),
('glproto', '1.4.16'),
('libdrm', '2.4.27')
]

osdependencies = [
'libX11-devel', # Xlibs.h
'xorg-x11-proto-devel', # X.h, glproto, xproto
'libXdamage-devel',
'libXext-devel',
'libXfixes-devel',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4-space indents above, no indent below for the square bracket

]

configopts = " --disable-osmesa --enable-glu --disable-gallium-llvm --disable-gallium-gbm --enable-glx --with-driver=xlib"
configopts += " --disable-driglx-direct --with-gallium-drivers='' --without-demos --disable-egl"""

# package-config files for os dependencies are in an os specific place
preconfigopts = ' PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib64/pkgconfig/:/usr/share/pkgconfig" '

prebuildopts = 'CPATH="$EBROOTLIBDRM/include/libdrm" '

sanity_check_paths = {
'files': ['lib/libGL.so', 'lib/libGLU.so', 'include/GL/glext.h', 'include/GL/gl_mangle.h',
'include/GL/glu_mangle.h', 'include/GL/glx.h', 'include/GL/osmesa.h', 'include/GL/wglext.h',
'include/GL/gl.h', 'include/GL/glu.h', 'include/GL/glxext.h', 'include/GL/glx_mangle.h',
'include/GL/vms_x_fix.h', 'include/GL/wmesa.h'],
'dirs': [],
}

moduleclass = 'vis'
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez, Adam Mazur
# Swiss Institute of Bioinformatics, Research IT
# Biozentrum - University of Basel

name = 'PyMOL'
version = '1.7.2.1'

easyblock = "PythonPackage"

homepage = 'http://www.pymol.org/pymol'
description = """ PyMOL is a powerful and comprehensive molecular visualization
product for rendering and animating 3D molecular structures"""

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = [SOURCEFORGE_SOURCE]
sources = ['%(namelower)s-v%(version)s.tar.bz2']

python = "Python"
pythonversion = "2.7.5"
pythonshortversion = '.'.join(pythonversion.split('.')[:-1])

versionsuffix = "-%s-%s" % (python, pythonversion)

dependencies = [
(python, pythonversion),
('Pmw', '1.3.3', versionsuffix),
('Mesa', '7.11.2', versionsuffix),
('GLEW', '1.10.0'),
]

sanity_check_paths = {
'files': ['bin/pymol'],
'dirs': ['lib/python%s/site-packages/pymol' % pythonshortversion],
}

moduleclass = 'bio'