30 lines
860 B
Ruby
30 lines
860 B
Ruby
require 'formula'
|
|
|
|
class Libp11 < Formula
|
|
homepage 'https://github.com/OpenSC/libp11/wiki'
|
|
url 'https://downloads.sourceforge.net/project/opensc/libp11/libp11-0.2.8.tar.gz'
|
|
sha1 '2d1f6dc4200038f55a0cb7e22858f93e484b0724'
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "58fbca51b3aa53a8c1ce65a1af5f825d7d8fb774" => :mavericks
|
|
sha1 "9bf3d942d69e6bdc8f2006478f0ed0769a550885" => :mountain_lion
|
|
sha1 "64e34bd9d896b95b196f04c7c980b2274f16ff8f" => :lion
|
|
end
|
|
|
|
head do
|
|
url 'https://github.com/OpenSC/libp11.git'
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libtool" => :run
|
|
|
|
def install
|
|
system "./bootstrap" if build.head?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|