Create a gist now

Instantly share code, notes, and snippets.

class ShairportSync < Formula
desc "AirTunes emulator. Shairport Sync adds multi-room capability."
homepage "https://github.com/mikebrady/shairport-sync"
url "https://github.com/mikebrady/shairport-sync/archive/2.6.tar.gz"
sha256 "d04036241e5a811240c43a3ddfb05a119a6043e8c5f1f354872a88e6cbdaef07"
head "https://github.com/mikebrady/shairport-sync.git"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "openssl"
depends_on "popt"
depends_on "libsoxr"
depends_on "libao"
depends_on "libdaemon"
depends_on "libconfig"
def install
system "autoreconf", "-fvi"
args = %W[
--with-os-type=darwin
--with-ssl=openssl
--with-dns_sd
--with-ao
--with-soxr
--with-configfiles=no
--with-piddir=#{prefix}
--prefix=#{prefix}
--mandir=#{man}
]
system "./configure", *args
system "make", "install"
end
test do
test_cmd = "#{bin}/shairport-sync -V"
assert_match(/openssl-ao-soxr/, shell_output(test_cmd, 1))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment