-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
wellington.rb
44 lines (39 loc) 路 2.47 KB
/
wellington.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class Wellington < Formula
desc "Project-focused tool to manage Sass and spriting"
homepage "https://github.com/wellington/wellington"
url "https://github.com/wellington/wellington/archive/refs/tags/v1.0.5.tar.gz"
sha256 "e2379722849cdd8e5f094849290aacba4b789d4d65c733dec859565c728e7205"
license "Apache-2.0"
head "https://github.com/wellington/wellington.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "e4f2c4f169fbf4616d15989a2bfa0bed5447e1cb86be630b546c757ac79713e3"
sha256 cellar: :any_skip_relocation, arm64_ventura: "7141518809cbba8d42a2ff794af1fab87c327748020ae47d148f78ef3fdad0ad"
sha256 cellar: :any_skip_relocation, arm64_monterey: "f247dbeda01b8853ec7c6bc57fe172ffc8f3c65be366623fe11c1583f75a725c"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "27f36c238e415ad9209494e1760b9bcb64fddc52fd45c8b7a4cd218e603e6503"
sha256 cellar: :any_skip_relocation, sonoma: "be1e2e29af21bb7ee97405124bd88c3cd96addfd03029eb16b0e7795766c9817"
sha256 cellar: :any_skip_relocation, ventura: "fb33ee897dbb2534defdf1cd8e37b2cded9404c2c6e3c337cb292cbfec7f3fec"
sha256 cellar: :any_skip_relocation, monterey: "712fce49467b7fdaf6a2113bd61bd35b067dedaa3021914ce1b1654d7e8ea416"
sha256 cellar: :any_skip_relocation, big_sur: "1042d237d74c534c987e63bb1e4eef6ec4070a1c9b080e52283d65c5edd9e40a"
sha256 cellar: :any_skip_relocation, catalina: "9aaeb3a098cbee88efc4e60d1edbfec242d6b2271f821b4d096fe6acb3d16987"
sha256 cellar: :any_skip_relocation, mojave: "a49538429713f2f7b979ab533d4231de84140d9e4e63b5658941552c1c99117a"
sha256 cellar: :any_skip_relocation, high_sierra: "53a61eeebc1e787fa7870437ce089276c5f1daad26430078e988d1b6aa50c7b8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1efe7a942728970650560a933ba9344e79cf5a63e96c18553cef995ab77445ef"
end
# upstream go1.20 support report, https://github.com/wellington/wellington/issues/223
deprecate! date: "2023-08-20", because: :unmaintained
# Bump to 1.20 on the next release, if possible.
depends_on "go@1.19" => :build
def install
ldflags = "-X github.com/wellington/wellington/version.Version=#{version}"
system "go", "build", *std_go_args(output: bin/"wt", ldflags:), "wt/main.go"
end
test do
s = "div { p { color: red; } }"
expected = <<~EOS
/* line 1, stdin */
div p {
color: red; }
EOS
assert_equal expected, pipe_output("#{bin}/wt --comment", s, 0)
end
end