[1/1] package/ytree: new package
diff mbox series

Message ID 20190904212117.21861-1-bernd.kuhls@t-online.de
State Accepted
Headers show
Series
  • [1/1] package/ytree: new package
Related show

Commit Message

Bernd Kuhls Sept. 4, 2019, 9:21 p.m. UTC
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 DEVELOPERS               |  1 +
 package/Config.in        |  1 +
 package/ytree/Config.in  |  7 +++++++
 package/ytree/ytree.hash |  3 +++
 package/ytree/ytree.mk   | 31 +++++++++++++++++++++++++++++++
 5 files changed, 43 insertions(+)
 create mode 100644 package/ytree/Config.in
 create mode 100644 package/ytree/ytree.hash
 create mode 100644 package/ytree/ytree.mk

Comments

Thomas Petazzoni Sept. 15, 2019, 9:38 p.m. UTC | #1
On Wed,  4 Sep 2019 23:21:17 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:

> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  DEVELOPERS               |  1 +
>  package/Config.in        |  1 +
>  package/ytree/Config.in  |  7 +++++++
>  package/ytree/ytree.hash |  3 +++
>  package/ytree/ytree.mk   | 31 +++++++++++++++++++++++++++++++
>  5 files changed, 43 insertions(+)
>  create mode 100644 package/ytree/Config.in
>  create mode 100644 package/ytree/ytree.hash
>  create mode 100644 package/ytree/ytree.mk

Applied to master, thanks. I however changed its location in menuconfig
from "Text editors and viewers" to "Utilities", as "Text editors and
viewers" didn't seem very appropriate for a file manager. I know "mc"
is in "Text editors and viewers", but it's probably not the right place
either. "Utilities" already contained "ranger", which is another file
manager.

Thanks!

Thomas

Patch
diff mbox series

diff --git a/DEVELOPERS b/DEVELOPERS
index f708891d39..04d1cecad2 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -427,6 +427,7 @@  F:	package/waylandpp/
 F:	package/x11r7/
 F:	package/x264/
 F:	package/x265/
+F:	package/ytree/
 F:	package/znc/
 
 N:	Biagio Montaruli <biagio.hkr@gmail.com>
diff --git a/package/Config.in b/package/Config.in
index f11a10952a..b036be98e0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2275,6 +2275,7 @@  menu "Text editors and viewers"
 	source "package/nano/Config.in"
 	source "package/uemacs/Config.in"
 	source "package/vim/Config.in"
+	source "package/ytree/Config.in"
 endmenu
 
 endmenu
diff --git a/package/ytree/Config.in b/package/ytree/Config.in
new file mode 100644
index 0000000000..4eca9c7e10
--- /dev/null
+++ b/package/ytree/Config.in
@@ -0,0 +1,7 @@ 
+config BR2_PACKAGE_YTREE
+	bool "ytree"
+	select BR2_PACKAGE_NCURSES
+	help
+	  Ytree - a (curses-based) file manager similar to DOS Xtree(tm)
+
+	  https://www.han.de/~werner/ytree.html
diff --git a/package/ytree/ytree.hash b/package/ytree/ytree.hash
new file mode 100644
index 0000000000..a671279558
--- /dev/null
+++ b/package/ytree/ytree.hash
@@ -0,0 +1,3 @@ 
+# Locally computed
+sha256 763e8c2af528174cd738ed8f2eca62579e3edef57ccbd242be7cf181ae15d251  ytree-1.99pl1.tar.gz
+sha256 eb6bf7204569b4fe8eaf9d4dffc57e44047c5efb5deba1b2d99069ddbc99d031  COPYING
diff --git a/package/ytree/ytree.mk b/package/ytree/ytree.mk
new file mode 100644
index 0000000000..2d2a6946f7
--- /dev/null
+++ b/package/ytree/ytree.mk
@@ -0,0 +1,31 @@ 
+################################################################################
+#
+# ytree
+#
+################################################################################
+
+YTREE_VERSION = 1.99pl1
+YTREE_SITE = https://www.han.de/~werner
+YTREE_LICENSE = GPL-2.0
+YTREE_LICENSE_FILES = COPYING
+YTREE_DEPENDENCIES = ncurses
+
+YTREE_CFLAGS = -DCOLOR_SUPPORT $(TARGET_CFLAGS)
+YTREE_LDFLAGS = -lncurses $(TARGET_LDFLAGS)
+
+ifeq ($(BR2_PACKAGE_READLINE),y)
+YTREE_DEPENDENCIES += readline
+YTREE_CFLAGS += -DREADLINE_SUPPORT
+YTREE_LDFLAGS += -lreadline
+endif
+
+define YTREE_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+		CFLAGS="$(YTREE_CFLAGS)" LDFLAGS="$(YTREE_LDFLAGS)"
+endef
+
+define YTREE_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)/usr" install
+endef
+
+$(eval $(generic-package))