mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
rlwrap, a command line wrapper adding readline capabilities to command tools (#6590)
* rlwrap
This commit is contained in:
41
app-misc/rlwrap/patches/rlwrap-0.45.2.patchset
Normal file
41
app-misc/rlwrap/patches/rlwrap-0.45.2.patchset
Normal file
@@ -0,0 +1,41 @@
|
||||
From cf04fb419f6c9f65535da377e713faf42c7835aa Mon Sep 17 00:00:00 2001
|
||||
From: Anarchos <sylvain_kerjean@hotmail.com>
|
||||
Date: Sun, 30 Jan 2022 18:42:39 +0100
|
||||
Subject: [PATCH] Haiku
|
||||
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
src/ptytty.c | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 72e5440..23786d6 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -284,7 +284,7 @@ fi
|
||||
|
||||
|
||||
AC_CHECKING(for pty ranges)
|
||||
-ptys=`echo /dev/pty??`
|
||||
+ptys=`echo /dev/pt/??`
|
||||
pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
|
||||
pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
|
||||
if test x$pch1 != x; then
|
||||
diff --git a/src/ptytty.c b/src/ptytty.c
|
||||
index 4b36a2d..e31e22a 100644
|
||||
--- a/src/ptytty.c
|
||||
+++ b/src/ptytty.c
|
||||
@@ -156,8 +156,8 @@ ptytty_get_pty(int *fd_tty, const char **ttydev)
|
||||
#ifdef PTYS_ARE_SEARCHED
|
||||
{
|
||||
const char *c1, *c2;
|
||||
- char pty_name[] = "/dev/pty??";
|
||||
- char tty_name[] = "/dev/tty??";
|
||||
+ char pty_name[] = "/dev/pt/p?";
|
||||
+ char tty_name[] = "/dev/tt/??";
|
||||
|
||||
# ifndef PTYCHAR1
|
||||
# define PTYCHAR1 "pqrstuvwxyz"
|
||||
--
|
||||
2.30.2
|
||||
|
||||
63
app-misc/rlwrap/rlwrap-0.45.2.recipe
Normal file
63
app-misc/rlwrap/rlwrap-0.45.2.recipe
Normal file
@@ -0,0 +1,63 @@
|
||||
SUMMARY="A small utility to allow the editing of keyboard input for any command"
|
||||
DESCRIPTION="You should consider using rlwrap especially when you need \
|
||||
user-defined completion (by way of completion word lists) and persistent history, \
|
||||
or if you want to program 'special effects' using the filter mechanism."
|
||||
HOMEPAGE="https://github.com/hanslub42/rlwrap"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2000-2022 Hans Lub and others"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/hanslub42/rlwrap/releases/download/v0.45.2/rlwrap-0.45.2.tar.gz"
|
||||
CHECKSUM_SHA256="9f8870deb46e473d21b5db89d709b6497f4ef9fa06d44eebc5f821daa00c8eca"
|
||||
PATCHES="rlwrap-$portVersion.patchset"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]
|
||||
then
|
||||
commandBinDir=$prefix/bin
|
||||
commandSuffix=
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
rlwrap$secondaryArchSuffix = $portVersion
|
||||
cmd:rlwrap$commandSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libreadline$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libreadline$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gawk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make $jobArgs install-strip
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user