|
1 | 1 | class Mpd < Formula
|
2 | 2 | desc "Music Player Daemon"
|
3 | 3 | homepage "https://www.musicpd.org/"
|
| 4 | + url "https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v0.24.1.tar.gz" |
| 5 | + sha256 "d2663a24516a5550d61aa9d175987f1be708732d37e39df5c858c1e2d624f9e3" |
4 | 6 | license "GPL-2.0-or-later"
|
5 |
| - revision 2 |
6 | 7 | head "https://github.com/MusicPlayerDaemon/MPD.git", branch: "master"
|
7 | 8 |
|
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 |
| - |
19 | 9 | bottle do
|
20 | 10 | sha256 cellar: :any, arm64_sequoia: "e75d7e545378317554e51e1c4f7d94cfa75380b00dde5b50a955963b1095857d"
|
21 | 11 | sha256 cellar: :any, arm64_sonoma: "a2d726e27a04e06885974622a1b406a7a74050a447a60bd2ede454ed3dc767a1"
|
@@ -74,15 +64,19 @@ class Mpd < Formula
|
74 | 64 | depends_on "systemd"
|
75 | 65 | end
|
76 | 66 |
|
| 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 | + |
77 | 74 | def install
|
78 | 75 | # mpd specifies -std=gnu++0x, but clang appears to try to build
|
79 | 76 | # that against libstdc++ anyway, which won't work.
|
80 | 77 | # The build is fine with G++.
|
81 | 78 | ENV.libcxx
|
82 | 79 |
|
83 |
| - # https://github.com/MusicPlayerDaemon/MPD/pull/2198 |
84 |
| - inreplace "src/lib/nfs/meson.build", "['>= 4', '< 6']", "['>= 4']" |
85 |
| - |
86 | 80 | args = %W[
|
87 | 81 | -Dcpp_std=c++20
|
88 | 82 | --sysconfdir=#{etc}
|
|
0 commit comments