forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requires X11. Similar to https://github.com/easybuilders/easybuild-ea…
…syconfigs/blob/241f97a47c319c7fe1ced8e7bf8ef2b73219f031/easybuild/easyconfigs/m/MATSim/MATSim-15.0-GCCcore-12.3.0-Java-17.eb, we add this at the level of the Java application (i.e. Aladin) and not at the Java runtime itself.
- Loading branch information
casparl
committed
Nov 11, 2024
1 parent
ab7587c
commit ffc34a1
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
easybuild/easyconfigs/a/AladinDesktop/AladinDesktop-12.060-GCCcore-13.2.0-Java-17.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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 = {'name': 'GCCcore', 'version': '13.2.0'} | ||
|
||
# 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/'] | ||
|
||
# The only way to download a specific version from Aladin is to download the jar file (local_jarname) directly | ||
# Thus, we download the Unix shell launcher (Aladin) seperately | ||
sources = [local_jarname, 'Aladin'] | ||
extract_sources = False | ||
|
||
dependencies = [ | ||
('Java', '17', '', SYSTEM), | ||
('X11', '20231019'), | ||
] | ||
|
||
# To install, we put the versioned jar in /lib and the Unix shell launcher in /bin | ||
# However, the unix shell launcher expects an Aladin.jar (without version) in the same folder | ||
# Thus, we create a simlink in bin/Aladin.jar to the versioned Aladin jar file in /lib | ||
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 | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/Aladin', 'bin/Aladin.jar', 'lib/%s' % local_jarname], | ||
'dirs': [], | ||
} | ||
|
||
moduleclass = 'tools' |