summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Cooper <gentoo@lakedaemon.net>2012-10-21 21:35:06 -0400
committerJason Cooper <gentoo@lakedaemon.net>2012-10-21 21:35:06 -0400
commitf7aace0f7fb73efd01d4f5a02f962a7952c6c1fb (patch)
tree8ea32832709804573fed19525d3c5b432b9bb61f /app-text/tree/files
parentinitial commit: logan repo (diff)
downloadlogan-f7aace0f7fb73efd01d4f5a02f962a7952c6c1fb.tar.gz
logan-f7aace0f7fb73efd01d4f5a02f962a7952c6c1fb.tar.bz2
logan-f7aace0f7fb73efd01d4f5a02f962a7952c6c1fb.zip
app-text/tree: build on ~x64-macos
Signed-off-by: Jason Cooper <gentoo@lakedaemon.net>
Diffstat (limited to 'app-text/tree/files')
-rw-r--r--app-text/tree/files/tree-Makefile.patch11
-rw-r--r--app-text/tree/files/tree.bashcomp35
2 files changed, 46 insertions, 0 deletions
diff --git a/app-text/tree/files/tree-Makefile.patch b/app-text/tree/files/tree-Makefile.patch
new file mode 100644
index 0000000..a3fce51
--- /dev/null
+++ b/app-text/tree/files/tree-Makefile.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2012-09-29 12:34:12.000000000 -0400
++++ Makefile 2012-09-29 12:34:40.000000000 -0400
+@@ -56,7 +56,7 @@
+ #CC=cc
+ #CFLAGS=-O2 -Wall -fomit-frame-pointer -no-cpp-precomp
+ #LDFLAGS=
+-#OBJS+=strverscmp.o
++OBJS+=strverscmp.o
+
+ # Uncomment for HP/UX:
+ #CC=cc
diff --git a/app-text/tree/files/tree.bashcomp b/app-text/tree/files/tree.bashcomp
new file mode 100644
index 0000000..5c81b10
--- /dev/null
+++ b/app-text/tree/files/tree.bashcomp
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/tree/files/tree.bashcomp,v 1.2 2012/05/27 23:17:52 mr_bones_ Exp $
+
+# 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 :