fish: relax ncurses dependency constraints (#18796)

This commit is contained in:
Adam J. Stewart 2020-09-19 16:29:27 -05:00 committed by GitHub
parent fcb4dfc307
commit 36e9c1eba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ class Fish(CMakePackage):
# https://github.com/fish-shell/fish-shell#dependencies-1
depends_on('cmake@3.2:', type='build')
depends_on('ncurses~termlib')
depends_on('ncurses')
depends_on('pcre2@10.21:')
depends_on('gettext')
depends_on('py-sphinx', when='+docs', type='build')
@ -41,6 +41,9 @@ def determine_version(cls, exe):
match = re.search(r'fish, version (\S+)', output)
return match.group(1) if match else None
def setup_build_environment(self, env):
env.append_flags('LDFLAGS', self.spec['ncurses'].libs.link_flags)
def cmake_args(self):
args = [
'-DBUILD_SHARED_LIBS=ON',