From ab7587c197439e399ec43b61f20b0a9b542d0d76 Mon Sep 17 00:00:00 2001 From: casparl Date: Thu, 7 Nov 2024 17:17:03 +0100 Subject: [PATCH] adding easyconfigs: AladinDesktop-12.060-Java-17.eb --- .../AladinDesktop-12.060-Java-17.eb | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 easybuild/easyconfigs/a/AladinDesktop/AladinDesktop-12.060-Java-17.eb diff --git a/easybuild/easyconfigs/a/AladinDesktop/AladinDesktop-12.060-Java-17.eb b/easybuild/easyconfigs/a/AladinDesktop/AladinDesktop-12.060-Java-17.eb new file mode 100644 index 000000000000..b1144a2b03fc --- /dev/null +++ b/easybuild/easyconfigs/a/AladinDesktop/AladinDesktop-12.060-Java-17.eb @@ -0,0 +1,42 @@ +easyblock = 'Binary' + +name = 'AladinDesktop' +version = '12.060' +versionsuffix = '-Java-%(javaver)s' + +homepage = 'https://aladin.cds.unistra.fr/AladinDesktop/' +description = """Aladin Desktop is the main application of the Aladin Sky Atlas suite. + This application allows the user to visualize and manipulate digitized astronomical images + or full surveys, superimpose entries from astronomical catalogues or databases, and interactively + access related data and information from the Simbad database, the VizieR service and other + archives for all known astronomical objects in the field.""" + +toolchain = SYSTEM + +# For some reason, only the first digit after the dot is included in the download URL +local_maj_min_version = version.split('.') +local_url_version = local_maj_min_version[0] + '.' + local_maj_min_version[1][0] +local_jarname = 'Aladin%s.jar' % local_url_version +source_urls = ['https://aladin.cds.unistra.fr/java/'] +sources = [local_jarname, 'Aladin'] +extract_sources = False + +dependencies = [('Java', '17')] + +install_cmds = [ + 'mkdir -p %%(installdir)s/lib && cp %s %%(installdir)s/lib/' % local_jarname, + 'mkdir -p %(installdir)s/bin && cp Aladin %(installdir)s/bin/', + 'ln -s %%(installdir)s/lib/%s %%(installdir)s/bin/Aladin.jar' % local_jarname +] + +#files_to_copy = [('local_jarname', 'lib'), ('Aladin', 'bin')] + +# The shell script Aladin expects there to be a Aladin.jar in the same dir +# postinstallcmds = ['ln -s lib/%s bin/Aladin.jar'] + +sanity_check_paths = { + 'files': ['bin/Aladin', 'bin/Aladin.jar', 'lib/%s' % local_jarname], + 'dirs': [], +} + +moduleclass = 'tools'