homebrew-core/Formula/surfraw.rb
Michael Dippery ee4f65f21a surfraw: Add HEAD build
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-12-12 11:23:04 -08:00

18 lines
569 B
Ruby

require 'formula'
class Surfraw <Formula
url 'http://surfraw.alioth.debian.org/dist/surfraw-2.2.7.tar.gz'
head 'git://git.debian.org/surfraw/surfraw.git'
homepage 'http://surfraw.alioth.debian.org/'
md5 '213010e9b7c8478827e8903530cf7787'
def install
system "./prebuild" if ARGV.build_head?
system "./configure", "--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--with-graphical-browser=open"
system "make"
ENV.j1 # Install using 1 job, or fails on Mac Pro
system "make install"
end
end