aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/engine_pkcs11.rb
diff options
context:
space:
mode:
authorAndrew Childs2013-03-07 15:06:22 +1300
committerJack Nagel2013-03-07 22:51:01 -0600
commit4101c93fff51e4bdcdbfbdce7f13fce20d615ee6 (patch)
tree99c27f4fc7caa45c20abe4646a639ab443c02e36 /Library/Formula/engine_pkcs11.rb
parentadfb2f7aaafdd8ba008a932035fa5bc29d13c5d4 (diff)
downloadhomebrew-4101c93fff51e4bdcdbfbdce7f13fce20d615ee6.tar.bz2
New formula: engine_pkcs11 0.1.8
Closes #18298. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/engine_pkcs11.rb')
-rw-r--r--Library/Formula/engine_pkcs11.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/engine_pkcs11.rb b/Library/Formula/engine_pkcs11.rb
new file mode 100644
index 000000000..cb86dc0c3
--- /dev/null
+++ b/Library/Formula/engine_pkcs11.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class EnginePkcs11 < Formula
+ homepage 'https://github.com/OpenSC/OpenSC/wiki/OpenSSL-engine-for-PKCS%2311-modules'
+ url 'http://sourceforge.net/projects/opensc/files/engine_pkcs11/engine_pkcs11-0.1.8.tar.gz'
+ sha1 '25f3c29c7f47da5f2c0bec1534aceec9651cfed3'
+
+ head 'https://github.com/OpenSC/engine_pkcs11.git'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'libp11'
+
+ if build.head?
+ depends_on :automake
+ depends_on :libtool
+ end
+
+ def install
+ system "./bootstrap" if build.head?
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+end