2013-03-07 02:05:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libp11 < Formula
|
|
|
|
homepage 'https://github.com/OpenSC/libp11/wiki'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/opensc/libp11/libp11-0.2.8.tar.gz'
|
2013-03-07 02:05:30 +00:00
|
|
|
sha1 '2d1f6dc4200038f55a0cb7e22858f93e484b0724'
|
|
|
|
|
2013-09-22 01:47:14 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/OpenSC/libp11.git'
|
2014-05-23 21:17:35 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
2013-09-22 01:47:14 +00:00
|
|
|
end
|
2013-03-07 02:05:30 +00:00
|
|
|
|
2014-05-23 21:17:35 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libtool" => :run
|
2013-03-07 02:05:30 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./bootstrap" if build.head?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|