mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 01:50:18 +00:00
hstr: add new recipe
hstr is bash and zsh shell history suggest box - easily view, navigate, search and manage your command history. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -759,6 +759,7 @@ RDEPENDS:packagegroup-meta-oe-support ="\
|
|||||||
gpm \
|
gpm \
|
||||||
gsoap \
|
gsoap \
|
||||||
hdf5 \
|
hdf5 \
|
||||||
|
hstr \
|
||||||
htop \
|
htop \
|
||||||
hunspell-dictionaries \
|
hunspell-dictionaries \
|
||||||
hunspell \
|
hunspell \
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
From f3fb4f12fac75efe0d8f1a923ad5992a7433d0db Mon Sep 17 00:00:00 2001
|
||||||
|
From: Changqing Li <changqing.li@windriver.com>
|
||||||
|
Date: Wed, 2 Mar 2022 06:22:15 +0000
|
||||||
|
Subject: [PATCH] Use OE-specific checks for ncurses
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate[oe specific]
|
||||||
|
|
||||||
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
|
---
|
||||||
|
src/include/hstr.h | 2 +-
|
||||||
|
src/include/hstr_curses.h | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/include/hstr.h b/src/include/hstr.h
|
||||||
|
index 5eac881..c47cadb 100644
|
||||||
|
--- a/src/include/hstr.h
|
||||||
|
+++ b/src/include/hstr.h
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
#include <ncurses.h>
|
||||||
|
#else
|
||||||
|
- #include <ncursesw/curses.h>
|
||||||
|
+ #include <curses.h>
|
||||||
|
#endif
|
||||||
|
#include <readline/chardefs.h>
|
||||||
|
#include <signal.h>
|
||||||
|
diff --git a/src/include/hstr_curses.h b/src/include/hstr_curses.h
|
||||||
|
index 8a50ab9..1f081a8 100644
|
||||||
|
--- a/src/include/hstr_curses.h
|
||||||
|
+++ b/src/include/hstr_curses.h
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
#include <ncurses.h>
|
||||||
|
#else
|
||||||
|
-#include <ncursesw/curses.h>
|
||||||
|
+#include <curses.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define color_attr_on(C) if(terminal_has_colors()) { attron(C); }
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
From d5ad538adb9fcbad8a3b4e46f266b668301cb1c4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Changqing Li <changqing.li@windriver.com>
|
||||||
|
Date: Wed, 2 Mar 2022 05:36:48 +0000
|
||||||
|
Subject: [PATCH] configure.ac: Don't use AC_CHECK_FILE
|
||||||
|
|
||||||
|
AC_CHECK_FILE is not suitable for cross-compile, so
|
||||||
|
remove it to fix configure error:
|
||||||
|
cannot check for file existence when cross compiling
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate[oe specific]
|
||||||
|
|
||||||
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
|
---
|
||||||
|
configure.ac | 3 ---
|
||||||
|
1 file changed, 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 775c795..bd99188 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -116,9 +116,6 @@ AC_TYPE_SIZE_T
|
||||||
|
AC_FUNC_MALLOC
|
||||||
|
AC_CHECK_FUNCS([memset strdup strstr])
|
||||||
|
|
||||||
|
-# Bash@Ubuntu@Windows
|
||||||
|
-AC_CHECK_FILE(/tmp/hstr-ms-wsl,AC_DEFINE(__MS_WSL__), [])
|
||||||
|
-
|
||||||
|
# Bash CLI autocomplete
|
||||||
|
AC_ARG_WITH([bash-completion-dir],
|
||||||
|
AS_HELP_STRING([--with-bash-completion-dir[=PATH]],
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
SUMMARY = "bash and zsh shell history suggest box - easily view, navigate, search and manage your command history."
|
||||||
|
HOMEPAGE = "http://dvorka.github.io/hstr/"
|
||||||
|
|
||||||
|
LICENSE = "Apache-2.0"
|
||||||
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
|
||||||
|
|
||||||
|
DEPENDS = "ncurses readline"
|
||||||
|
|
||||||
|
SRC_URI = "https://github.com/dvorka/hstr/releases/download/2.5/hstr-${PV}-tarball.tgz \
|
||||||
|
file://0001-configure.ac-Don-t-use-AC_CHECK_FILE.patch \
|
||||||
|
file://0001-Use-OE-specific-checks-for-ncurses.patch"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/${BPN}"
|
||||||
|
|
||||||
|
SRC_URI[sha256sum] = "44bb6d93ef064536218f8ae5464772861bfccfe364a436397d9f770207cd306d"
|
||||||
|
|
||||||
|
inherit autotools pkgconfig bash-completion
|
||||||
Reference in New Issue
Block a user