5d8175cc98
Upgrade ykpers to version 1.6.4. Add `--disable-dependency-tracking`. Add `--with-backend=osx` to be explicit because that's the default backend and because it might use `libusb`, and it's likely better to be consistent across all installs by using the native osx BE. Tested against the recent libyubikey-1.9 on Lion using clang and llvm from XCode-4.3.3. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
18 lines
603 B
Ruby
18 lines
603 B
Ruby
require 'formula'
|
|
|
|
class Ykpers < Formula
|
|
homepage 'http://code.google.com/p/yubikey-personalization/'
|
|
url 'http://yubikey-personalization.googlecode.com/files/ykpers-1.6.4.tar.gz'
|
|
sha1 '491af38ed3d91548a4d470b2aa3abf88927effef'
|
|
|
|
depends_on 'libyubikey'
|
|
|
|
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
|