package/ytree: new package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Wed, 4 Sep 2019 21:21:17 +0000 (23:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 15 Sep 2019 21:36:20 +0000 (23:36 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/ytree/Config.in [new file with mode: 0644]
package/ytree/ytree.hash [new file with mode: 0644]
package/ytree/ytree.mk [new file with mode: 0644]

index f2704d8f1a03d102518edc103e358c05c3b56578..4467688779e4ad54d343fe1fd5fb83cda07135d0 100644 (file)
@@ -426,6 +426,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>
index 6423dc5d80efdfb53135e539c4e8fee305fbbcec..ab43543c7f5d45156e77e48cdca9ea099f38c756 100644 (file)
@@ -2180,6 +2180,7 @@ comment "Utilities"
        source "package/which/Config.in"
        source "package/xmlstarlet/Config.in"
        source "package/xxhash/Config.in"
+       source "package/ytree/Config.in"
 endmenu
 
 menu "System tools"
diff --git a/package/ytree/Config.in b/package/ytree/Config.in
new file mode 100644 (file)
index 0000000..4eca9c7
--- /dev/null
@@ -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 (file)
index 0000000..a671279
--- /dev/null
@@ -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 (file)
index 0000000..2d2a694
--- /dev/null
@@ -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))