Skip to content

Commit

Permalink
ncmpc 0.51
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>

Co-authored-by: Carlo Cabrera <github@carlo.cab>
  • Loading branch information
2 people authored and daeho-ro committed Jan 12, 2025
1 parent 2c3e77a commit cb2d7ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2148,6 +2148,7 @@ nbdime
ncc
ncdc
ncdu
ncmpc
ncmpcpp
ncnn
nco
Expand Down
24 changes: 18 additions & 6 deletions Formula/n/ncmpc.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Ncmpc < Formula

Check notice on line 1 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / Linux

Bottle cache hit

Bottle for ncmpc built at d28722d990d (Merge 7bf14c4e270970188b522b73e57c3fcae891e9d2 into 779b0b2d67b788e91d887096c17d29435e5c10c7, 2025-01-12)

Check notice on line 1 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

Bottle cache hit

Bottle for ncmpc built at d28722d990d (Merge 7bf14c4e270970188b522b73e57c3fcae891e9d2 into 779b0b2d67b788e91d887096c17d29435e5c10c7, 2025-01-12)

Check notice on line 1 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Bottle cache hit

Bottle for ncmpc built at d28722d990d (Merge 7bf14c4e270970188b522b73e57c3fcae891e9d2 into 779b0b2d67b788e91d887096c17d29435e5c10c7, 2025-01-12)

Check notice on line 1 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Bottle cache hit

Bottle for ncmpc built at d28722d990d (Merge 7bf14c4e270970188b522b73e57c3fcae891e9d2 into 779b0b2d67b788e91d887096c17d29435e5c10c7, 2025-01-12)

Check notice on line 1 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Bottle cache hit

Bottle for ncmpc built at d28722d990d (Merge 7bf14c4e270970188b522b73e57c3fcae891e9d2 into 779b0b2d67b788e91d887096c17d29435e5c10c7, 2025-01-12)

Check notice on line 1 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Bottle cache hit

Bottle for ncmpc built at d28722d990d (Merge 7bf14c4e270970188b522b73e57c3fcae891e9d2 into 779b0b2d67b788e91d887096c17d29435e5c10c7, 2025-01-12)
desc "Curses Music Player Daemon (MPD) client"
homepage "https://www.musicpd.org/clients/ncmpc/"
url "https://www.musicpd.org/download/ncmpc/0/ncmpc-0.49.tar.xz"
sha256 "65bbec0ede9e6bcf62ac647b0c706485beb2bdd5db70ca8d60103f32f162cf29"
url "https://www.musicpd.org/download/ncmpc/0/ncmpc-0.51.tar.xz"
sha256 "e74be00e69bc3ed1268cafcc87274e78dfbde147f2480ab0aad8260881ec7271"
license "GPL-2.0-or-later"

livecheck do
Expand All @@ -24,19 +24,24 @@ class Ncmpc < Formula
end

depends_on "boost" => :build
depends_on "gettext" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkgconf" => :build
depends_on "gettext"

depends_on "fmt"
depends_on "libmpdclient"
depends_on "pcre2"

uses_from_macos "ncurses"

on_macos do
depends_on "llvm" => :build if DevelopmentTools.clang_build_version <= 1300
depends_on "gettext"
depends_on "llvm" if DevelopmentTools.clang_build_version <= 1500
end

fails_with :clang do
build 1300
build 1500
cause "Requires C++20"
end

Expand All @@ -46,7 +51,14 @@ class Ncmpc < Formula
end

def install
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1300)
if OS.mac? && (DevelopmentTools.clang_build_version <= 1500)
ENV.llvm_clang
# Work around failure mixing newer `llvm` headers with older Xcode's libc++:
# Undefined symbols for architecture arm64:
# "std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
# std::exception_ptr std::make_exception_ptr[abi:ne180100]<std::runtime_error>(std::runtime_error) ...
ENV.prepend_path "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib/"c++"
end

system "meson", "setup", "build", "-Dcolors=false", "-Dnls=enabled", "-Dregex=enabled", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
Expand Down

0 comments on commit cb2d7ca

Please sign in to comment.