23 lines
817 B
Python
23 lines
817 B
Python
version = "8.3"
|
|
revision = 1
|
|
description = "Library for command-line editing"
|
|
license = "GPL-3.0-or-later"
|
|
url = "https://tiswww.case.edu/php/chet/readline/rltop.html"
|
|
source = tarball(
|
|
url=f"https://ftp.gnu.org/gnu/readline/readline-{version}.tar.gz",
|
|
sha256="fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc",
|
|
)
|
|
host_deps = ["autoconf", "automake", "binutils", "gcc"]
|
|
deps = [profile["libc"], "ncurses"]
|
|
|
|
configure, build, _ = autotools(
|
|
configure_args=["--with-curses", "--with-shared-termcap-library"],
|
|
# Force linking against system terminfo, not readline's internal termcap stub.
|
|
configure_env={"bash_cv_termcap_lib": "libtinfo"},
|
|
)
|
|
|
|
|
|
def install(self):
|
|
# readline overwrites DESTDIR on its own; pass explicitly.
|
|
autotools_install(self, [f"DESTDIR={self.dest_dir}"])
|