summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmjad Kotobi <amjadkotbi@gmail.com>2020-03-12 19:35:30 +0100
committerGitHub <noreply@github.com>2020-03-12 13:35:30 -0500
commited5b10d11fd7fead20703106a0423fc3138e8efe (patch)
treec6c6e5d363dac8bc48ddc56a18aaeccae2840902
parentd87f09cc5edd0127561786011f3ad5e50ac079d1 (diff)
downloadspack-ed5b10d11fd7fead20703106a0423fc3138e8efe.tar.gz
spack-ed5b10d11fd7fead20703106a0423fc3138e8efe.tar.bz2
spack-ed5b10d11fd7fead20703106a0423fc3138e8efe.tar.xz
spack-ed5b10d11fd7fead20703106a0423fc3138e8efe.zip
Add package jblob-3.0 (#15400)
-rw-r--r--var/spack/repos/builtin/packages/jblob/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/jblob/package.py b/var/spack/repos/builtin/packages/jblob/package.py
new file mode 100644
index 0000000000..1aa1738230
--- /dev/null
+++ b/var/spack/repos/builtin/packages/jblob/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Jblob(Package):
+ """
+ The German Climate Computing Center
+ (DKRZ: Deutsches Klimarechenzentrum GmbH)
+ provides a Long Term Archiving Service for large research
+ data sets which are relevant for climate or Earth system research.
+ """
+
+ homepage = "https://cera-www.dkrz.de/WDCC/ui/cerasearch"
+ url = "https://cera-www.dkrz.de/jblob/jblob-3.0.zip"
+
+ maintainers = ['ajkotobi']
+
+ version('3.0', sha256='576b5956358386a8832c6d1d13c410705e54888354a10cfd4f094513458067e4')
+
+ depends_on('java@8:', type='run')
+
+ def setup_run_environment(self, env):
+ env.set('JAVA_HOME', self.spec['java'].prefix)
+
+ def install(self, spec, prefix):
+ filter_file('/opt/jblob-' + self.version, prefix, 'jblob')
+
+ mkdir(prefix.bin)
+ install('jblob', prefix.bin)
+ install_tree('lib', prefix.lib)
+ install_tree('docs', prefix.docs)