blockhash: revision for imagemagick

This commit is contained in:
ilovezfs 2017-01-11 10:00:05 -08:00
parent 4abb9e0498
commit fec254f57d

View file

@ -3,7 +3,7 @@ class Blockhash < Formula
homepage "http://blockhash.io/"
url "https://github.com/commonsmachinery/blockhash/archive/0.1.tar.gz"
sha256 "aef300f39be2cbc1b508af15d7ddb5b851b671b27680d8b7ab1d043cc0369893"
revision 1
revision 2
head "https://github.com/commonsmachinery/blockhash.git"
bottle do
@ -22,6 +22,11 @@ class Blockhash < Formula
end
def install
# ImageMagick 7 compatibility
# Reported 20 Jun 2016 https://github.com/commonsmachinery/blockhash/issues/19
inreplace "blockhash.c", "wand/MagickWand.h",
"ImageMagick-7/MagickWand/MagickWand.h"
system "./waf", "configure", "--prefix=#{prefix}"
system "./waf"
system "./waf", "install"