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>
17 lines
565 B
Ruby
17 lines
565 B
Ruby
require 'formula'
|
|
|
|
class Libxmlxx < Formula
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.34/libxml++-2.34.2.tar.bz2'
|
|
homepage 'http://libxmlplusplus.sourceforge.net'
|
|
sha256 '38f20632a711d06166b03a2a92ce71b08130ac30e014805a7052ae3f4c0b15e8'
|
|
|
|
depends_on 'glibmm'
|
|
# LibXML++ can't compile agains the version of LibXML shipped with Leopard
|
|
depends_on 'libxml2' if MacOS.version == :leopard
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|