aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTuk Bredsdorff2010-01-11 01:37:09 +0100
committerAdam Vandenberg2010-01-30 17:43:10 -0800
commit6cd28b4142475f3bb1b6b2263e6c12a70f2711b0 (patch)
tree3628f43aea24d357b264007b4811a40d8c1f4dde /Library/Formula
parent263ec7213f71480a9d67eb53fba46defc177df31 (diff)
downloadhomebrew-6cd28b4142475f3bb1b6b2263e6c12a70f2711b0.tar.bz2
Cdargs 1.35
A tool for quickly navigating the shell with bookmarks. Signed-off-by: Adam Vandenberg <flangy@gmail.com> Made code slightly more idiomatic.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cdargs.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/cdargs.rb b/Library/Formula/cdargs.rb
new file mode 100644
index 000000000..4eb6ed263
--- /dev/null
+++ b/Library/Formula/cdargs.rb
@@ -0,0 +1,29 @@
+require 'formula'
+
+class Cdargs <Formula
+ url 'http://www.skamphausen.de/downloads/cdargs/cdargs-1.35.tar.gz'
+ homepage 'http://www.skamphausen.de/cgi-bin/ska/CDargs'
+ md5 '50be618d67f0b9f2439526193c69c567'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--mandir=#{prefix}/share/man"
+ system "make"
+ system "make install-strip"
+
+ FileUtils.rm Dir.glob('contrib/Makefile*')
+ prefix.install 'contrib'
+
+ bash_completion_dir = etc+'bash_completion.d'
+ bash_completion_dir.mkpath
+ FileUtils.ln_sf prefix+'contrib/cdargs-bash.sh', bash_completion_dir+'cdargs-bash.sh'
+ end
+
+ def caveats; <<-EOS
+Support files for bash, tcsh and emacs are located in #{prefix}/contrib.
+The file for bash is also symlinked to #{etc+'bash_completion.d/cdargs-bash.sh'}. Source it from
+your .bash_profile or .bashrc to get nice aliases and bash completion.
+
+Consult the cdargs man page for more details and instructions.
+ EOS
+ end
+end