-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rui Chen <[email protected]> Co-authored-by: Carlo Cabrera <[email protected]>
- Loading branch information
1 parent
2e17440
commit 6df0896
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2123,6 +2123,7 @@ nbdime | |
ncc | ||
ncdc | ||
ncdu | ||
ncmpc | ||
ncmpcpp | ||
ncnn | ||
nco | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
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.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 | ||
|
@@ -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 | ||
|
||
|
@@ -46,7 +51,21 @@ class Ncmpc < Formula | |
end | ||
|
||
def install | ||
Check failure on line 53 in Formula/n/ncmpc.rb GitHub Actions / macOS 13-arm64`brew install --verbose --formula --build-bottle ncmpc` failed on macOS Ventura (13) on Apple Silicon!
Check failure on line 53 in Formula/n/ncmpc.rb GitHub Actions / macOS 13-x86_64`brew install --verbose --formula --build-bottle ncmpc` failed on macOS Ventura (13)!
|
||
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1300) | ||
if OS.mac? && (DevelopmentTools.clang_build_version <= 1500) | ||
ENV.prepend_path "PATH", Formula["llvm"].opt_bin | ||
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:fe190100]<std::runtime_error>(std::runtime_error)... | ||
ENV.append "LDFLAGS", <<~EOS | ||
-L#{Formula["llvm"].opt_lib}/c++ | ||
-L#{Formula["llvm"].opt_lib} | ||
-Wl,-rpath,#{Formula["llvm"].opt_lib}/c++ | ||
-Wl,-rpath,#{Formula["llvm"].opt_lib} | ||
EOS | ||
end | ||
|
||
system "meson", "setup", "build", "-Dcolors=false", "-Dnls=enabled", "-Dregex=enabled", *std_meson_args | ||
system "meson", "compile", "-C", "build", "--verbose" | ||
|