2009-12-27 13:10:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Urlview <Formula
|
2010-09-30 17:35:08 +00:00
|
|
|
url 'http://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz'
|
2009-12-27 13:10:14 +00:00
|
|
|
homepage 'http://packages.debian.org/unstable/misc/urlview'
|
2010-07-31 01:34:51 +00:00
|
|
|
md5 '4f253c82b59136181b1f0bf218ef059d'
|
2010-07-06 20:14:19 +00:00
|
|
|
|
2009-12-27 13:10:14 +00:00
|
|
|
def patches
|
2010-09-30 17:35:08 +00:00
|
|
|
"http://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9-18.1.diff.gz"
|
2009-12-27 13:10:14 +00:00
|
|
|
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"'
|
2010-07-06 20:14:19 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
man1.mkpath
|
2009-12-27 13:10:14 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|