aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Christenson2015-03-07 01:28:52 -0700
committerXu Cheng2015-03-07 16:56:00 +0800
commite451cb8493133610900921142601b16898bb2f62 (patch)
tree2e6364236366e068b539e6b63f62f4048da7217d /Library
parent2216fec2fbbf66ad11bb7476db5ef9024a1c7af8 (diff)
downloadhomebrew-e451cb8493133610900921142601b16898bb2f62.tar.bz2
chromaprint 1.1
Update to latest stable release, remove patch, use HTTPS on homepage link, modernize formula. Closes #37464. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/chromaprint.rb38
1 files changed, 9 insertions, 29 deletions
diff --git a/Library/Formula/chromaprint.rb b/Library/Formula/chromaprint.rb
index 9463b94c2..b9d99a9a1 100644
--- a/Library/Formula/chromaprint.rb
+++ b/Library/Formula/chromaprint.rb
@@ -1,9 +1,8 @@
-require 'formula'
-
class Chromaprint < Formula
- homepage 'http://acoustid.org/chromaprint'
- url 'https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.0.tar.gz'
- sha1 '919e012af588a7e6fea862b29a30e3a5da67526a'
+ homepage "https://acoustid.org/chromaprint"
+ url "https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.1.tar.gz"
+ sha256 "6b14d7ea4964581b73bd3f8038c8857c01e446421c1ae99cbbf64de26b47cd12"
+
bottle do
cellar :any
sha1 "4cc5cb817710059239610681dfffa91e687e14b0" => :mavericks
@@ -11,34 +10,15 @@ class Chromaprint < Formula
sha1 "93e7e29179d55c4d35c7993fd091c46d7aec622a" => :lion
end
- revision 1
-
- option 'without-examples', "Don't build examples (including fpcalc)"
+ option "without-examples", "Don't build examples (including fpcalc)"
- depends_on 'cmake' => :build
- depends_on 'ffmpeg' if build.with? "examples"
-
- # Upstream patch:
- # https://bitbucket.org/acoustid/chromaprint/commits/d0a8d8bc7c1ad5bda3294836f49184fe34a92454
- patch :DATA
+ depends_on "cmake" => :build
+ depends_on "ffmpeg" if build.with? "examples"
def install
args = std_cmake_args
- args << '-DBUILD_EXAMPLES=ON' if build.with? "examples"
+ args << "-DBUILD_EXAMPLES=ON" if build.with? "examples"
system "cmake", ".", *args
- system "make install"
+ system "make", "install"
end
end
-
-__END__
-diff --git a/src/utils.h b/src/utils.h
-index 47c6b98..76fb240 100644
---- a/src/utils.h
-+++ b/src/utils.h
-@@ -28,6 +28,7 @@
- #include <math.h>
- #include <stddef.h>
- #include <stdint.h>
-+#include <algorithm>
- #include <limits>
- #include <iterator>