gflags 2.1.2

Update to latest stable release, change URLs to GitHub, use cmake,
modernize formula.

Closes Homebrew/homebrew#38245.

Signed-off-by: Brett Koonce <koonce@gmail.com>
This commit is contained in:
David Christenson 2015-03-31 16:31:21 -06:00 committed by Brett Koonce
parent 534b6eabe6
commit d72a6d230f

View file

@ -1,12 +1,14 @@
require 'formula'
class Gflags < Formula class Gflags < Formula
homepage 'http://code.google.com/p/google-gflags/' homepage "https://gflags.github.io/gflags/"
url 'https://gflags.googlecode.com/files/gflags-2.0.tar.gz' url "https://github.com/gflags/gflags/archive/v2.1.2.tar.gz"
sha1 'dfb0add1b59433308749875ac42796c41e824908' sha256 "d8331bd0f7367c8afd5fcb5f5e85e96868a00fd24b7276fa5fcee1e5575c2662"
depends_on "cmake" => :build
def install def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" mkdir "buildroot" do
system "make install" system "cmake", "..", *std_cmake_args
system "make", "install"
end
end end
end end