Browse Source

Fix eog or mirage with loading NCO-intel

Pierre-Yves Barriat 6 years ago
parent
commit
6b794fbac6

+ 31 - 0
foss-2017b/snappy-1.1.7-foss-2017b.eb

@@ -0,0 +1,31 @@
+easyblock = 'CMakeMake'
+
+name = 'snappy'
+version = '1.1.7'
+
+homepage = 'https://github.com/google/snappy'
+description = """Snappy is a compression/decompression library. It does not aim
+for maximum compression, or compatibility with any other compression library;
+instead, it aims for very high speeds and reasonable compression."""
+
+toolchain = {'name': 'foss', 'version': '2017b'}
+toolchainopts = {'pic': True}
+
+source_urls = ['https://github.com/google/snappy/archive/']
+sources = ['%(version)s.tar.gz']
+checksums = ['3dfa02e873ff51a11ee02b9ca391807f0c8ea0529a4924afa645fbf97163f9d4']
+
+builddependencies = [('CMake', '3.11.4')]
+
+# make sure both static and shared libs are built
+configopts = [
+    "-DBUILD_SHARED_LIBS=OFF ",
+    "-DBUILD_SHARED_LIBS=ON ",
+]
+
+sanity_check_paths = {
+    'files': ['lib64/libsnappy.a'],
+    'dirs': ['include']
+}
+
+moduleclass = 'lib'

+ 37 - 0
intel-2018/ATK-2.28.1-intel-2018.eb

@@ -0,0 +1,37 @@
+easyblock = 'ConfigureMake'
+
+name = 'ATK'
+version = '2.28.1'
+
+homepage = 'https://developer.gnome.org/ATK/stable/'
+description = """
+ ATK provides the set of accessibility interfaces that are implemented by other
+ toolkits and applications. Using the ATK interfaces, accessibility tools have
+ full access to view and control running applications.
+"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [FTPGNOME_SOURCE]
+sources = [SOURCELOWER_TAR_XZ]
+checksums = ['cd3a1ea6ecc268a2497f0cd018e970860de24a6d42086919d6bf6c8e8d53f4fc']
+
+builddependencies = [
+    ('GObject-Introspection', '1.54.1', '-Python-2.7.13'),
+]
+dependencies = [
+    ('GLib', '2.52.0'),
+]
+
+configopts = "--enable-introspection=yes"
+
+modextrapaths = {
+    'XDG_DATA_DIRS': 'share',
+}
+
+sanity_check_paths = {
+    'files': ['lib/libatk-1.0.%s' % SHLIB_EXT],
+    'dirs': [],
+}
+
+moduleclass = 'vis'

+ 28 - 0
intel-2018/FriBidi-1.0.1-intel-2018.eb

@@ -0,0 +1,28 @@
+easyblock = 'ConfigureMake'
+
+name = 'FriBidi'
+version = '1.0.1'
+
+homepage = 'https://directory.fsf.org/wiki/Fribidi'
+description = """FriBidi is a free implementation of the Unicode Bidirectional (BiDi) Algorithm. It also provides
+utility functions to aid in the development of interactive editors and widgets that implement BiDi functionality.
+The BiDi algorithm is a prerequisite for supporting right-to-left scripts such as Hebrew, Arabic, Syriac, and
+Thaana."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = ['https://github.com/fribidi/fribidi/releases/download/v%(version)s/']
+sources = [SOURCELOWER_TAR_BZ2]
+checksums = ['c1b182d70590b6cdb5545bab8149de33b966800f27f2d9365c68917ed5a174e4']
+
+builddependencies = [
+    ('Autotools', '20170619'),
+    ('pkg-config', '0.29.2'),
+]
+
+sanity_check_paths = {
+    'files': ['bin/fribidi', 'lib/libfribidi.la'],
+    'dirs': [],
+}
+
+moduleclass = 'vis'

