2010-06-26 14:46:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Plowshare <Formula
|
|
|
|
head 'http://plowshare.googlecode.com/svn/trunk/'
|
2010-08-21 19:01:45 +00:00
|
|
|
homepage 'http://code.google.com/p/plowshare/'
|
2010-06-26 14:46:33 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
#This patch makes sure GNUtools are used on OSX.
|
2010-06-26 14:46:33 +00:00
|
|
|
#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
|
2010-04-07 05:58:35 +00:00
|
|
|
#unaffected - getopt will still find the version supplied
|
2010-06-26 14:46:33 +00:00
|
|
|
#by OSX in other shells, for example.
|
|
|
|
__END__
|
2011-02-02 22:28:27 +00:00
|
|
|
--- a/src/core.sh
|
|
|
|
+++ b/src/core.sh
|
2010-06-26 14:46:33 +00:00
|
|
|
@@ -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.
|
|
|
|
#
|
|
|
|
|