2011-01-05 14:09:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ykpers < Formula
|
|
|
|
homepage 'http://code.google.com/p/yubikey-personalization/'
|
2012-12-03 00:20:17 +00:00
|
|
|
url 'http://yubikey-personalization.googlecode.com/files/ykpers-1.9.0.tar.gz'
|
|
|
|
sha1 '25b44ef793ddd00917447b00b71dc3b683cb56ad'
|
2011-01-05 14:09:07 +00:00
|
|
|
|
|
|
|
depends_on 'libyubikey'
|
|
|
|
|
2012-07-29 20:58:47 +00:00
|
|
|
# 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"
|
2012-09-05 04:04:01 +00:00
|
|
|
} unless MacOS.version >= :lion
|
2012-07-29 20:58:47 +00:00
|
|
|
end
|
|
|
|
|
2011-01-05 14:09:07 +00:00
|
|
|
def install
|
|
|
|
libyubikey_prefix = Formula.factory('libyubikey').prefix
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2012-06-15 05:15:01 +00:00
|
|
|
"--with-libyubikey-prefix=#{libyubikey_prefix}",
|
|
|
|
'--with-backend=osx',
|
|
|
|
'--disable-dependency-tracking'
|
2011-01-05 14:09:07 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|