homebrew-core/Formula/gnunet.rb
Jack Nagel 53473b6bf5 Clean up MacOS version method usage
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>
2012-09-10 16:16:54 -05:00

23 lines
657 B
Ruby

require 'formula'
class Gnunet < Formula
homepage 'https://gnunet.org/'
url 'http://ftpmirror.gnu.org/gnunet/gnunet-0.9.3.tar.gz'
mirror 'http://ftp.gnu.org/gnu/gnunet/gnunet-0.9.3.tar.gz'
sha256 '50586ba4f82c4890f191bd79b1bb6504a5e9b9f90371f0c011879f25f9cef15e'
depends_on 'libgcrypt'
depends_on 'libextractor'
depends_on 'curl' if MacOS.version < :lion # needs >= v7.20.1
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
system "#{bin}/gnunet-search", "--version"
end
end