diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-08-13 14:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 14:54:37 +0200 |
commit | 607f2a0c1c12159069208902b2c9ca10ea532256 (patch) | |
tree | 89752c05dc37f54fa13642eb1ef95baf5b2508f0 /var | |
parent | 6cd858316592430dc5c0087d7e61d9eb6a653997 (diff) | |
download | spack-607f2a0c1c12159069208902b2c9ca10ea532256.tar.gz spack-607f2a0c1c12159069208902b2c9ca10ea532256.tar.bz2 spack-607f2a0c1c12159069208902b2c9ca10ea532256.tar.xz spack-607f2a0c1c12159069208902b2c9ca10ea532256.zip |
libtree: add v2.0.0 (#25360)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libtree/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libtree/package.py b/var/spack/repos/builtin/packages/libtree/package.py index 65a124be61..5d5aaa78ab 100644 --- a/var/spack/repos/builtin/packages/libtree/package.py +++ b/var/spack/repos/builtin/packages/libtree/package.py @@ -12,10 +12,11 @@ class Libtree(CMakePackage): homepage = "https://github.com/haampie/libtree" git = "https://github.com/haampie/libtree.git" - url = "https://github.com/haampie/libtree/releases/download/v1.0.3/sources.tar.gz" + url = "https://github.com/haampie/libtree/archive/refs/tags/v2.0.0.tar.gz" maintainers = ['haampie'] version('master', branch='master') + version('2.0.0', sha256='099e85d8ba3c3d849ce05b8ba2791dd25cd042a813be947fb321b0676ef71883') version('1.2.3', sha256='4a912cf97109219fe931942a30579336b6ab9865395447bd157bbfa74bf4e8cf') version('1.2.2', sha256='4ccf09227609869b85a170550b636defcf0b0674ecb0785063b81785b1c29bdd') version('1.2.1', sha256='26791c0f418b93d502879db0e1fd2fd3081b885ad87326611d992a5f8977a9b0') @@ -28,6 +29,12 @@ class Libtree(CMakePackage): version('1.0.4', sha256='b15a54b6f388b8bd8636e288fcb581029f1e65353660387b0096a554ad8e9e45') version('1.0.3', sha256='67ce886c191d50959a5727246cdb04af38872cd811c9ed4e3822f77a8f40b20b') + def url_for_version(self, version): + if version < Version("2.0.0"): + return "https://github.com/haampie/libtree/releases/download/v{0}/sources.tar.gz".format(version) + + return "https://github.com/haampie/libtree/archive/refs/tags/v{0}.tar.gz".format(version) + variant('chrpath', default=False, description='Use chrpath for deployment') variant('strip', default=False, description='Use binutils strip for deployment') |