2010-06-26 14:46:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Plowshare < Formula
|
2010-08-21 19:01:45 +00:00
|
|
|
homepage 'http://code.google.com/p/plowshare/'
|
2013-06-10 22:37:07 +00:00
|
|
|
url 'http://plowshare.googlecode.com/files/plowshare3-snapshot-git20130520.c289008.tar.gz'
|
|
|
|
version '3.GIT-c289008'
|
|
|
|
sha1 '4a69918dbf6faa1698ddcf581aeb7c15d829caf2'
|
2012-02-26 16:24:25 +00:00
|
|
|
|
|
|
|
head 'https://code.google.com/p/plowshare/', :using => :git
|
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
|
2012-10-19 15:48:46 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
The default installation of imagemagick does not enable
|
|
|
|
X11 support. plowshare uses the display command which does
|
|
|
|
not work if X11 support is not enabled. To enable:
|
|
|
|
brew remove imagemagick
|
|
|
|
brew install imagemagick --with-x
|
|
|
|
EOS
|
|
|
|
end
|
2010-06-26 14:46:33 +00:00
|
|
|
end
|
|
|
|
|
2012-02-26 16:24:25 +00:00
|
|
|
# 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.
|
2010-06-26 14:46:33 +00:00
|
|
|
__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'
|
|
|
|
#
|
2011-04-04 17:57:58 +00:00
|
|
|
# Common set of functions used by modules
|
|
|
|
# Copyright (c) 2010 - 2011 Plowshare team
|
2010-06-26 14:46:33 +00:00
|
|
|
|