aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cryptopp.rb
blob: 3db2f89319ad548f98b18c9329f1902b0de5c017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'formula'

class Cryptopp < Formula
  url 'http://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.1/cryptopp561.zip'
  homepage 'http://www.cryptopp.com/'
  sha1 '31dbb456c21f50865218c57b7eaf4c955a222ba1'
  version '5.6.1'

  def install
    system "make"
    lib.install "libcryptopp.a"
    (include+'cryptopp').install Dir["*.h"]
  end
end
4; => :yosemite sha1 "400280627f03404732bf3db7a5612bfab5fe3876" => :mavericks sha1 "9ac0bc82522ce93b349a71d2f0cfeac4d6501545" => :mountain_lion end depends_on 'readline' depends_on 'openssl' def install # * sets --disable-conio in order to force the use of readline # (conio support not tested) # * working directory in /var/lib/bacula, reasonable place that # matches Debian's location. readline = Formula["readline"].opt_prefix system "./configure", "--prefix=#{prefix}", "--sbindir=#{bin}", "--with-working-dir=#{var}/lib/bacula", "--with-pid-dir=#{HOMEBREW_PREFIX}/var/run", "--enable-client-only", "--disable-conio", "--with-readline=#{readline}" system "make" system "make install" # Ensure var/run exists: (var + 'run').mkpath # Create the working directory: (var + 'lib/bacula').mkpath end end