Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erlang 27.1 #178020

Merged
merged 2 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Aliases/erlang@27
42 changes: 29 additions & 13 deletions Formula/e/erlang.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class Erlang < Formula
homepage "https://www.erlang.org/"
# Download tarball from GitHub; it is served faster than the official tarball.
# Don't forget to update the documentation resource along with the url!
url "https://github.com/erlang/otp/releases/download/OTP-26.2.5/otp_src_26.2.5.tar.gz"
sha256 "de155c4ad9baab2b9e6c96dbd03bf955575a04dd6feee9c08758beb28484c9f6"
url "https://github.com/erlang/otp/releases/download/OTP-27.1/otp_src_27.1.tar.gz"
sha256 "5e65d421c6afcac05c6ef38ee49d6f87e74227f282a639d32e890f6b6c456ec0"
license "Apache-2.0"

livecheck do
Expand All @@ -13,20 +13,18 @@ class Erlang < Formula
end

bottle do
rebuild 1
sha256 cellar: :any, arm64_sequoia: "bac376cf4cabd3e324aab400dfdd03c8b1c99a9f14785f73b7cb56059c5dea69"
sha256 cellar: :any, arm64_sonoma: "076a5512381aa576496bc0e3e1ebc4c937ede8eab2ed47673cecae482baa3d4c"
sha256 cellar: :any, arm64_ventura: "0cb58c48c04146ced67ee1d9f457674f34b082467d4c516fcf921647f83bda55"
sha256 cellar: :any, sonoma: "229ad05835575a4f72e618ce552a63e23dcf0d9b50052fa1dea8028fc8106f6b"
sha256 cellar: :any, ventura: "e4518dd0a3e65dce26d3b139c81365dfb1039a9856081f6283a537d3167e66fa"
sha256 cellar: :any_skip_relocation, x86_64_linux: "493b0af312f3e8fa6e1c06c06b6bf639ce1157d0798221fd5a982ed318ce34c6"
sha256 cellar: :any, arm64_sequoia: "62a94855de262f5a747e9e3883525311570fb0ec06d559d0fdf75f1f19a0ccb8"
sha256 cellar: :any, arm64_sonoma: "fa97e370efddd7abba00e1db18aaf4e42cf900680a6fbf5dddea41b1112e0634"
sha256 cellar: :any, arm64_ventura: "7dfcfbf05139558b31cda7636933d94afab61de044096b236a661bc01d4f450f"
sha256 cellar: :any, sonoma: "36fa94f6ee1865a839bcf5443f0eeac8ca3d73fb309c5c5d86c109d20b93b25c"
sha256 cellar: :any, ventura: "30deebcf885d2b10ef8799a409abe688ee4ba823c2434cb1be4f9fbd06084a8d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c81799411e83ea0d0b80d1ad0008e27c14eb75fb9f517c44086dcd42a61c3a4b"
end

head do
url "https://github.com/erlang/otp.git", branch: "master"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end

Expand All @@ -35,14 +33,28 @@ class Erlang < Formula
depends_on "wxwidgets" # for GUI apps like observer

uses_from_macos "libxslt" => :build
paulo-ferraz-oliveira marked this conversation as resolved.
Show resolved Hide resolved
uses_from_macos "ncurses"
uses_from_macos "zlib"

on_linux do
depends_on "mesa-glu"
end

resource "html" do
url "https://github.com/erlang/otp/releases/download/OTP-26.2.5/otp_doc_html_26.2.5.tar.gz"
mirror "https://fossies.org/linux/misc/otp_doc_html_26.2.5.tar.gz"
sha256 "7c9c99695f8b0218f655ec154954bac1d70e25fe3d54810cf81590e1eb711e47"
url "https://github.com/erlang/otp/releases/download/OTP-27.1/otp_doc_html_27.1.tar.gz"
mirror "https://fossies.org/linux/misc/otp_doc_html_27.1.tar.gz"
sha256 "b0e6d508449eb00f6dd762f5e8ba6eadd0ea3785c79782a3b68c641996d9d168"
end

# https://github.com/erlang/otp/blob/#{version}/make/ex_doc_link
resource "ex_doc" do
carlocab marked this conversation as resolved.
Show resolved Hide resolved
url "https://github.com/elixir-lang/ex_doc/releases/download/v0.34.1/ex_doc_otp_26"
sha256 "d1e09ef6772132f36903fbb1c13d6972418b74ff2da71ab8e60fa3770fc56ec7"
end

def install
carlocab marked this conversation as resolved.
Show resolved Hide resolved
carlocab marked this conversation as resolved.
Show resolved Hide resolved
ex_doc_url = (buildpath/"make/ex_doc_link").read.strip
odie "`ex_doc` resource needs updating!" if ex_doc_url != resource("ex_doc").url
odie "html resource needs to be updated" if version != resource("html").version

# Unset these so that building wx, kernel, compiler and
Expand Down Expand Up @@ -73,6 +85,10 @@ def install
system "./configure", *std_configure_args, *args
system "make"
system "make", "install"
resource("ex_doc").stage do |r|
(buildpath/"bin").install File.basename(r.url) => "ex_doc"
end
chmod "+x", "bin/ex_doc"

# Build the doc chunks (manpages are also built by default)
ENV.deparallelize { system "make", "docs", "DOC_TARGETS=chunks" }
Expand Down
Loading