summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorEvgeny Posenitskiy <45995097+q-posev@users.noreply.github.com>2022-07-29 00:05:28 +0200
committerGitHub <noreply@github.com>2022-07-28 15:05:28 -0700
commit519e7e0bb02b8c3dce5ac423507ae646c6cb432d (patch)
treefce4a30630c619b164b44322a50db4adcc57550d /var
parentbc555fd1483a6e46771f9c7268c6ec3665610dff (diff)
downloadspack-519e7e0bb02b8c3dce5ac423507ae646c6cb432d.tar.gz
spack-519e7e0bb02b8c3dce5ac423507ae646c6cb432d.tar.bz2
spack-519e7e0bb02b8c3dce5ac423507ae646c6cb432d.tar.xz
spack-519e7e0bb02b8c3dce5ac423507ae646c6cb432d.zip
New package: trexio (#31769)
* [WIP] first working Spack spec for TREXIO * add patch to prepend -lhdf5_hl to LIBS * Fix spack stype issues * trexio: Fix hashes and hdf5 variant build * trexio: Remove import from Spack * trexio: Fix the isort error * Apply suggestions from code review By @tldahlgren Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trexio/package.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trexio/package.py b/var/spack/repos/builtin/packages/trexio/package.py
new file mode 100644
index 0000000000..9a90b5fe57
--- /dev/null
+++ b/var/spack/repos/builtin/packages/trexio/package.py
@@ -0,0 +1,46 @@
+# Copyright 2013-2022 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.package import *
+
+
+class Trexio(AutotoolsPackage):
+ """TREXIO: TREX I/O library."""
+
+ homepage = "https://trex-coe.github.io/trexio"
+ git = "https://github.com/TREX-CoE/trexio.git"
+ url = "https://github.com/TREX-CoE/trexio/releases/download/v2.2.0/trexio-2.2.0.tar.gz"
+
+ # notify when the package is updated.
+ maintainers = ['q-posev', 'scemama']
+
+ version('master', branch='master')
+ version('2.2.0', sha256='e6340c424fcea18ae0b643a5707e16005c7576ee21a5aac679fbc132d70b36d9')
+ version('2.1.0', sha256='232866c943b98fa8a42d34b55e940f7501634eb5bd426555ba970f5c09775e83')
+ version('2.0.0', sha256='6eeef2da44259718b43991eedae4b20d4f90044e38f3b44a8beea52c38b14cb4')
+
+ variant('hdf5', default=True, description='Enable HDF5 support')
+
+ depends_on('emacs@26.0:', type='build', when="@master")
+ depends_on('python@3.6:', type='build', when="@master")
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on("m4", type='build')
+
+ depends_on("hdf5@1.8:+hl", when='+hdf5')
+
+ # Append -lhdf5_hl to LIBS when hdf5 variant is activated
+ # or use --without-hdf5 option otherwise.
+ def configure_args(self):
+
+ config_args = []
+ if '+hdf5' in self.spec:
+ config_args.append('LIBS=-lhdf5_hl')
+ else:
+ config_args.append('--without-hdf5')
+
+ return config_args