Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# do not bell on tab-completion
|
||||
#set bell-style none
|
||||
|
||||
set meta-flag on
|
||||
set input-meta on
|
||||
set convert-meta off
|
||||
set output-meta on
|
||||
|
||||
$if mode=emacs
|
||||
|
||||
# for linux console and RH/Debian xterm
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
"\e[5~": beginning-of-history
|
||||
"\e[6~": end-of-history
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[3~": delete-char
|
||||
"\e[2~": quoted-insert
|
||||
"\e[5C": forward-word
|
||||
"\e[5D": backward-word
|
||||
"\e\e[C": forward-word
|
||||
"\e\e[D": backward-word
|
||||
"\e[1;5C": forward-word
|
||||
"\e[1;5D": backward-word
|
||||
|
||||
# for rxvt
|
||||
"\e[8~": end-of-line
|
||||
|
||||
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
|
||||
"\eOH": beginning-of-line
|
||||
"\eOF": end-of-line
|
||||
|
||||
# for freebsd console
|
||||
"\e[H": beginning-of-line
|
||||
"\e[F": end-of-line
|
||||
$endif
|
||||
@@ -0,0 +1,50 @@
|
||||
[build]
|
||||
type = "autotools"
|
||||
|
||||
[build.flags]
|
||||
configure = [
|
||||
"--disable-static",
|
||||
"--with-curses",
|
||||
]
|
||||
make_vars = [ "SHLIB_LIBS=-lncursesw" ]
|
||||
keep = [ "etc/inputrc" ]
|
||||
build_32 = true
|
||||
configure-lib32 = [
|
||||
"--disable-static",
|
||||
"--with-curses",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
runtime = [
|
||||
"ncurses",
|
||||
"glibc",
|
||||
]
|
||||
|
||||
[dependencies.lib32]
|
||||
runtime = [
|
||||
"lib32-ncurses",
|
||||
"lib32-glibc",
|
||||
]
|
||||
|
||||
[package]
|
||||
description = "set of libraries that offer command-line editing and history capabilities"
|
||||
homepage = "https://www.gnu.org/software/readline/"
|
||||
license = "GPL-3.0-or-Later"
|
||||
name = "readline"
|
||||
version = "8.3"
|
||||
|
||||
[[source]]
|
||||
extract_dir = "$name-$version"
|
||||
sha256 = "fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc"
|
||||
url = "https://mirrors.kernel.org/gnu/readline/readline-8.3.tar.gz"
|
||||
post_extract = [
|
||||
"sed -i '/MV.*old/d' Makefile.in",
|
||||
"sed -i '/{OLDSUFF}/c:' support/shlib-install",
|
||||
"sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf",
|
||||
"sed -e '270a\\ else\\n chars_avail = 1;' -e '288i\\ result = -1;' -i.orig input.c"
|
||||
]
|
||||
post_install = [ "install -Dm644 inputrc $DESTDIR/etc/inputrc" ]
|
||||
|
||||
[[manual_sources]]
|
||||
file = "inputrc"
|
||||
sha256 = "skip"
|
||||
Reference in New Issue
Block a user