2010-01-11 00:37:09 +00:00
|
|
|
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
|
2010-08-09 23:57:35 +00:00
|
|
|
fails_with_llvm "Bus error in ld on SL 10.6.4"
|
|
|
|
|
2010-02-15 22:51:38 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
2010-01-11 00:37:09 +00:00
|
|
|
system "make"
|
|
|
|
system "make install-strip"
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
rm Dir['contrib/Makefile*']
|
2010-01-11 00:37:09 +00:00
|
|
|
prefix.install 'contrib'
|
|
|
|
|
|
|
|
bash_completion_dir = etc+'bash_completion.d'
|
|
|
|
bash_completion_dir.mkpath
|
2010-07-12 17:34:38 +00:00
|
|
|
ln_sf prefix+'contrib/cdargs-bash.sh', bash_completion_dir+'cdargs-bash.sh'
|
2010-01-11 00:37:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS
|
|
|
|
Support files for bash, tcsh and emacs are located in #{prefix}/contrib.
|
2010-07-12 17:34:38 +00:00
|
|
|
The file for bash is also symlinked to #{etc}/bash_completion.d/cdargs-bash.sh. Source it from
|
2010-01-11 00:37:09 +00:00
|
|
|
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
|