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