30 lines
915 B
Python
30 lines
915 B
Python
version = "8.2"
|
|
revision = 1
|
|
metadata = meta(
|
|
description = "Library for command-line editing",
|
|
license = "GPL-3.0-or-later",
|
|
website = "https://tiswww.case.edu/php/chet/readline/rltop.html",
|
|
)
|
|
source = tarball_source(
|
|
url = f"https://ftp.gnu.org/gnu/readline/readline-{version}.tar.gz",
|
|
sha256 = "3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35",
|
|
strip_components = 1,
|
|
)
|
|
host_deps = ["binutils", "gcc"]
|
|
deps = [options.libc, "ncurses"]
|
|
|
|
configure, build, _ = autotools(
|
|
configure_args = ["--with-curses"],
|
|
configure_env = {
|
|
# Force linking against the system curses; otherwise readline's
|
|
# configure may pick a static libtermcap stub it ships internally.
|
|
"bash_cv_termcap_lib": "ncursesw",
|
|
},
|
|
)
|
|
|
|
# Readline overwrites DESTDIR
|
|
def install(ctx, pkg):
|
|
autotools_install(ctx, pkg, extra_args = [
|
|
"DESTDIR=" + pkg.dest_dir
|
|
])
|