diff options
| author | Dominyk Tiller | 2015-02-04 20:26:18 +0000 | 
|---|---|---|
| committer | Jack Nagel | 2015-02-07 11:43:30 -0500 | 
| commit | 55b2e0671c68e3d7da9e53e76b2769f67309b52e (patch) | |
| tree | c02d8a6773b178a551dd2d92044ae9c4b227af3b | |
| parent | 7cfcdc48ed828f4d39d23a3dcdb1f69739db140d (diff) | |
| download | homebrew-55b2e0671c68e3d7da9e53e76b2769f67309b52e.tar.bz2 | |
botan 1.10.9
Version bump, deprecated an option in favour of newer syntax, added a
relatively simple test.
Closes #36534.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/botan.rb | 17 | 
1 files changed, 10 insertions, 7 deletions
| diff --git a/Library/Formula/botan.rb b/Library/Formula/botan.rb index a2e485305..1f7658307 100644 --- a/Library/Formula/botan.rb +++ b/Library/Formula/botan.rb @@ -1,10 +1,7 @@ -require "formula" -  class Botan < Formula    homepage "http://botan.randombit.net/" -  url "http://files.randombit.net/botan/Botan-1.10.8.tgz" -  sha1 "078fcb03c9ef0691621eda3ca312ebf08b3890cc" -  revision 1 +  url "http://botan.randombit.net/releases/Botan-1.10.9.tgz" +  sha1 "e1c8e97b214b23931f7dc8aba44306fbeca9055c"    bottle do      sha1 "89d491598019e57540e22089c3c7a3d45a845adc" => :yosemite @@ -12,7 +9,9 @@ class Botan < Formula      sha1 "2efea61b9f63b8344617a90eb4dc0445baab0243" => :mountain_lion    end -  option "enable-debug", "Enable debug build of Botan" +  option "with-debug", "Enable debug build of Botan" + +  deprecated_option "enable-debug" => "with-debug"    depends_on "pkg-config" => :build    depends_on "openssl" @@ -32,13 +31,17 @@ class Botan < Formula        --with-bzip2      ] -    args << "--enable-debug" if build.include? "enable-debug" +    args << "--enable-debug" if build.with? "debug"      system "./configure.py", *args      # A hack to force them use our CFLAGS. MACH_OPT is empty in the Makefile      # but used for each call to cc/ld.      system "make", "install", "MACH_OPT=#{ENV.cflags}"    end + +  test do +    assert_match /lcrypto/, shell_output("#{bin}/botan-config-1.10 --libs") +  end  end  __END__ | 
