homebrew-core/Formula/libtomcrypt.rb

29 lines
974 B
Ruby
Raw Normal View History

class Libtomcrypt < Formula
desc "Modular and portable cryptographic toolkit"
2015-06-15 19:55:47 +00:00
# homepage/url down since ~May 2015
homepage "http://libtom.org/?page=features&whatfile=crypt"
url "http://libtom.org/files/crypt-1.17.tar.bz2"
mirror "https://distfiles.macports.org/libtomcrypt/crypt-1.17.tar.bz2"
sha256 "e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116"
2014-07-03 21:00:27 +00:00
bottle do
cellar :any
2015-06-15 21:14:24 +00:00
revision 2
sha256 "ad36e0538d35fe35f71a1c5d7c19945a2800e791911a53bf1168b9bbc6df8db1" => :yosemite
sha256 "108baa1e0008f5967f5dae0f670558bcb0bd679c94deb2d21d335525beda21ac" => :mavericks
sha256 "dd8857ae5f03d3e26c9f741b13522f0e868539264ab9c3dceb26f6019fe1996c" => :mountain_lion
2014-07-03 21:00:27 +00:00
end
2015-06-15 19:55:47 +00:00
depends_on "libtommath"
def install
2015-06-15 19:55:47 +00:00
ENV["DESTDIR"] = prefix
ENV["EXTRALIBS"] = "-ltommath"
2014-05-03 00:34:43 +00:00
ENV.append "CFLAGS", "-DLTM_DESC -DUSE_LTM"
system "make", "library"
2015-06-15 19:55:47 +00:00
include.install Dir["src/headers/*"]
lib.install "libtomcrypt.a"
end
end