40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
class Cmus < Formula
|
|
desc "Music player with an ncurses based interface"
|
|
homepage "https://cmus.github.io/"
|
|
url "https://github.com/cmus/cmus/archive/v2.7.0.tar.gz"
|
|
sha256 "ad4bbc6828f162d56f7f2d61e60714df8f1006a2000cc7e2b867ba93352997e9"
|
|
head "https://github.com/cmus/cmus.git"
|
|
|
|
bottle do
|
|
sha256 "05f95c40656ece3eb7ebb509af8856c6df0c12085f046053fb1f26e7a803540c" => :yosemite
|
|
sha256 "23fd863afaf026dfa7fcd847db839f549b02da68940195ee47260dd7da90839a" => :mavericks
|
|
sha256 "b5f45b1c9da3401303cabd022ae896bad301659ac6010b95d377cc7509728984" => :mountain_lion
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libao"
|
|
depends_on "mad"
|
|
depends_on "libogg"
|
|
depends_on "libvorbis"
|
|
depends_on "faad2"
|
|
depends_on "flac"
|
|
depends_on "mp4v2"
|
|
depends_on "libcue"
|
|
depends_on "ffmpeg" => :optional
|
|
|
|
# upstream commit to create the config directory if it doesn't exist instead
|
|
# of failing. Remove this when upgrading to >2.7.0
|
|
patch do
|
|
url "https://github.com/cmus/cmus/commit/ce7e936f7161c6304056864c108c94a9a5d96589.diff"
|
|
sha256 "c5bb8aa3a89336a5149ecc3826879d4da3b479bc661bfa819d59f5d6fae7e958"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "prefix=#{prefix}", "mandir=#{man}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/cmus", "--plugins"
|
|
end
|
|
end
|