Skip to content

Commit 9bea601

Browse files
committed
add fish beta details
1 parent 61d2961 commit 9bea601

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Formula/fish.rb

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
class Fish < Formula
2+
desc "User-friendly command-line shell for UNIX-like operating systems"
3+
homepage "https://fishshell.com"
4+
url "https://github.com/fish-shell/fish-shell/releases/download/4.0.1/fish-4.0b1.tar.xz"
5+
sha256 "534334e10f85722214e9daff82a57cc3501235523f16f8f131c2344e4ec98da7"
6+
license "GPL-2.0-only"
7+
8+
livecheck do
9+
url :stable
10+
regex(/^v?(\d+(?:\.\d+)+)$/i)
11+
end
12+
13+
head do
14+
url "https://github.com/fish-shell/fish-shell.git", branch: "master"
15+
16+
depends_on "sphinx-doc" => :build
17+
end
18+
19+
depends_on "rust" => :build
20+
depends_on "cmake" => :build
21+
depends_on "pcre2"
22+
23+
def install
24+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args,
25+
"-DCMAKE_INSTALL_SYSCONFDIR=#{etc}",
26+
"-Dextra_functionsdir=#{HOMEBREW_PREFIX}/share/fish/vendor_functions.d",
27+
"-Dextra_completionsdir=#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d",
28+
"-Dextra_confdir=#{HOMEBREW_PREFIX}/share/fish/vendor_conf.d"
29+
system "cmake", "--build", "build"
30+
system "cmake", "--install", "build"
31+
end
32+
33+
def post_install
34+
(pkgshare/"vendor_functions.d").mkpath
35+
(pkgshare/"vendor_completions.d").mkpath
36+
(pkgshare/"vendor_conf.d").mkpath
37+
end
38+
39+
test do
40+
system bin/"fish", "-c", "echo"
41+
end
42+
end

0 commit comments

Comments
 (0)