summaryrefslogtreecommitdiff
path: root/app-text/tree
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/tree
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/tree')
-rw-r--r--app-text/tree/Manifest6
-rw-r--r--app-text/tree/files/tree.bashcomp34
-rw-r--r--app-text/tree/metadata.xml8
-rw-r--r--app-text/tree/tree-1.7.0.ebuild41
4 files changed, 89 insertions, 0 deletions
diff --git a/app-text/tree/Manifest b/app-text/tree/Manifest
new file mode 100644
index 000000000000..f68a732f50dc
--- /dev/null
+++ b/app-text/tree/Manifest
@@ -0,0 +1,6 @@
+AUX tree.bashcomp 847 SHA256 22225391a08b1a67aa33c60c6ac3801662ff4496af2ef019006e7a35dac910b1 SHA512 8df777721a7974015b5e717d89a4ff8701a2598e227d6cf71077fe498a5bb2a578c96c4667ab80e34b1064e109d38665fb6a4de8f52bb6401445088d5cdca922 WHIRLPOOL cb0da639514bda2e4e501a7d744f101186a48ba69a2b45e6544213c6ebef2e90ebf378387be53c3c64f59e05d672342f269668afa94c0a40c4c00a4ec9ce640d
+DIST tree-1.7.0.tgz 47082 SHA256 6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12 SHA512 b234fb1428ba75da72d7e4aeb24bf961e123332342593e441b29a0baa2270d12bb187d889c179d6463c940c8dce9fe9dffeb4ad3f06cf11f057b83234d7b4b4a WHIRLPOOL 2bec275486ef30075fbe34aea9c96ba3455e328f02a1259e88a9227d1cddda543c1f5670f973ce5a7b9ea96fb9d886598d5008f5ed34db90cd0b5c59402ca5d1
+EBUILD tree-1.7.0.ebuild 1063 SHA256 b4c955c2beb5dad0a8fd4d79a2f623126c159d4db218e7c158a0a025e8ffa715 SHA512 f949ab05513709e1f2f1ac1ac16aa35b29de479dcb3077aeb1ac3ef3704a94fd769ef2bb06b57b0c031245e0defd8742e77a688cd33a2d80d51ecf2515c49cad WHIRLPOOL 495e06ee433c915d7d869c8d53ea132235bc09d3ff6b2b3f924d76e819c387acf6a1c9a5942df6aa3ecbbdd002a81a384ba35e40f1947c3969f364cb0525f733
+MISC ChangeLog 2189 SHA256 5a406b99611ce64a756ebd921351dacf027e40081007346f2d31b723d5f7829d SHA512 4f6aea0c0c0556cc7816807e1009ee647c1828a1137ab24d77afdf35e3fcfc6c23c22d5165c76b7afc13f04f72b7b3659efe97a7af8f1acfe89e8b0de6867da3 WHIRLPOOL 13571ee6d8b7c44a9d7b36b8acf6306aca3ced22268636ce03f016e1b336d66411b6232ea74d5148cb08b23c0ad5997e879f21e62024eaf7c2d2756bd9fdb084
+MISC ChangeLog-2015 12660 SHA256 50c4209b5392dec42818695fa16dedc65b9b2b951dd76057be0fe84000c9292a SHA512 bdc2630b80cf57a1dce3d0d574a470c37ee3c4ab604903e098ac64ba74b289d0baf22a01a3a15cd6ebb405d2e098f08df0745883069be98375cab37188835508 WHIRLPOOL 24e8e1db54157055677ce181d7afe42dd2687826ff4845a98697e7e34b898e35fa179e587cbc33a0f699ca83921a073cf5ec0650c79eecb89cecba974b91c127
+MISC metadata.xml 258 SHA256 ce7b013f070f6e21cfb6b314e4e389150d9e6516b6261d3c779f0aace3d28b34 SHA512 7cab321cbaf600074e669240c5db4a45a146d11bf6e568dc96c135447500d713a8eebc12d5fce5592b55eb36d79130d48b44e27756ad5a7ace097d915b9851d2 WHIRLPOOL 60198ed362a2e09f31b51427c7316266fcf220691cdfbb663af5557f70460cb3a8ae84d4535fdcb09eba85d848e86219030ef4a25bdeb279bd5951c360f36492
diff --git a/app-text/tree/files/tree.bashcomp b/app-text/tree/files/tree.bashcomp
new file mode 100644
index 000000000000..fed493575ea2
--- /dev/null
+++ b/app-text/tree/files/tree.bashcomp
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# bash command-line completion for tree
+# Author: Aaron Walker <ka0ttic@gentoo.org>
+
+_tree() {
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="-a -d -l -f -i -q -N -p -u -g -s -D -F -r -t -x -L -A
+ -S -n -C -P -I -H -T -R -o --inodes --device --noreport --nolinks
+ --dirsfirst --charset --help"
+
+ if [[ ${cur} == -* ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ fi
+
+ case "${prev}" in
+ -L|-P|-I|-H|-T|--charset|--help)
+ ;;
+ -o)
+ _filedir
+ ;;
+ *)
+ _filedir -d
+ ;;
+ esac
+}
+complete -o filenames -F _tree tree
+
+# vim: set ft=sh tw=80 sw=4 et :
diff --git a/app-text/tree/metadata.xml b/app-text/tree/metadata.xml
new file mode 100644
index 000000000000..b8a4550367f9
--- /dev/null
+++ b/app-text/tree/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mr_bones_@gentoo.org</email>
+ <name>Michael Sterrett</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-text/tree/tree-1.7.0.ebuild b/app-text/tree/tree-1.7.0.ebuild
new file mode 100644
index 000000000000..2eb6dc1b99f9
--- /dev/null
+++ b/app-text/tree/tree-1.7.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs flag-o-matic bash-completion-r1
+
+DESCRIPTION="Lists directories recursively, and produces an indented listing of files"
+HOMEPAGE="http://mama.indstate.edu/users/ice/tree/"
+SRC_URI="ftp://mama.indstate.edu/linux/tree/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="!=sci-biology/meme-4.8.1"
+DEPEND=""
+
+src_prepare() {
+ sed -i -e 's:LINUX:__linux__:' tree.c || die
+ mv doc/tree.1.fr doc/tree.fr.1
+ if use !elibc_glibc ; then
+ # 433972, also previously done only for elibc_uclibc
+ sed -i -e '/^OBJS=/s/$/ strverscmp.o/' Makefile || die
+ fi
+}
+
+src_compile() {
+ append-lfs-flags
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin tree
+ doman doc/tree*.1
+ dodoc CHANGES README*
+ newbashcomp "${FILESDIR}"/${PN}.bashcomp ${PN}
+}