Skip to content

Commit 300630d

Browse files
BrewTestBotcho-m
authored andcommitted
grafana 11.5.1
1 parent f791210 commit 300630d

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Formula/g/grafana.rb

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Grafana < Formula
22
desc "Gorgeous metric visualizations and dashboards for timeseries databases"
33
homepage "https://grafana.com"
4-
url "https://github.com/grafana/grafana/archive/refs/tags/v11.4.0.tar.gz"
5-
sha256 "c3a63aade2a86aa360c9b46f4963e60673fc51bb6c54a088d44dfab5a8fb465e"
4+
url "https://github.com/grafana/grafana/archive/refs/tags/v11.5.1.tar.gz"
5+
sha256 "f8f593871c432b300a531ab240fc3946aca5c559108e22e9a657feeb809c8527"
66
license "AGPL-3.0-only"
77
head "https://github.com/grafana/grafana.git", branch: "main"
88

@@ -21,7 +21,8 @@ class Grafana < Formula
2121
end
2222

2323
depends_on "go" => :build
24-
depends_on "node" => :build
24+
depends_on "node@22" => :build
25+
depends_on "yarn" => :build
2526

2627
uses_from_macos "python" => :build, since: :catalina
2728
uses_from_macos "zlib"
@@ -34,25 +35,21 @@ class Grafana < Formula
3435
def install
3536
ENV["NODE_OPTIONS"] = "--max-old-space-size=8000"
3637

37-
ENV["COREPACK_ENABLE_DOWNLOAD_PROMPT"] = "0"
38-
system "corepack", "enable", "--install-directory", buildpath
39-
4038
system "make", "gen-go"
4139
system "go", "run", "build.go", "build"
4240

43-
system buildpath/"yarn", "install"
44-
system buildpath/"yarn", "build"
41+
system "yarn", "install"
42+
system "yarn", "build"
4543

4644
os = OS.kernel_name.downcase
4745
arch = Hardware::CPU.intel? ? "amd64" : Hardware::CPU.arch.to_s
4846
bin.install "bin/#{os}-#{arch}/grafana"
4947
bin.install "bin/#{os}-#{arch}/grafana-cli"
5048
bin.install "bin/#{os}-#{arch}/grafana-server"
5149

52-
(etc/"grafana").mkpath
5350
cp "conf/sample.ini", "conf/grafana.ini.example"
54-
etc.install "conf/sample.ini" => "grafana/grafana.ini"
55-
etc.install "conf/grafana.ini.example" => "grafana/grafana.ini.example"
51+
pkgetc.install "conf/sample.ini" => "grafana.ini"
52+
pkgetc.install "conf/grafana.ini.example"
5653
pkgshare.install "conf", "public", "tools"
5754
end
5855

0 commit comments

Comments
 (0)