Skip to content

Instantly share code, notes, and snippets.

@qwerty12
Created February 6, 2013 23:15
Show Gist options
  • Save qwerty12/4726779 to your computer and use it in GitHub Desktop.
Save qwerty12/4726779 to your computer and use it in GitHub Desktop.
Install a newer version of ldid from homebrew using Matthias Ringwald's work on the Fink version
require 'formula'
class Minimal < Formula
url 'http://ringwald.ch/fink/minimal-e327d27b214753a35b03a89886c82311c96353fa.tar.gz'
md5 '63926a804a44d5c36e8c0036ed653dbb'
end
class Ldid < Formula
homepage 'http://www.saurik.com/id/8'
url 'http://ringwald.ch/fink/ldid-4f4aa9c37a0c26908cafbc5ef58c94814d153415.tar.gz'
version '1.1.4f4aa9'
md5 '22f4d3109de29a93734354b4a403cecd'
def install
Minimal.new.brew { (buildpath/"minimal-e327d27b214753a35b03a89886c82311c96353fa").install Dir['*'] }
ln_s "minimal-e327d27b214753a35b03a89886c82311c96353fa", "minimal"
system "#{ENV.cxx} -I . -o ldid{,.cpp} sha1.c -x c lookup2.c"
bin.install "ldid"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment