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>
This commit is contained in:
Tyler Funnell 2021-10-06 16:42:45 -04:00 committed by GitHub
parent b787065bdb
commit 60909f7250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,12 +9,14 @@ class Fish(CMakePackage):
the rest of the family. the rest of the family.
""" """
homepage = "https://fishshell.com/" homepage = 'https://fishshell.com/'
url = "https://github.com/fish-shell/fish-shell/releases/download/3.1.2/fish-3.1.2.tar.gz" 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" git = 'https://github.com/fish-shell/fish-shell.git'
list_url = homepage list_url = homepage
maintainers = ['funnell']
version('master', branch='master') version('master', branch='master')
version('3.3.1', sha256='b5b4ee1a5269762cbbe993a4bd6507e675e4100ce9bbe84214a5eeb2b19fae89')
version('3.1.2', sha256='d5b927203b5ca95da16f514969e2a91a537b2f75bec9b21a584c4cd1c7aa74ed') version('3.1.2', sha256='d5b927203b5ca95da16f514969e2a91a537b2f75bec9b21a584c4cd1c7aa74ed')
version('3.1.0', sha256='e5db1e6839685c56f172e1000c138e290add4aa521f187df4cd79d4eab294368') version('3.1.0', sha256='e5db1e6839685c56f172e1000c138e290add4aa521f187df4cd79d4eab294368')
version('3.0.0', sha256='ea9dd3614bb0346829ce7319437c6a93e3e1dfde3b7f6a469b543b0d2c68f2cf') version('3.0.0', sha256='ea9dd3614bb0346829ce7319437c6a93e3e1dfde3b7f6a469b543b0d2c68f2cf')
@ -41,6 +43,14 @@ def determine_version(cls, exe):
match = re.search(r'fish, version (\S+)', output) match = re.search(r'fish, version (\S+)', output)
return match.group(1) if match else None 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): def setup_build_environment(self, env):
env.append_flags('LDFLAGS', self.spec['ncurses'].libs.link_flags) env.append_flags('LDFLAGS', self.spec['ncurses'].libs.link_flags)