homebrew-core/Formula/gnupg-pkcs11-scd.rb
Nick Vandal ad80c3481e New formula: gnupg-pkcs11-scd
gnupg-pkcs11 is a project to implement a BSD-licensed smart-card daemon
to enable the use of PKCS#11 tokens with GnuPG. gnupg-pkcs11-scd is a
drop-in replacement for the smart-card daemon (scd) shipped with the
next-generation GnuPG (gnupg-2). The daemon interfaces to smart-cards by
using RSA Security Inc. PKCS#11 Cryptographic Token Interface
(Cryptoki).

Project website: http://gnupg-pkcs11.sourceforge.net

Closes Homebrew/homebrew#18446.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-14 14:21:57 -05:00

34 lines
1.1 KiB
Ruby

require 'formula'
class GnupgPkcs11Scd < Formula
homepage 'http://gnupg-pkcs11.sourceforge.net'
url 'https://github.com/alonbl/gnupg-pkcs11-scd/archive/gnupg-pkcs11-scd-0.7.3.tar.gz'
sha1 '60a3d523f5e814c89eeff69b12f9d0adb0d63937'
head 'https://github.com/alonbl/gnupg-pkcs11-scd.git'
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'libgpg-error'
depends_on 'libassuan'
depends_on 'libgcrypt'
depends_on 'pkcs11-helper'
def install
# Compatibility with Automake 1.13+
inreplace 'configure.ac', 'AM_CONFIG_HEADER', 'AC_CONFIG_HEADERS'
system "autoreconf", "--verbose", "--install", "--force"
system "./configure", "--disable-dependency-tracking",
"--with-libgpg-error-prefix=#{HOMEBREW_PREFIX}",
"--with-libassuan-prefix=#{HOMEBREW_PREFIX}",
"--with-libgcrypt-prefix=#{HOMEBREW_PREFIX}",
"--prefix=#{prefix}"
system "make install"
end
test do
system "#{bin}/gnupg-pkcs11-scd --help > /dev/null ; [ $? -eq 1 ]"
end
end