blob: 45f26211bc2750686fd26272b9d570ab2b93a169 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 | require 'formula'
class EnginePkcs11 < Formula
  homepage 'https://github.com/OpenSC/OpenSC/wiki/OpenSSL-engine-for-PKCS%2311-modules'
  url 'https://downloads.sourceforge.net/project/opensc/engine_pkcs11/engine_pkcs11-0.1.8.tar.gz'
  sha1 '25f3c29c7f47da5f2c0bec1534aceec9651cfed3'
  head do
    url 'https://github.com/OpenSC/engine_pkcs11.git'
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end
  depends_on 'pkg-config' => :build
  depends_on 'libp11'
  depends_on "openssl"
  def install
    system "./bootstrap" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end
 |