summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTyler Funnell <tyler.funnell@gmail.com>2021-10-06 16:42:45 -0400
committerGitHub <noreply@github.com>2021-10-06 20:42:45 +0000
commit60909f7250d0bf256a2f9d0e050f377cf24affc5 (patch)
treed8e2653b6a2da964812a7ce29aa9dd1ef8723be6 /var
parentb787065bdbfe3fcd32c2c853cd29a44eb6f78b9a (diff)
downloadspack-60909f7250d0bf256a2f9d0e050f377cf24affc5.tar.gz
spack-60909f7250d0bf256a2f9d0e050f377cf24affc5.tar.bz2
spack-60909f7250d0bf256a2f9d0e050f377cf24affc5.tar.xz
spack-60909f7250d0bf256a2f9d0e050f377cf24affc5.zip
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 <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fish/package.py16
1 files changed, 13 insertions, 3 deletions
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)