homebrew-core/Formula/rubber.rb

27 lines
922 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Rubber < Formula
homepage 'https://launchpad.net/rubber/'
2013-01-28 05:23:42 +00:00
url 'http://launchpad.net/rubber/trunk/1.1/+download/rubber-20100306.tar.gz'
sha1 'cd382a19cc9fc65d114456ec9d6b042dc0e65b53'
2014-03-17 02:35:23 +00:00
# Creates missing .in files and adds them to the configure phase
# otherwise rubber modules are not found after install
patch do
2014-04-26 19:48:32 +00:00
url "https://gist.githubusercontent.com/mgee/370408/raw/484d76d042e936053de41fbbe48f5dbdbd1b71b8/fix_rubber_configure.patch"
2014-03-17 02:35:23 +00:00
sha1 "29173bd22b7ae6216d1255597b6755931df9a33e"
end
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",
"--datadir=#{share}"
system "make"
system "make install"
# Don't need to peg to a specific Python version
2014-04-17 15:15:52 +00:00
inreplace Dir["#{bin}/*"], /^#!.*\/python.*$/, "#!/usr/bin/env python"
end
end