homebrew-core/Formula/ncmpc.rb

46 lines
1.4 KiB
Ruby

class Ncmpc < Formula
desc "Curses Music Player Daemon (MPD) client"
homepage "https://www.musicpd.org/clients/ncmpc/"
url "https://www.musicpd.org/download/ncmpc/0/ncmpc-0.40.tar.xz"
sha256 "09fa587caceb96b3de71c57c9b07dba9129824aa256272739ee79542bf70d3dd"
license "GPL-2.0-or-later"
livecheck do
url "https://www.musicpd.org/download/ncmpc/0/"
regex(/href=.*?ncmpc[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
cellar :any
sha256 "7b984d2e6c46fbc3975e09cf35f76d67eff0c40c6c589bb5f0f9d2a7eeddecf3" => :big_sur
sha256 "b0d7f89faa7f1a6a0d39b2e257f8ca0abca93bb6654b69251a3261e2b1fc075b" => :catalina
sha256 "d2bbc8836a5c0cb5380c4698706e30876fad06788771129ad0cf953e0b219f50" => :mojave
sha256 "da45a87cc0e143418c66f468f94f3930c24544b4ef5d22396aa5280d5878dd45" => :high_sierra
end
depends_on "boost" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "gcc" if DevelopmentTools.clang_build_version <= 800
depends_on "gettext"
depends_on "libmpdclient"
depends_on "pcre"
fails_with :clang do
build 800
cause "error: no matching constructor for initialization of 'value_type'"
end
def install
mkdir "build" do
system "meson", *std_meson_args, "-Dcolors=false", "-Dnls=disabled", ".."
system "ninja", "install"
end
end
test do
system bin/"ncmpc", "--help"
end
end