From 68a0305e13a4ec7df406dfe10f776ffe43fc49dd Mon Sep 17 00:00:00 2001 From: Justin Stanley Date: Tue, 4 Dec 2018 17:20:10 -0600 Subject: sdsl-lite: new package at 2.1.1 (#10013) --- .../repos/builtin/packages/sdsl-lite/package.py | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 var/spack/repos/builtin/packages/sdsl-lite/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/sdsl-lite/package.py b/var/spack/repos/builtin/packages/sdsl-lite/package.py new file mode 100644 index 0000000000..1f18b7e543 --- /dev/null +++ b/var/spack/repos/builtin/packages/sdsl-lite/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2018 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 SdslLite(Package): + """SDSL - Succinct Data Structure Library + + The Succinct Data Structure Library (SDSL) is a powerful and flexible + C++11 library implementing succinct data structures.""" + + homepage = "https://github.com/simongog/sdsl-lite" + + version('2.1.1', sha256='2f192977b47406ae8992292c7e841ef23d4656bf72f6140540bed53af68e06ed', + expand=False) + + depends_on('cmake', type='build') + depends_on('tar', type='build') + + def url_for_version(self, version): + line = 'https://github.com/simongog/sdsl-lite/releases/download/v{0}/sdsl-lite-{0}.tar.gz.offline.install.gz' + return line.format(version.dotted) + + def install(self, spec, prefix): + # spack will fail to expand the archive on its own due to a link loop + # expand it manually here and run the install helper + + tar = which('tar') + tar('-xvf', self.stage.archive_file) + + with working_dir('sdsl-lite-{0}'.format(spec.version.dotted)): + helper = Executable('./install.sh') + helper(prefix) -- cgit v1.2.3-70-g09d2