libedit: Make sure libedit linkes to the correct terminfo lib from spack (#31870)

This commit is contained in:
Chuck Atkins 2022-08-02 22:49:14 -04:00 committed by GitHub
parent 0462818c2e
commit 2ed03407f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,3 +34,13 @@ class Libedit(AutotoolsPackage):
def url_for_version(self, version):
url = "http://thrysoee.dk/editline/libedit-{0}-{1}.tar.gz"
return url.format(version[-1], version.up_to(-1))
def configure_args(self):
args = ["ac_cv_lib_curses_tgetent=no", "ac_cv_lib_termcap_tgetent=no"]
if "+termlib" in self.spec["ncurses"]:
args.append("ac_cv_lib_ncurses_tgetent=no")
else:
args.append("ac_cv_lib_tinfo_tgetent=no")
return args