homebrew-core/Formula/plowshare.rb

49 lines
1.2 KiB
Ruby
Raw Normal View History

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/'
url 'http://plowshare.googlecode.com/files/plowshare-snapshot-git20120707.tar.gz'
sha1 'ca7b5eccf817b88584f0b4a6769ab770b2af1e1a'
2012-02-26 16:24:25 +00:00
head 'https://code.google.com/p/plowshare/', :using => :git
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
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.
__END__
--- a/src/core.sh
+++ b/src/core.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'
#
# Common set of functions used by modules
# Copyright (c) 2010 - 2011 Plowshare team