2016-09-29 01:50:18 +00:00
|
|
|
class P11Kit < Formula
|
|
|
|
desc "Library to load and enumerate PKCS#11 modules"
|
|
|
|
homepage "https://p11-glue.freedesktop.org"
|
2016-12-26 05:17:14 +00:00
|
|
|
url "https://github.com/p11-glue/p11-kit/releases/download/0.23.3/p11-kit-0.23.3.tar.gz"
|
|
|
|
sha256 "d487f04dba3f9e8256f53034c59c944ca45fd7b8434c095da6a74079644dcd82"
|
2016-09-29 01:50:18 +00:00
|
|
|
|
2016-09-30 02:44:52 +00:00
|
|
|
bottle do
|
2016-12-26 05:28:57 +00:00
|
|
|
sha256 "5aa16ddaa7bb0c6fcf66122685337e9d98e421c9389fdff2250e6fd7cf4ef352" => :sierra
|
|
|
|
sha256 "ea3948d2d030a226143afb6f0cf63ea7c7ed936078b7984c492e53e4dc05c8ff" => :el_capitan
|
|
|
|
sha256 "122fa200388458776d870d483680f21d8bc755f62db1a87cab30338ab0ab445d" => :yosemite
|
2016-09-30 02:44:52 +00:00
|
|
|
end
|
|
|
|
|
2016-12-29 12:02:49 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/p11-glue/p11-kit.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "gettext" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2016-09-29 01:50:18 +00:00
|
|
|
depends_on "libffi"
|
2016-12-29 12:02:49 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2016-09-29 01:50:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=91602#c1
|
|
|
|
ENV["FAKED_MODE"] = "1"
|
|
|
|
|
2016-12-29 12:02:49 +00:00
|
|
|
if build.head?
|
|
|
|
ENV["NOCONFIGURE"] = "1"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
2016-09-29 01:50:18 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--disable-trust-module",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--with-module-config=#{etc}/pkcs11/modules",
|
|
|
|
"--without-libtasn1"
|
|
|
|
system "make"
|
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/p11-kit", "list-modules"
|
|
|
|
end
|
|
|
|
end
|