2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-24 00:26:07 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Links < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://links.twibright.com/'
|
2012-07-12 06:06:46 +00:00
|
|
|
url 'http://links.twibright.com/download/links-2.7.tar.gz'
|
|
|
|
sha1 'e0773f2b23397bcbd08d5a3145d94e446dfb4969'
|
2009-09-24 00:26:07 +00:00
|
|
|
|
2013-02-22 20:15:03 +00:00
|
|
|
depends_on :x11 => :optional
|
|
|
|
|
2009-09-24 00:26:07 +00:00
|
|
|
def install
|
2013-02-22 20:15:03 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--enable-graphics" if build.with? 'x11'
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-09-24 00:26:07 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|