Skip to content

Commit 7ffe942

Browse files
BrewTestBotdaeho-ro
authored andcommitted
mpd 0.24.1
1 parent c2f5633 commit 7ffe942

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

Formula/m/mpd.rb

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
class Mpd < Formula
22
desc "Music Player Daemon"
33
homepage "https://www.musicpd.org/"
4+
url "https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v0.24.1.tar.gz"
5+
sha256 "d2663a24516a5550d61aa9d175987f1be708732d37e39df5c858c1e2d624f9e3"
46
license "GPL-2.0-or-later"
5-
revision 2
67
head "https://github.com/MusicPlayerDaemon/MPD.git", branch: "master"
78

8-
stable do
9-
url "https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v0.23.17.tar.gz"
10-
sha256 "6fcdc5db284297150734afd9b3d1a5697a29f6297eff1b56379018e31d023838"
11-
12-
# support libnfs 6.0.0, upstream commit ref, https://github.com/MusicPlayerDaemon/MPD/commit/31e583e9f8d14b9e67eab2581be8e21cd5712b47
13-
patch do
14-
url "https://raw.githubusercontent.com/Homebrew/formula-patches/557ad661621fa81b5e6ff92ab169ba40eba58786/mpd/0.23.16-libnfs-6.patch"
15-
sha256 "e0f2e6783fbb92d9850d31f245044068dc0614721788d16ecfa8aacfc5c27ff3"
16-
end
17-
end
18-
199
bottle do
2010
sha256 cellar: :any, arm64_sequoia: "e75d7e545378317554e51e1c4f7d94cfa75380b00dde5b50a955963b1095857d"
2111
sha256 cellar: :any, arm64_sonoma: "a2d726e27a04e06885974622a1b406a7a74050a447a60bd2ede454ed3dc767a1"
@@ -74,15 +64,19 @@ class Mpd < Formula
7464
depends_on "systemd"
7565
end
7666

67+
# Fix to the runtime error on macOS with multiple options
68+
# PR Ref: https://github.com/MusicPlayerDaemon/MPD/pull/2239
69+
patch do
70+
url "https://github.com/MusicPlayerDaemon/MPD/commit/7fefd0b4a9d5a0ce73abd4e4645c49671b1a00d6.patch?full_index=1"
71+
sha256 "21f78ad2c73cea9c71a08764d0adca5689e1014508eed0d01bd5fc796869287c"
72+
end
73+
7774
def install
7875
# mpd specifies -std=gnu++0x, but clang appears to try to build
7976
# that against libstdc++ anyway, which won't work.
8077
# The build is fine with G++.
8178
ENV.libcxx
8279

83-
# https://github.com/MusicPlayerDaemon/MPD/pull/2198
84-
inreplace "src/lib/nfs/meson.build", "['>= 4', '< 6']", "['>= 4']"
85-
8680
args = %W[
8781
-Dcpp_std=c++20
8882
--sysconfdir=#{etc}

0 commit comments

Comments
 (0)