From a27a876f39daa5966418695cc9ecc72ef861d758 Mon Sep 17 00:00:00 2001 From: Pavel Holba Date: Wed, 22 Jan 2025 12:17:58 +0100 Subject: [PATCH] new file: p/PWTK/PWTK-3.2.eb new file: t/tcl-thread/tcl-thread-2.8.8-GCCcore-13.2.0.eb new file: t/tcl-thread/tcl-thread-2.8.8-fix_pkgdir.patch new file: t/tclreadline/tclreadline-2.4.0-GCCcore-13.2.0.eb --- p/PWTK/PWTK-3.2.eb | 45 ++++++++++++++++ .../tcl-thread-2.8.8-GCCcore-13.2.0.eb | 35 ++++++++++++ .../tcl-thread-2.8.8-fix_pkgdir.patch | 15 ++++++ .../tclreadline-2.4.0-GCCcore-13.2.0.eb | 53 +++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100644 p/PWTK/PWTK-3.2.eb create mode 100644 t/tcl-thread/tcl-thread-2.8.8-GCCcore-13.2.0.eb create mode 100644 t/tcl-thread/tcl-thread-2.8.8-fix_pkgdir.patch create mode 100644 t/tclreadline/tclreadline-2.4.0-GCCcore-13.2.0.eb diff --git a/p/PWTK/PWTK-3.2.eb b/p/PWTK/PWTK-3.2.eb new file mode 100644 index 00000000..bb03fba5 --- /dev/null +++ b/p/PWTK/PWTK-3.2.eb @@ -0,0 +1,45 @@ +# IT4Innovations +# PH 2025 + +easyblock = 'Tarball' + +name = 'PWTK' +version = '3.2' + +homepage = 'http://pwtk.ijs.si/' +description = "PWTK (Plane-Wave Toolkit) is a script environment for running and managing plane-wave DFT calculations." + +toolchain = SYSTEM # No compilation required + +source_urls = ['http://pwtk.ijs.si/download/'] +sources = [f'pwtk-{version}.tar.gz'] + +checksums = [ + '51c7bb3ed714293871cb6544fe5a8f65659e7084fc3351721fa0a70e226b5842' # pwtk-3.2.tar.gz +] + +dependencies = [ + ('Tcl', '8.6.13', '-GCCcore-13.2.0', True), + ('tclreadline', '2.4.0', '-GCCcore-13.2.0', True), + ('tcl-thread', '2.8.8', '-GCCcore-13.2.0', True), +] + +sanity_check_paths = { + 'files': ['pwtk'], + 'dirs': [], +} + +preinstall_cmd = 'rm %(builddir)s/pwtk-3.2/doc/pwtk-slides.pdf' # Remove broken symlink + +modextrapaths = {'PATH': ''} + +# Add TCLLIBPATH for runtime environment +modextravars = { + 'TCLLIBPATH': '/apps/all/tclreadline/2.4.0-GCCcore-13.2.0/lib', +} + +sanity_check_commands = [ + 'pwtk --help', +] + +moduleclass = 'tools' diff --git a/t/tcl-thread/tcl-thread-2.8.8-GCCcore-13.2.0.eb b/t/tcl-thread/tcl-thread-2.8.8-GCCcore-13.2.0.eb new file mode 100644 index 00000000..67e5f23c --- /dev/null +++ b/t/tcl-thread/tcl-thread-2.8.8-GCCcore-13.2.0.eb @@ -0,0 +1,35 @@ +# IT4Innovations +# PH 2025 + +easyblock = 'ConfigureMake' + +name = 'tcl-thread' +version = '2.8.8' + +homepage = 'https://openacs.org/xowiki/libthread' +description = """Libthread is the standard Tcl thread library, providing functionality to create and manage threads +in Tcl. It enables event loop-based threads and enhances Tcl applications such as OpenACS, xotcl-core, and others.""" + +toolchain = {'name': 'GCCcore', 'version': '13.2.0'} + +# https://downloads.sourceforge.net/sourceforge/tcl/thread2.8.8.tar.gz +source_urls = ['https://downloads.sourceforge.net/sourceforge/tcl/'] +sources = [f'thread{version}.tar.gz'] +patches = [ + ('tcl-thread-2.8.8-fix_pkgdir.patch') +] + +checksums = [ + '35db93f681317942f31dfa0bddea01a464b1d83ada22db7707a1919ba780f091', # thread2.8.8.tar.gz + '5a1f75edf183be64cf0d07af21693588fff013697e722410407a98c698e6ac10', # tcl-thread-2.8.8-fix_pkgdir.patch +] + +configopts = '--libdir=/apps/all/tcl-thread/2.8.8-GCCcore-13.2.0' + +sanity_check_paths = { + 'files': ['lib/libthread2.8.8.so'], + 'dirs': ['share/man/mann'], +} + +moduleclass = 'tools' + diff --git a/t/tcl-thread/tcl-thread-2.8.8-fix_pkgdir.patch b/t/tcl-thread/tcl-thread-2.8.8-fix_pkgdir.patch new file mode 100644 index 00000000..46c42f69 --- /dev/null +++ b/t/tcl-thread/tcl-thread-2.8.8-fix_pkgdir.patch @@ -0,0 +1,15 @@ +# IT4Innovations +# PH 2025 +fix of PKG_DIR +diff -ruN thread2.8.8.orig/Makefile.in thread2.8.8/Makefile.in +--- thread2.8.8.orig/Makefile.in 2022-11-04 14:16:13.000000000 +0100 ++++ thread2.8.8/Makefile.in 2025-01-21 14:33:33.882740661 +0100 +@@ -81,7 +81,7 @@ + + DESTDIR = + +-PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION) ++PKG_DIR = /lib + pkgdatadir = $(datadir)/$(PKG_DIR) + pkglibdir = $(libdir)/$(PKG_DIR) + pkgincludedir = $(includedir)/$(PKG_DIR) diff --git a/t/tclreadline/tclreadline-2.4.0-GCCcore-13.2.0.eb b/t/tclreadline/tclreadline-2.4.0-GCCcore-13.2.0.eb new file mode 100644 index 00000000..fbdd99c7 --- /dev/null +++ b/t/tclreadline/tclreadline-2.4.0-GCCcore-13.2.0.eb @@ -0,0 +1,53 @@ +# IT4Innovations +# PH 2025 + +easyblock = 'ConfigureMake' + +name = 'tclreadline' +version = '2.4.0' + +homepage = 'https://github.com/flightaware/tclreadline' +description = "tclreadline connects Tcl with GNU readline for interactive scripting." + +toolchain = {'name': 'GCCcore', 'version': '13.2.0'} + +# https://github.com/flightaware/tclreadline/archive/refs/tags/v2.4.0.tar.gz +source_urls = ['https://github.com/flightaware/tclreadline/archive/refs/tags/'] +sources = [f'v{version}.tar.gz'] + +checksums = [ + '306f9a72ef3ad9ff7a8549f1c616edef5365b98bce7e62fdde6e595355c0faee' # v2.4.0.tar.gz +] + + +dependencies = [ + ('Tcl', '8.6.13'), + ('Tk', '8.6.13'), + ('libreadline', '8.2') +] + +builddependencies = [ + ('libtool', '2.4.7'), + ('Automake', '1.16.5'), + ('Autoconf', '2.71'), +] + +preconfigopts = './autogen.sh' + + +configopts = '--with-tcl=/apps/all/Tcl/8.6.13-GCCcore-13.2.0/lib ' +configopts += '--with-tk=/apps/all/Tk/8.6.13-GCCcore-13.2.0/lib ' +configopts += '--with-readline-includes=/apps/all/libreadline/8.2-GCCcore-13.2.0/include/readline ' +configopts += '--enable-tclshrl --enable-wishrl ' + +sanity_check_paths = { + 'files': ['lib/libtclreadline.so','lib/libtclreadline-2.4.0.so','share/man/mann/tclreadline.n'], + 'dirs': ['lib/tclreadline2.4.0'], +} + +sanity_check_commands = [ + 'tclshrl --version', + 'wishrl --version', +] + +moduleclass = 'tools'