2021-04-25 15:29:28 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
|
|
|
|
port=readline
|
2022-04-01 03:02:12 +00:00
|
|
|
version=8.1.2
|
2021-04-25 15:29:28 +00:00
|
|
|
useconfigure=true
|
2022-05-25 10:51:13 +00:00
|
|
|
config_sub_paths=("support/config.sub")
|
2022-01-08 13:32:29 +00:00
|
|
|
use_fresh_config_sub=true
|
2022-04-01 03:02:12 +00:00
|
|
|
files="https://ftpmirror.gnu.org/gnu/readline/readline-${version}.tar.gz readline-${version}.tar.gz 7589a2381a8419e68654a47623ce7dfcb756815c8fee726b98f90bf668af7bc6"
|
2021-07-29 12:57:26 +00:00
|
|
|
auth_type=sha256
|
2022-06-07 22:39:32 +00:00
|
|
|
configopts=(
|
|
|
|
"--disable-static"
|
|
|
|
"--enable-shared"
|
|
|
|
)
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# readline specifies termcap as a dependency in its pkgconfig file, without checking if it exists.
|
|
|
|
# Remove it manually to keep other ports from discarding readline because termcap is supposedly missing.
|
2023-01-08 22:16:04 +00:00
|
|
|
sed_in_place '/^Requires.private:/s/termcap//' "${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig/readline.pc"
|
2022-06-07 22:39:32 +00:00
|
|
|
}
|