* add editline
This commit is contained in:
parent
97cd46048e
commit
f599c137c5
14
editline/.SRCINFO
Normal file
14
editline/.SRCINFO
Normal file
@ -0,0 +1,14 @@
|
||||
pkgbase = editline
|
||||
pkgdesc = A readline() replacement for UNIX without termcap (ncurses)
|
||||
pkgver = 1.17.1
|
||||
pkgrel = 3
|
||||
url = http://troglobit.com/editline.html
|
||||
install = editline.install
|
||||
arch = x86_64
|
||||
license = BSD
|
||||
depends = glibc
|
||||
provides = libeditline.so
|
||||
source = editline-1.17.1.tar.gz::https://github.com/troglobit/editline/archive/1.17.1.tar.gz
|
||||
sha512sums = 6fd8951a490e0a3f30bb20d775036f622e583042d6dc315d657bb9fdad76b3f4e219290f24ab497209d6143a56dd1d227152ba0c40e7912b8a443ab50f9b05dd
|
||||
|
||||
pkgname = editline
|
3
editline/.nvchecker.toml
Normal file
3
editline/.nvchecker.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[editline]
|
||||
source = "git"
|
||||
git = "https://github.com/troglobit/editline.git"
|
44
editline/PKGBUILD
Normal file
44
editline/PKGBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
|
||||
# Contributor: Immae <ismael.bouya@normalesup.org>
|
||||
|
||||
pkgname=editline
|
||||
pkgver=1.17.1
|
||||
pkgrel=3
|
||||
pkgdesc='A readline() replacement for UNIX without termcap (ncurses)'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url='http://troglobit.com/editline.html'
|
||||
license=('BSD')
|
||||
depends=('glibc')
|
||||
provides=('libeditline.so')
|
||||
install="$pkgname.install"
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/troglobit/$pkgname/archive/$pkgver.tar.gz"
|
||||
editline-1.17.1-autoconf-2.72.patch)
|
||||
sha512sums=('6fd8951a490e0a3f30bb20d775036f622e583042d6dc315d657bb9fdad76b3f4e219290f24ab497209d6143a56dd1d227152ba0c40e7912b8a443ab50f9b05dd'
|
||||
'5ae1dcc04d0606c14447ba76507f21d95e318c09b11c87b3dfdc1e44bc93b28192f46a58eff5379ef9d9bd4333fff6284b87497313e4add3ed3ab917df97561a')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
patch -Np1 -i "$srcdir"/editline-1.17.1-autoconf-2.72.patch
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
build () {
|
||||
cd "$pkgname-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# avoid libedit conflict
|
||||
mv "$pkgdir"/usr/share/man/man3/editline{,-troglobit}.3
|
||||
|
||||
# license
|
||||
install -Dm0644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
|
||||
# additional documentation
|
||||
cp -vrt "$pkgdir/usr/share/doc/$pkgname" docs
|
||||
}
|
89
editline/editline-1.17.1-autoconf-2.72.patch
Normal file
89
editline/editline-1.17.1-autoconf-2.72.patch
Normal file
@ -0,0 +1,89 @@
|
||||
From f444a316f5178b8e20fe31e7b2d979e651da077e Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyich@gmail.com>
|
||||
Date: Sat, 23 Dec 2023 19:12:42 +0000
|
||||
Subject: [PATCH 1/2] configure.ac: fix `autoconf-2.72` compatibility
|
||||
|
||||
`autoconf-2.72` slightly changed `AS_IF`/`AC_CHECL_LIB` definitions and
|
||||
exposed the bug of missng quoting around the arguments:
|
||||
|
||||
editline> ./configure: line 13944: syntax error near unexpected token `;;'
|
||||
editline> ./configure: line 13944: ` ;;'
|
||||
|
||||
The change adds quoting as suggested by https://savannah.gnu.org/support/index.php?110990
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 880f6f1..3fe0410 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -89,7 +89,7 @@ AS_IF([test "x$enable_terminal_bell" = "xyes"],
|
||||
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
|
||||
|
||||
# Check for a termcap compatible library if enabled
|
||||
-AS_IF([test "x$enable_termcap" = "xyes"],
|
||||
+AS_IF([test "x$enable_termcap" = "xyes"], [
|
||||
AC_DEFINE(CONFIG_USE_TERMCAP, 1, [Define to use the termcap library for terminal size.])
|
||||
AC_CHECK_LIB(terminfo, tgetent, , [
|
||||
AC_CHECK_LIB(termcap, tgetent, , [
|
||||
@@ -100,7 +100,7 @@ AS_IF([test "x$enable_termcap" = "xyes"],
|
||||
])
|
||||
])
|
||||
])
|
||||
- ]))
|
||||
+ ])])
|
||||
|
||||
# Generate all files
|
||||
AC_OUTPUT
|
||||
|
||||
From 2b788be1c8cd7d100da867255ad77d3b43260901 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyich@gmail.com>
|
||||
Date: Sat, 23 Dec 2023 19:17:19 +0000
|
||||
Subject: [PATCH 2/2] configure.ac: add second parameter quoting around the
|
||||
rest of AS_IF for consistency
|
||||
|
||||
---
|
||||
configure.ac | 24 ++++++++++++------------
|
||||
1 file changed, 12 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 3fe0410..2a01fad 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -68,23 +68,23 @@ AC_ARG_ENABLE([examples],
|
||||
#
|
||||
# Check what features have been enabled
|
||||
#
|
||||
-AS_IF([test "x$enable_unique_history" != "xno"],
|
||||
- AC_DEFINE(CONFIG_UNIQUE_HISTORY, 1, [Define to skip duplicate lines in the scrollback history.]))
|
||||
+AS_IF([test "x$enable_unique_history" != "xno"], [
|
||||
+ AC_DEFINE(CONFIG_UNIQUE_HISTORY, 1, [Define to skip duplicate lines in the scrollback history.])])
|
||||
|
||||
-AS_IF([test "x$enable_terminal_bell" != "xno"],
|
||||
- AC_DEFINE(CONFIG_ANSI_ARROWS, 1, [Define to include ANSI arrow keys support.]))
|
||||
+AS_IF([test "x$enable_terminal_bell" != "xno"], [
|
||||
+ AC_DEFINE(CONFIG_ANSI_ARROWS, 1, [Define to include ANSI arrow keys support.])])
|
||||
|
||||
-AS_IF([test "x$enable_eof" != "xno"],
|
||||
- AC_DEFINE(CONFIG_EOF, 1, [Define to enable EOF (Ctrl-D) key.]))
|
||||
+AS_IF([test "x$enable_eof" != "xno"], [
|
||||
+ AC_DEFINE(CONFIG_EOF, 1, [Define to enable EOF (Ctrl-D) key.])])
|
||||
|
||||
-AS_IF([test "x$enable_sigint" != "xno"],
|
||||
- AC_DEFINE(CONFIG_SIGINT, 1, [Define to enable SIGINT (Ctrl-C) key.]))
|
||||
+AS_IF([test "x$enable_sigint" != "xno"], [
|
||||
+ AC_DEFINE(CONFIG_SIGINT, 1, [Define to enable SIGINT (Ctrl-C) key.])])
|
||||
|
||||
-AS_IF([test "x$enable_sigstop" = "xyes"],
|
||||
- AC_DEFINE(CONFIG_SIGSTOP, 1, [Define to enable SIGSTOP (Ctrl-Z) key.]))
|
||||
+AS_IF([test "x$enable_sigstop" = "xyes"], [
|
||||
+ AC_DEFINE(CONFIG_SIGSTOP, 1, [Define to enable SIGSTOP (Ctrl-Z) key.])])
|
||||
|
||||
-AS_IF([test "x$enable_terminal_bell" = "xyes"],
|
||||
- AC_DEFINE(CONFIG_TERMINAL_BELL, 1, [Define to enable terminal bell on completion.]))
|
||||
+AS_IF([test "x$enable_terminal_bell" = "xyes"], [
|
||||
+ AC_DEFINE(CONFIG_TERMINAL_BELL, 1, [Define to enable terminal bell on completion.])])
|
||||
|
||||
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
|
||||
|
8
editline/editline.install
Normal file
8
editline/editline.install
Normal file
@ -0,0 +1,8 @@
|
||||
post_install() {
|
||||
cat <<EOF
|
||||
|
||||
The man page has been renamed to editline-troglobit
|
||||
to avoid conflicting with libedit's man page.
|
||||
|
||||
EOF
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user