Skip to content

Commit 7fac1b2

Browse files
committed
yaws: add patch for erlang 23 compatibility
1 parent 41c8ff4 commit 7fac1b2

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Formula/yaws.rb

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
class Yaws < Formula
22
desc "Webserver for dynamic content (written in Erlang)"
33
homepage "http://yaws.hyber.org"
4-
url "https://github.com/klacke/yaws/archive/yaws-2.0.7.tar.gz"
5-
sha256 "083b1b6be581fdfb66d77a151bbb2fc3897b1b0497352ff6c93c2256ef2b08f6"
6-
revision 1
7-
head "https://github.com/klacke/yaws.git"
4+
revision 2
5+
head "https://github.com/erlyaws/yaws.git"
6+
7+
stable do
8+
url "https://github.com/erlyaws/yaws/archive/yaws-2.0.7.tar.gz"
9+
sha256 "083b1b6be581fdfb66d77a151bbb2fc3897b1b0497352ff6c93c2256ef2b08f6"
10+
11+
# Erlang 23 compatibility
12+
# Remove with the next release. Also remove `WARNINGS_AS_ERRORS=` flag from `make install` call
13+
patch do
14+
url "https://github.com/erlyaws/yaws/compare/c0fd79f17d52628fcec527da7fa3e788c283c445..28eecfd1c65c369de5b4b99cea9407205bbe8f8e.patch?full_index=1"
15+
sha256 "0dbcb92e961ae9dc9d6613436f5d39e0c1b675635cfbeef888e1d2b487add413"
16+
end
17+
end
818

919
bottle do
1020
cellar :any_skip_relocation
@@ -29,7 +39,7 @@ def install
2939
# Ensure pam headers are found on Xcode-only installs
3040
"--with-extrainclude=#{MacOS.sdk_path}/usr/include/security",
3141
"SED=/usr/bin/sed"
32-
system "make", "install"
42+
system "make", "install", "WARNINGS_AS_ERRORS="
3343

3444
cd "applications/yapp" do
3545
system "make"

0 commit comments

Comments
 (0)