+ 50 - 0
intel-2018/GObject-Introspection-1.54.1-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,50 @@
+easyblock = 'ConfigureMake'
+
+name = 'GObject-Introspection'
+version = '1.54.1'
+versionsuffix = '-Python-%(pyver)s'
+
+homepage = 'https://wiki.gnome.org/GObjectIntrospection/'
+description = """GObject introspection is a middleware layer between C libraries
+ (using GObject) and language bindings. The C library can be scanned at
+ compile time and generate a metadata file, in addition to the actual
+ native C library. Then at runtime, language bindings can read this
+ metadata and automatically provide bindings to call into the C library."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [FTPGNOME_SOURCE]
+sources = [SOURCELOWER_TAR_XZ]
+checksums = ['b88ded5e5f064ab58a93aadecd6d58db2ec9d970648534c63807d4f9a7bb877e']
+
+dependencies = [
+    ('Python', '2.7.13'),
+    ('GLib', '2.54.3'),
+    ('libffi', '3.2.1'),
+]
+
+builddependencies = [
+    ('Autotools', '20180311'),
+    ('flex', '2.6.4'),
+    ('Bison', '3.0.4'),
+    ('cairo', '1.14.12'),
+    ('pkg-config', '0.29.2'),
+]
+
+preconfigopts = "env GI_SCANNER_DISABLE_CACHE=true "
+
+# avoid using hard-coded path to 'python' in shebang of scripts
+buildopts = "PYTHON=python"
+
+modextrapaths = {
+    'GI_TYPELIB_PATH': 'share',
+    'XDG_DATA_DIRS': 'share',
+}
+
+sanity_check_paths = {
+    'files': ['bin/g-ir-%s' % x for x in ['annotation-tool', 'compiler', 'generate', 'scanner']] +
+             ['lib/libgirepository-1.0.%s' % x for x in [SHLIB_EXT, 'a']],
+    'dirs': ['include', 'share']
+}
+
+moduleclass = 'devel'

+ 28 - 0
intel-2018/GTK+-2.24.32-intel-2018.eb

@@ -0,0 +1,28 @@
+easyblock = 'ConfigureMake'
+
+name = 'GTK+'
+version = '2.24.32'
+
+homepage = 'https://developer.gnome.org/gtk+/stable/'
+description = """
+ The GTK+ 2 package contains libraries used for creating graphical user interfaces for applications.
+"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [FTPGNOME_SOURCE]
+sources = [SOURCELOWER_TAR_XZ]
+checksums = ['b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e']
+
+builddependencies = [
+    ('GObject-Introspection', '1.54.1', '-Python-2.7.13'),
+]
+dependencies = [
+    ('ATK', '2.28.1'),
+    ('Gdk-Pixbuf', '2.36.11'),
+    ('Pango', '1.41.1'),
+]
+
+configopts = "--disable-silent-rules --disable-glibtest --enable-introspection=yes --disable-visibility "
+
+moduleclass = 'vis'

+ 46 - 0
intel-2018/Gdk-Pixbuf-2.36.11-intel-2018.eb

