mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
22 lines
720 B
Bash
Executable file
22 lines
720 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='readline'
|
|
version='8.2'
|
|
useconfigure='true'
|
|
use_fresh_config_sub='true'
|
|
config_sub_paths=(
|
|
'support/config.sub'
|
|
)
|
|
files=(
|
|
"https://ftpmirror.gnu.org/gnu/readline/readline-${version}.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35"
|
|
)
|
|
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.
|
|
sed_in_place '/^Requires.private:/s/termcap//' "${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig/readline.pc"
|
|
}
|