2015-09-26 16:57:15 +00:00
|
|
|
class Glyr < Formula
|
|
|
|
desc "Music related metadata search engine with command-line interface and C API"
|
|
|
|
homepage "https://github.com/sahib/glyr"
|
|
|
|
url "https://github.com/sahib/glyr/archive/1.0.8.tar.gz"
|
|
|
|
sha256 "0f25f291c7d956bc76d097a4a28595b6607ae8f599988018b36769ef3284b29a"
|
|
|
|
|
2015-09-30 18:05:49 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "7b240a58a5d1560d2d161935be8dc14c670098b76398c45afb528a8bc654b2ef" => :el_capitan
|
|
|
|
sha256 "cdf7b602cdf76dad1371363ff5ae75d92d66a2fb683ae4a618d23ac654b1883b" => :yosemite
|
|
|
|
sha256 "c1c0fc54aa3937936c41b92138661c760bcf03f260be7a0486c53f66273b7b20" => :mavericks
|
|
|
|
end
|
|
|
|
|
2015-09-26 16:57:15 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "gettext"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
out = testpath/"cover.txt"
|
|
|
|
system "#{bin}/glyrc", "cover", "-D", "--artist", "Beatles", "--album", "Please Please Me", "-w", out
|
|
|
|
assert_match %r{^https?://}, out.read
|
|
|
|
end
|
|
|
|
end
|