Skip to content

Commit

Permalink
adding easyconfigs: AladinDesktop-12.060-Java-17.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
casparl committed Nov 7, 2024
1 parent 4f2a53b commit ab7587c
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit ab7587c

Please sign in to comment.