@@ -0,0 +1,46 @@
+easyblock = 'ConfigureMake'
+
+name = 'Gdk-Pixbuf'
+version = '2.36.11'
+
+homepage = 'https://developer.gnome.org/gdk-pixbuf/stable/'
+description = """
+ The Gdk Pixbuf is a toolkit for image loading and pixel buffer manipulation.
+ It is used by GTK+ 2 and GTK+ 3 to load and manipulate images. In the past it
+ was distributed as part of GTK+ 2 but it was split off into a separate package
+ in preparation for the change to GTK+ 3.
+"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [FTPGNOME_SOURCE]
+sources = [SOURCELOWER_TAR_XZ]
+patches = ['Gdk-Pixbuf-2.36.10-disable-gio-sniffing.patch']
+checksums = [
+    'ae62ab87250413156ed72ef756347b10208c00e76b222d82d9ed361ed9dde2f3',  # gdk-pixbuf-2.36.11.tar.xz
+    '840231db69ccc2a1335c4f29c305cdd0ba570254e779c2a274611aaff968878e',  # Gdk-Pixbuf-2.36.10-disable-gio-sniffing.patch
+]
+
+builddependencies = [
+    ('GObject-Introspection', '1.54.1', '-Python-2.7.13')
+]
+dependencies = [
+    ('GLib', '2.54.3'),
+    ('libjpeg-turbo', '1.5.1'),
+    ('libpng', '1.6.32'),
+    ('LibTIFF', '4.0.7'),
+]
+
+configopts = "--disable-maintainer-mode --enable-debug=no --enable-introspection=yes "
+configopts += "--disable-Bsymbolic --without-gdiplus --enable-shared --enable-static"
+
+sanity_check_paths = {
+    'files': ['lib/libgdk_pixbuf-%(version_major)s.0.a', 'lib/libgdk_pixbuf-%%(version_major)s.0.%s' % SHLIB_EXT],
+    'dirs': ['bin', 'include/gdk-pixbuf-%(version_major)s.0', 'lib/gdk-pixbuf-%(version_major)s.0', 'share'],
+}
+
+modextrapaths = {
+    'XDG_DATA_DIRS': 'share',
+}
+
+moduleclass = 'vis'

+ 38 - 0
intel-2018/HarfBuzz-1.7.5-intel-2018.eb

@@ -0,0 +1,38 @@
+easyblock = 'ConfigureMake'
+
+name = 'HarfBuzz'
+version = '1.7.5'
+
+homepage = 'http://www.freedesktop.org/wiki/Software/HarfBuzz'
+description = """HarfBuzz is an OpenType text shaping engine."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = ['http://www.freedesktop.org/software/harfbuzz/release/']
+sources = [SOURCELOWER_TAR_BZ2]
+checksums = ['84574e1b1f65ca694cb8fb6905309665c0368af18a312357f8ff886ee2f29563']
+
+dependencies = [
+    ('GLib', '2.54.3'),
+    ('cairo', '1.14.8'),
+    ('freetype', '2.8'),
+]
+
+builddependencies = [
+    ('GObject-Introspection', '1.54.1', '-Python-2.7.13'),
+    ('pkg-config', '0.29.2'),
+]
+
+configopts = "--enable-introspection=yes --with-gobject=yes --enable-static --enable-shared --with-cairo "
+
+modextrapaths = {
+    'GI_TYPELIB_PATH': 'share',
+    'XDG_DATA_DIRS': 'share',
+}
+
+sanity_check_paths = {
+    'files': ['lib/libharfbuzz.%s' % SHLIB_EXT, 'bin/hb-view'],
+    'dirs': []
+}
+
+moduleclass = 'vis'

+ 36 - 0
intel-2018/Pango-1.41.1-intel-2018.eb

@@ -0,0 +1,36 @@
+easyblock = 'ConfigureMake'
+
+name = 'Pango'
+version = '1.41.1'
+
+homepage = 'http://www.pango.org/'
+description = """Pango is a library for laying out and rendering of text, with an emphasis on internationalization.
+Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the
+context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [FTPGNOME_SOURCE]
+sources = [SOURCELOWER_TAR_XZ]
+checksums = ['1353a4cf5227299294955d0c6232326b346b087ebac6496241d54ca5d2e2abc3']
+
+dependencies = [
+    ('X11', '20170805'),
+    ('GLib', '2.54.3'),
+    ('cairo', '1.14.8'),
+    ('HarfBuzz', '1.7.5'),
+]
+
+builddependencies = [
+    ('GObject-Introspection', '1.54.1', '-Python-2.7.13'),
+    ('pkg-config', '0.29.2'),
+    ('FriBidi', '1.0.1'),
+]
+
+configopts = "--disable-silent-rules --enable-introspection=yes --enable-static --enable-shared "
+
+modextrapaths = {
+    'XDG_DATA_DIRS': 'share',
+}
+
+moduleclass = 'vis'

+ 32 - 0
intel-2018/PyCairo-1.16.2-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,32 @@
+easyblock = 'PythonPackage'
+
+name = 'PyCairo'
+version = '1.16.2'
+versionsuffix = '-Python-%(pyver)s'
+
+homepage = 'http://cairographics.org/pycairo/'
+description = """Python bindings for the cairo library"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [PYPI_SOURCE]
+sources = [SOURCELOWER_TAR_GZ]
+checksums = ['49a3cf8737c009852e97289d43e952bf228d8df53a7ddb840d4deeb4d0cc1ea7']
+
+dependencies = [
+    ('Python', '2.7.13'),
+    ('cairo', '1.14.8'),
+]
+
+modextrapaths = {
+    'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages', 'lib64/python%(pyshortver)s/site-packages'],
+}
+
+sanity_check_paths = {
+    'files': ['include/pycairo/pycairo.h', 'lib/pkgconfig/pycairo.pc'],
+    'dirs': ['lib/python%(pyshortver)s/site-packages/cairo'],
+}
+
+options = {'modulename': 'cairo'}
+
+moduleclass = 'vis'

