diff options
| author | Alex Rea | 2010-06-26 15:46:33 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-15 09:36:03 -0700 |
| commit | 3ec50386bdfb91783b991a66136f62d940b65c28 (patch) | |
| tree | 7babe64e3274fbd3baf9a0437673c6173e25e5f1 /Library/Formula | |
| parent | c15002db960e68d0e2fadb2ae5c385758c612397 (diff) | |
| download | homebrew-3ec50386bdfb91783b991a66136f62d940b65c28.tar.bz2 | |
New plowshare.rb based on that from rybesh
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/plowshare.rb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Library/Formula/plowshare.rb b/Library/Formula/plowshare.rb new file mode 100644 index 000000000..ffe7ed3c5 --- /dev/null +++ b/Library/Formula/plowshare.rb @@ -0,0 +1,45 @@ +require 'formula' + +class Plowshare <Formula + head 'http://plowshare.googlecode.com/svn/trunk/' + homepage 'http://code.google.com/p/plowshare' + + depends_on 'recode' + depends_on 'imagemagick' + depends_on 'tesseract' + depends_on 'spidermonkey' + depends_on 'aview' + depends_on 'coreutils' + depends_on 'gnu-sed' + depends_on 'gnu-getopt' + + def patches + DATA + end + + def install + ENV["PREFIX"] = prefix + system "bash setup.sh install" + end +end + + +#This patch makes sure GNUtools are used on OSX. +#gnu-getopt is keg-only hence the backtick expansion. +#These aliases only exist for the duration of plowshare, +#inside the plowshare shells. Normal operation of bash is +#unaffected - getopt will still find the version supplied +#by OSX in other shells, for example. +__END__ +--- a/src/lib.sh ++++ b/src/lib.sh +@@ -1,4 +1,8 @@ + #!/bin/bash ++shopt -s expand_aliases ++alias sed='gsed' ++alias getopt='`brew --prefix gnu-getopt`/bin/getopt' ++alias head='ghead' + # + # This file is part of Plowshare. + # + |
