homebrew-core/Formula/ncmpcpp.rb

61 lines
1.6 KiB
Ruby

class Ncmpcpp < Formula
desc "Ncurses-based client for the Music Player Daemon"
homepage "https://rybczak.net/ncmpcpp/"
url "https://rybczak.net/ncmpcpp/stable/ncmpcpp-0.8.2.tar.bz2"
sha256 "650ba3e8089624b7ad9e4cc19bc1ac6028edb7523cc111fa1686ea44c0921554"
license "GPL-2.0"
revision 12
bottle do
cellar :any
sha256 "f0051216b707aa91bc2345695aa34ea940792e9ed0dc0a5418a75df487418288" => :big_sur
sha256 "7ae07ac91d1c67e3c149bdc8394884d17a90112f363633a8f738f05532fb353c" => :catalina
sha256 "05312e39939ace9e105d8af619dacc55618ed9cee8699dbb33749620cbe38050" => :mojave
sha256 "a59032cc9e89b89941871b50d56d1d115e5eb133014d1d779202e1181fd89d48" => :high_sierra
end
head do
url "https://github.com/ncmpcpp/ncmpcpp.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "boost"
depends_on "fftw"
depends_on "libmpdclient"
depends_on "ncurses"
depends_on "readline"
depends_on "taglib"
def install
ENV.cxx11
ENV.append "LDFLAGS", "-liconv"
ENV.append "BOOST_LIB_SUFFIX", "-mt"
ENV.append "CXXFLAGS", "-D_XOPEN_SOURCE_EXTENDED"
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--enable-clock
--enable-outputs
--enable-unicode
--enable-visualizer
--with-curl
--with-taglib
]
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make", "install"
end
test do
ENV.delete("LC_CTYPE")
assert_match version.to_s, shell_output("#{bin}/ncmpcpp --version")
end
end