+ 50 - 0
intel-2018/PyGObject-2.28.6-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,50 @@
+easyblock = 'ConfigureMake'
+
+name = 'PyGObject'
+version = '2.28.6'
+versionsuffix = '-Python-%(pyver)s'
+
+homepage = 'http://www.pygtk.org/'
+description = """Python Bindings for GLib/GObject/GIO/GTK+"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [FTPGNOME_SOURCE]
+sources = [SOURCELOWER_TAR_XZ]
+
+patches = ['PyGObject-%(version)s_enum-types.patch']
+
+pyver = '2.7.13'
+pyshortver = '.'.join(pyver.split('.')[:2])
+
+dependencies = [
+    ('Python', pyver),
+    ('GLib', '2.52.0'),
+    ('GObject-Introspection', '1.54.1', versionsuffix),
+    ('PyCairo', '1.16.2', versionsuffix),
+]
+
+configopts = "--disable-introspection"
+
+modextrapaths = {
+    'PYTHONPATH': [
+        'lib/python%(pyshortver)s/site-packages',
+        'lib/python%(pyshortver)s/site-packages/gtk-2.0',
+        'lib64/python%(pyshortver)s/site-packages',
+        'lib64/python%(pyshortver)s/site-packages/gtk-2.0',
+    ],
+}
+
+sanity_check_paths = {
+    'files': ['include/pygtk-%(version_major)s.0/pyglib.h', 'include/pygtk-%(version_major)s.0/pygobject.h',
+              'lib/libpyglib-%(version_major)s.0-python.so'],
+    'dirs': ['bin', 'lib/python%(pyshortver)s/site-packages/'],
+}
+
+sanity_check_commands = [
+    ('python', "-c 'import gobject'"),
+    ('python', "-c 'import glib'"),
+    ('python', "-c 'import gio'"),
+]
+
+moduleclass = 'vis'

+ 53 - 0
intel-2018/PyGTK-2.24.0-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,53 @@
+easyblock = 'ConfigureMake'
+
+name = 'PyGTK'
+version = '2.24.0'
+
+homepage = 'http://www.pygtk.org/'
+description = """PyGTK lets you to easily create programs with a graphical user interface
+ using the Python programming language."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [PYPI_SOURCE]
+sources = [SOURCELOWER_TAR_BZ2]
+
+pyver = '2.7.13'
+pyshortver = '.'.join(pyver.split('.')[:2])
+versionsuffix = '-Python-%s' % pyver
+
+dependencies = [
+    ('Python', pyver),
+    ('GLib', '2.52.0'),
+    ('PyGObject', '2.28.6', versionsuffix),
+    ('GTK+', '2.24.32'),
+    ('ATK', '2.28.1'),
+    ('PyCairo', '1.16.2', versionsuffix),
+    ('libglade', '2.6.4'),
+]
+
+postinstallcmds = [
+    "sed -i s#'codegendir=${datadir}'#codegendir=$EBROOTPYGOBJECT/share# %(installdir)s/lib/pkgconfig/pygtk-2.0.pc",
+    "sed -i s#'exec_prefix=${prefix}'#exec_prefix=$EBROOTPYGOBJECT# %(installdir)s/bin/pygtk-codegen-2.0",
+]
+
+modextrapaths = {
+    'PYTHONPATH': [
+        'lib/python%s/site-packages' % pyshortver,
+        'lib64/python%s/site-packages' % pyshortver,
+        'lib/python%s/site-packages/gtk-%%(version_major)s.0' % pyshortver,
+        'lib64/python%s/site-packages/gtk-%%(version_major)s.0' % pyshortver,
+    ],
+}
+
+sanity_check_paths = {
+    'files': ['lib/pkgconfig/pygtk-%(version_major)s.0.pc'],
+    'dirs': ['lib/pygtk'],
+}
+
+sanity_check_commands = [
+    ('python', "-c 'import gtk'"),
+    ('python', "-c 'import gtk.glade'"),
+]
+
+moduleclass = 'vis'

