2010-04-18 17:59:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Rubber < Formula
|
2010-04-18 17:59:07 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'cd382a19cc9fc65d114456ec9d6b042dc0e65b53'
|
2010-04-18 17:59:07 +00:00
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python
|
|
|
|
|
2010-04-18 17:59:07 +00:00
|
|
|
def patches
|
|
|
|
# Creates missing .in files and adds them to the configure phase
|
|
|
|
# otherwise rubber modules are not found after install
|
2010-11-10 18:16:28 +00:00
|
|
|
"https://gist.github.com/raw/370408/484d76d042e936053de41fbbe48f5dbdbd1b71b8/fix_rubber_configure.patch"
|
2010-04-18 17:59:07 +00:00
|
|
|
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
|
|
|
|
Dir["#{bin}/*"].each do |f|
|
2012-03-21 02:49:36 +00:00
|
|
|
inreplace f, /^#!.*\/python.*$/, "#!/usr/bin/env python"
|
2010-04-18 17:59:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|