27 lines
810 B
Ruby
27 lines
810 B
Ruby
require 'formula'
|
|
|
|
class Libfreefare < Formula
|
|
desc "API for MIFARE card manipulations"
|
|
homepage 'https://code.google.com/p/libfreefare/'
|
|
url 'https://libfreefare.googlecode.com/files/libfreefare-0.4.0.tar.bz2'
|
|
sha1 '74214069d6443a6a40d717e496320428a114198c'
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "5c480eebc127a8e05a6c2390a0b99823f631e92b" => :yosemite
|
|
sha1 "2c4ab3dfc877588a4780605347e459d03ecfca6a" => :mavericks
|
|
sha1 "3ef841880e81e9839b69ae5ede01e02ff922ac32" => :mountain_lion
|
|
end
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libnfc'
|
|
depends_on "openssl"
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
end
|