2011-01-05 14:09:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ykpers < Formula
|
2013-04-22 20:54:41 +00:00
|
|
|
homepage 'http://yubico.github.io/yubikey-personalization/'
|
2013-12-05 17:18:36 +00:00
|
|
|
url 'http://yubico.github.io/yubikey-personalization/releases/ykpers-1.14.1.tar.gz'
|
|
|
|
sha1 '5ecc0d6bf9c58bdf825c2d8d158361fc61852ff8'
|
2011-01-05 14:09:07 +00:00
|
|
|
|
|
|
|
depends_on 'libyubikey'
|
2013-06-25 14:27:27 +00:00
|
|
|
depends_on 'json-c' => :recommended
|
|
|
|
depends_on 'pkg-config' => :build
|
2011-01-05 14:09:07 +00:00
|
|
|
|
|
|
|
def install
|
2014-02-26 04:56:23 +00:00
|
|
|
libyubikey_prefix = Formula["libyubikey"].opt_prefix
|
2013-06-30 17:53:46 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-06-15 05:15:01 +00:00
|
|
|
"--with-libyubikey-prefix=#{libyubikey_prefix}",
|
2013-06-30 17:53:46 +00:00
|
|
|
"--with-backend=osx"
|
2013-06-25 14:27:27 +00:00
|
|
|
system "make check"
|
2011-01-05 14:09:07 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|