53473b6bf5
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
19 lines
546 B
Ruby
19 lines
546 B
Ruby
require 'formula'
|
|
|
|
class Texi2html < Formula
|
|
homepage 'http://www.nongnu.org/texi2html/'
|
|
url 'http://download.savannah.gnu.org/releases/texi2html/texi2html-1.70.tar.gz'
|
|
sha1 'b3472fb5ef80824177a56a1a37983c13497b23be'
|
|
|
|
keg_only :provided_by_osx unless MacOS.version >= :mountain_lion
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}",
|
|
"--mandir=#{man}", "--infodir=#{info}"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/texi2html", "--help"
|
|
end
|
|
end
|