From 60909f7250d0bf256a2f9d0e050f377cf24affc5 Mon Sep 17 00:00:00 2001 From: Tyler Funnell Date: Wed, 6 Oct 2021 16:42:45 -0400 Subject: fish: adding version 3.3.1 (#26488) * fish: adding version 3.3.1 * adding maintainer * Update var/spack/repos/builtin/packages/fish/package.py Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- var/spack/repos/builtin/packages/fish/package.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/fish/package.py b/var/spack/repos/builtin/packages/fish/package.py index 115149a4a0..874caf86e5 100644 --- a/var/spack/repos/builtin/packages/fish/package.py +++ b/var/spack/repos/builtin/packages/fish/package.py @@ -9,12 +9,14 @@ class Fish(CMakePackage): the rest of the family. """ - homepage = "https://fishshell.com/" - url = "https://github.com/fish-shell/fish-shell/releases/download/3.1.2/fish-3.1.2.tar.gz" - git = "https://github.com/fish-shell/fish-shell.git" + homepage = 'https://fishshell.com/' + url = 'https://github.com/fish-shell/fish-shell/releases/download/3.3.1/fish-3.3.1.tar.xz' + git = 'https://github.com/fish-shell/fish-shell.git' list_url = homepage + maintainers = ['funnell'] version('master', branch='master') + version('3.3.1', sha256='b5b4ee1a5269762cbbe993a4bd6507e675e4100ce9bbe84214a5eeb2b19fae89') version('3.1.2', sha256='d5b927203b5ca95da16f514969e2a91a537b2f75bec9b21a584c4cd1c7aa74ed') version('3.1.0', sha256='e5db1e6839685c56f172e1000c138e290add4aa521f187df4cd79d4eab294368') version('3.0.0', sha256='ea9dd3614bb0346829ce7319437c6a93e3e1dfde3b7f6a469b543b0d2c68f2cf') @@ -41,6 +43,14 @@ class Fish(CMakePackage): match = re.search(r'fish, version (\S+)', output) return match.group(1) if match else None + def url_for_version(self, version): + url = 'https://github.com/fish-shell/fish-shell/releases/download/{0}/fish-{0}.tar.{1}' + if version < Version('3.2.0'): + ext = 'gz' + else: + ext = 'xz' + return url.format(version, ext) + def setup_build_environment(self, env): env.append_flags('LDFLAGS', self.spec['ncurses'].libs.link_flags) -- cgit v1.2.3-60-g2f50