homebrew-core/Formula/ykpers.rb
Brett Koonce 4c6848aec2 ykpers 1.11.3
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-05 08:48:23 -06:00

26 lines
861 B
Ruby

require 'formula'
class Ykpers < Formula
homepage 'http://code.google.com/p/yubikey-personalization/'
url 'http://yubikey-personalization.googlecode.com/files/ykpers-1.11.3.tar.gz'
sha1 '252c2748e862c3b44fbe4a1d8e04729d40a8accf'
depends_on 'libyubikey'
# Pre-Lion fix, per MacPorts. See:
# https://trac.macports.org/ticket/34910
def patches
{:p0 =>
"https://trac.macports.org/export/96037/trunk/dports/security/ykpers/files/patch-pre-Lion-strnlen.diff"
} unless MacOS.version >= :lion
end
def install
libyubikey_prefix = Formula.factory('libyubikey').prefix
system "./configure", "--prefix=#{prefix}",
"--with-libyubikey-prefix=#{libyubikey_prefix}",
'--with-backend=osx',
'--disable-dependency-tracking'
system "make install"
end
end