From f53954b22d6477e9c725e319e25e89592b7bca3d Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Wed, 9 Oct 2024 18:23:52 +0200 Subject: [PATCH 1/5] Add gnuplot --- .../g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb | 47 +++++++++++++++++++ .../l/Lua/Lua-5.4.7-GCCcore-13.3.0.eb | 28 +++++++++++ .../l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb | 36 ++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb create mode 100644 easybuild/easyconfigs/l/Lua/Lua-5.4.7-GCCcore-13.3.0.eb create mode 100644 easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb diff --git a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb new file mode 100644 index 00000000000..049c6e4a741 --- /dev/null +++ b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb @@ -0,0 +1,47 @@ +easyblock = 'ConfigureMake' + +name = 'gnuplot' +version = '6.0.1' + +homepage = 'http://gnuplot.sourceforge.net' +description = "Portable interactive, function plotting utility" + +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} + +source_urls = [('https://sourceforge.net/projects/%(name)s/files/%(name)s/%(version)s', 'download')] +sources = [SOURCE_TAR_GZ] +checksums = ['e85a660c1a2a1808ff24f7e69981ffcbac66a45c9dcf711b65610b26ea71379a'] + +builddependencies = [ + ('binutils', '2.42'), + ('pkgconf', '2.2.0'), + ('Autotools', '20231222'), +] +dependencies = [ + ('ncurses', '6.5'), + ('cairo', '1.18.0'), + ('libjpeg-turbo', '3.0.1'), + ('libpng', '1.6.43'), + ('libgd', '2.3.3'), + ('Pango', '1.54.0'), + ('libcerf', '2.4'), + ('X11', '20240607'), + ('Qt6', '6.7.2'), + ('Lua', '5.4.7'), +] + +preconfigopts = 'autoreconf && export LUA_CFLAGS="-I$EBROOTLUA/include" && export LUA_LIBS="$EBROOTLUA/lib/liblua.a" && ' +preconfigopts += ' export LDFLAGS="-Wl,--copy-dt-needed-entries" && ' +#configopts = "--with-qt=qt5 --without-latex --disable-wxwidgets" +configopts = "--without-latex --disable-wxwidgets" + + +sanity_check_paths = { + 'files': ['bin/%(name)s'], + 'dirs': [], +} + +# make sure that pdf terminal type is available +sanity_check_commands = ["%(name)s -e 'set terminal pdf'"] + +moduleclass = 'vis' diff --git a/easybuild/easyconfigs/l/Lua/Lua-5.4.7-GCCcore-13.3.0.eb b/easybuild/easyconfigs/l/Lua/Lua-5.4.7-GCCcore-13.3.0.eb new file mode 100644 index 00000000000..98e622129cd --- /dev/null +++ b/easybuild/easyconfigs/l/Lua/Lua-5.4.7-GCCcore-13.3.0.eb @@ -0,0 +1,28 @@ +name = 'Lua' +version = '5.4.7' + +homepage = 'https://www.lua.org/' +description = """Lua is a powerful, fast, lightweight, embeddable scripting language. + Lua combines simple procedural syntax with powerful data description constructs based + on associative arrays and extensible semantics. Lua is dynamically typed, + runs by interpreting bytecode for a register-based virtual machine, + and has automatic memory management with incremental garbage collection, + making it ideal for configuration, scripting, and rapid prototyping.""" + +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} +toolchainopts = {'pic': True} + +source_urls = ['https://www.%(namelower)s.org/ftp/'] +sources = [SOURCELOWER_TAR_GZ] +checksums = ['9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30'] + +builddependencies = [ + ('binutils', '2.42'), +] +dependencies = [ + ('ncurses', '6.5'), + ('libreadline', '8.2'), +] + + +moduleclass = 'lang' diff --git a/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb b/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb new file mode 100644 index 00000000000..28e596386fd --- /dev/null +++ b/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb @@ -0,0 +1,36 @@ +easyblock = 'ConfigureMake' + +name = 'libgd' +version = '2.3.3' + +homepage = 'https://libgd.github.io' +description = "GD is an open source code library for the dynamic creation of images by programmers." + +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} +toolchainopts = {'pic': True} + +source_urls = ['https://github.com/%(name)s/%(name)s/releases/download/gd-%(version)s/'] +sources = [SOURCELOWER_TAR_GZ] +checksums = ['dd3f1f0bb016edcc0b2d082e8229c822ad1d02223511997c80461481759b1ed2'] + +builddependencies = [ + ('binutils', '2.42'), +] +dependencies = [ + ('fontconfig', '2.15.0'), + ('libjpeg-turbo', '3.0.1'), + ('libpng', '1.6.43'), + ('zlib', '1.3.1'), +] + +configopts = "--with-fontconfig=$EBROOTFONTCONFIG --with-jpeg=$EBROOTLIBJPEGMINTURBO --with-png=$EBROOTLIBPNG --with-zlib=$EBROOTZLIB" + + +sanity_check_paths = { + 'files': ['lib/%(name)s.a', 'lib/%(name)s.so'], + 'dirs': ['bin', 'include'], +} + +sanity_check_commands = ['webpng --help'] + +moduleclass = 'lib' From e5644822f6c8086473968a499955bf0530d1516e Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Wed, 9 Oct 2024 18:55:29 +0200 Subject: [PATCH 2/5] Fix style --- easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb b/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb index 28e596386fd..2c03aa92105 100644 --- a/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb +++ b/easybuild/easyconfigs/l/libgd/libgd-2.3.3-GCCcore-13.3.0.eb @@ -23,8 +23,8 @@ dependencies = [ ('zlib', '1.3.1'), ] -configopts = "--with-fontconfig=$EBROOTFONTCONFIG --with-jpeg=$EBROOTLIBJPEGMINTURBO --with-png=$EBROOTLIBPNG --with-zlib=$EBROOTZLIB" - +configopts = "--with-fontconfig=$EBROOTFONTCONFIG --with-jpeg=$EBROOTLIBJPEGMINTURBO " +configopts += "--with-png=$EBROOTLIBPNG --with-zlib=$EBROOTZLIB" sanity_check_paths = { 'files': ['lib/%(name)s.a', 'lib/%(name)s.so'], From df0790f5535260a6edd4438ac6284494ba8bd442 Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 9 Oct 2024 23:11:09 +0200 Subject: [PATCH 3/5] Update gnuplot-6.0.1-GCCcore-13.3.0.eb --- easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb | 1 - 1 file changed, 1 deletion(-) diff --git a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb index 049c6e4a741..684924b80d1 100644 --- a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb +++ b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb @@ -32,7 +32,6 @@ dependencies = [ preconfigopts = 'autoreconf && export LUA_CFLAGS="-I$EBROOTLUA/include" && export LUA_LIBS="$EBROOTLUA/lib/liblua.a" && ' preconfigopts += ' export LDFLAGS="-Wl,--copy-dt-needed-entries" && ' -#configopts = "--with-qt=qt5 --without-latex --disable-wxwidgets" configopts = "--without-latex --disable-wxwidgets" From ca2fc7f4a43480ca9e5cbc4eb83f0c661182c808 Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Thu, 10 Oct 2024 10:09:33 +0200 Subject: [PATCH 4/5] Fix style --- .../easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb index 684924b80d1..c0f7a2a4d89 100644 --- a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb +++ b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb @@ -30,8 +30,12 @@ dependencies = [ ('Lua', '5.4.7'), ] -preconfigopts = 'autoreconf && export LUA_CFLAGS="-I$EBROOTLUA/include" && export LUA_LIBS="$EBROOTLUA/lib/liblua.a" && ' +preconfigopts = 'autoreconf && ' + +# make sure that right Lua library is used (bypassing pkg-config) +preconfigopts += 'export LUA_CFLAGS="-I$EBROOTLUA/include" && export LUA_LIBS="$EBROOTLUA/lib/liblua.a" && ' preconfigopts += ' export LDFLAGS="-Wl,--copy-dt-needed-entries" && ' + configopts = "--without-latex --disable-wxwidgets" From c454e67956564a6f760c7a5407434ec921cd3a6f Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Thu, 10 Oct 2024 10:22:00 +0200 Subject: [PATCH 5/5] Add comment --- .../easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb index c0f7a2a4d89..e27fc37776f 100644 --- a/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb +++ b/easybuild/easyconfigs/g/gnuplot/gnuplot-6.0.1-GCCcore-13.3.0.eb @@ -34,11 +34,12 @@ preconfigopts = 'autoreconf && ' # make sure that right Lua library is used (bypassing pkg-config) preconfigopts += 'export LUA_CFLAGS="-I$EBROOTLUA/include" && export LUA_LIBS="$EBROOTLUA/lib/liblua.a" && ' + +# fix undefined reference to symbol 'libiconv_open' preconfigopts += ' export LDFLAGS="-Wl,--copy-dt-needed-entries" && ' configopts = "--without-latex --disable-wxwidgets" - sanity_check_paths = { 'files': ['bin/%(name)s'], 'dirs': [],