From 91ec6d4e789d240782b232fe62a19603fae2a7c7 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 29 Jul 2012 13:58:47 -0700 Subject: ykpers: fix pre-Lion compilation --- Library/Formula/ykpers.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library') diff --git a/Library/Formula/ykpers.rb b/Library/Formula/ykpers.rb index 5e0b67156..04c813d21 100644 --- a/Library/Formula/ykpers.rb +++ b/Library/Formula/ykpers.rb @@ -7,6 +7,14 @@ class Ykpers < Formula 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.lion? + end + def install libyubikey_prefix = Formula.factory('libyubikey').prefix system "./configure", "--prefix=#{prefix}", -- cgit v1.2.3