+ 27 - 0
intel-2018/libglade-2.6.4-intel-2018.eb

@@ -0,0 +1,27 @@
+easyblock = 'ConfigureMake'
+
+name = 'libglade'
+version = '2.6.4'
+
+homepage = 'https://developer.gnome.org/libglade/'
+description = """Libglade is a library for constructing user interfaces dynamically from XML descriptions."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = ['http://ftp.gnome.org/pub/GNOME/sources/libglade/%(version_major_minor)s']
+sources = [SOURCE_TAR_GZ]
+
+dependencies = [
+    ('ATK', '2.28.1'),
+    ('GTK+', '2.24.32'),
+    ('GLib', '2.52.0'),
+    ('libxml2', '2.9.4'),
+]
+
+sanity_check_paths = {
+    'files': ['bin/libglade-convert', 'lib/libglade-2.0.a', 'lib/libglade-2.0.%s' % SHLIB_EXT,
+              'lib/pkgconfig/libglade-2.0.pc'],
+    'dirs': ['include/libglade-2.0/glade', 'share'],
+}
+
+moduleclass = 'lib'

+ 50 - 1
utils/install_modulerc.sh

@@ -74,7 +74,7 @@ echo "hide-version FFTW/3.3.6-gompi-2017b" >> /opt/modules/all/${VAR}/.modulerc
 VAR=GCCcore
 echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
 echo "hide-version GCCcore/4.9.3" >> /opt/modules/all/${VAR}/.modulerc
-echo "hide-version GCCcore/6.4.0  " >> /opt/modules/all/${VAR}/.modulerc
+echo "hide-version GCCcore/6.3.0  " >> /opt/modules/all/${VAR}/.modulerc
 
 VAR=GLib
 echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
@@ -675,3 +675,52 @@ echo "hide-version zlib/1.2.11-GCCcore-6.4.0" >> /opt/modules/all/${VAR}/.module
 echo "hide-version zlib/1.2.11" >> /opt/modules/all/${VAR}/.modulerc
 echo "hide-version zlib/1.2.8-GCCcore-4.9.3" >> /opt/modules/all/${VAR}/.modulerc
 echo "hide-version zlib/1.2.8-intel-2016.02-GCC-4.9" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=ATK
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version ATK/2.28.1-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=FriBidi
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version FriBidi/1.0.1-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=GObject-Introspection
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version GObject-Introspection/1.54.1-intel-2018-Python-2.7.13" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR="GTK+"
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version GTK+/2.24.32-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=Gdk-Pixbuf
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version Gdk-Pixbuf/2.36.11-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=HarfBuzz
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version HarfBuzz/1.7.5-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=Pango
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version Pango/1.41.1-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=PyCairo
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version PyCairo/1.16.2-intel-2018-Python-2.7.13" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=PyGObject
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version PyGObject/2.28.6-intel-2018-Python-2.7.13" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=libglade
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version libglade/2.6.4-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=Imlib2
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version Imlib2/1.5.1-intel-2018" >> /opt/modules/all/${VAR}/.modulerc
+
+VAR=snappy
+echo "#%Module" > /opt/modules/all/${VAR}/.modulerc
+echo "hide-version snappy/1.1.7-foss-2017b" >> /opt/modules/all/${VAR}/.modulerc
+echo "hide-version snappy/1.1.7-GCCcore-6.4.0" >> /opt/modules/all/${VAR}/.modulerc