23 lines
783 B
Python
23 lines
783 B
Python
version = "8.2"
|
|
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="3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35",
|
|
)
|
|
host_deps = ["autoconf", "automake", "binutils", "gcc"]
|
|
deps = [profile["libc"], "ncurses"]
|
|
|
|
configure, build, _ = autotools(
|
|
configure_args=["--with-curses"],
|
|
# Force linking against system ncurses, not readline's internal termcap stub.
|
|
configure_env={"bash_cv_termcap_lib": "ncursesw"},
|
|
)
|
|
|
|
|
|
def install(self):
|
|
# readline overwrites DESTDIR on its own; pass explicitly.
|
|
autotools_install(self, [f"DESTDIR={self.dest_dir}"])
|