From 72b0184963c94951858410909d1df62acd71e9a1 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 16 Mar 2014 21:35:20 -0500 Subject: [PATCH] lbdb: use checksummed patches --- Formula/lbdb.rb | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Formula/lbdb.rb b/Formula/lbdb.rb index adc39143d3a..a11aca5bbcb 100644 --- a/Formula/lbdb.rb +++ b/Formula/lbdb.rb @@ -10,14 +10,21 @@ class Lbdb < Formula head 'https://github.com/tgray/lbdb.git' - def patches - p = [] - if MacOS.version >= :mountain_lion - p << 'https://github.com/chrisbarrett/lbdb/commit/db0440670194568bbfe2137fc063eb30cf26cb2a.diff' - p << 'https://github.com/chrisbarrett/lbdb/commit/b89ac6ee50e2c03c32635269d9818c045b0abb6f.diff' - p << 'https://github.com/chrisbarrett/lbdb/commit/6cbef5feb4fd921deb08eb52b4169647909946ae.diff' + if MacOS.version >= :mountain_lion + patch do + url "https://github.com/chrisbarrett/lbdb/commit/db0440670194568bbfe2137fc063eb30cf26cb2a.diff" + sha1 "8de0fdcfa5cd73a456b150e19cdad572aa8f0d7c" + end + + patch do + url "https://github.com/chrisbarrett/lbdb/commit/b89ac6ee50e2c03c32635269d9818c045b0abb6f.diff" + sha1 "574268f5d7cce1a6dd26e973ff96787c322597a3" + end + + patch do + url "https://github.com/chrisbarrett/lbdb/commit/6cbef5feb4fd921deb08eb52b4169647909946ae.diff" + sha1 "fe7024dc7576e0d885335a4829edf8dde09b22ea" end - p end def install