class Libmusicbrainz < Formula desc "MusicBrainz Client Library" homepage "https://musicbrainz.org/doc/libmusicbrainz" url "https://github.com/metabrainz/libmusicbrainz/releases/download/release-5.1.0/libmusicbrainz-5.1.0.tar.gz" sha256 "6749259e89bbb273f3f5ad7acdffb7c47a2cf8fcaeab4c4695484cef5f4c6b46" bottle do cellar :any sha1 "96390dbcc935eba33bf6908cda20f556991fbf8c" => :yosemite sha1 "b985f402432c3bafa240cd6541c518100fbb5230" => :mavericks sha1 "b336d4eb2c17a1143cefd2838f614ea685f35e34" => :mountain_lion end depends_on "cmake" => :build depends_on "neon" def install neon = Formula["neon"] neon_args = %W[-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib -DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon] system "cmake", ".", *(std_cmake_args + neon_args) system "make", "install" end end