homebrew-core/Formula/urlview.rb
Charlie Sharpsteen 4f9f0d0bf5 mirror support: Mirrors for kernel.org software
- All Debian software is now mirrored by ftp.us.debian.org.

- LibFFI is mirrored by ftp.sourceware.org.

- All kernel.org software is now mirrored by mirrorservice.org.

Fixes Homebrew/homebrew#7478.
2011-09-19 09:25:02 -07:00

24 lines
818 B
Ruby

require 'formula'
class Urlview < Formula
url 'http://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz'
mirror 'http://ftp.us.debian.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz'
homepage 'http://packages.debian.org/unstable/misc/urlview'
md5 '4f253c82b59136181b1f0bf218ef059d'
def patches
"http://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9-18.1.diff.gz"
end
def install
inreplace 'urlview.man', '/etc/urlview/url_handler.sh', 'open'
inreplace 'urlview.c',
'#define DEFAULT_COMMAND "/etc/urlview/url_handler.sh %s"',
'#define DEFAULT_COMMAND "open %s"'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
man1.mkpath
system "make install"
end
end