mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
create: --go-mod -> --go
This commit is contained in:
parent
964d189109
commit
a243f084e6
@ -23,8 +23,8 @@ module Homebrew
|
||||
description: "Create a basic template for an Autotools-style build."
|
||||
switch "--cmake",
|
||||
description: "Create a basic template for a CMake-style build."
|
||||
switch "--go-mod",
|
||||
description: "Create a basic template for a Go-Modules-style build."
|
||||
switch "--go",
|
||||
description: "Create a basic template for a Go build."
|
||||
switch "--meson",
|
||||
description: "Create a basic template for a Meson-style build."
|
||||
switch "--no-fetch",
|
||||
@ -42,7 +42,7 @@ module Homebrew
|
||||
switch :force
|
||||
switch :verbose
|
||||
switch :debug
|
||||
conflicts "--autotools", "--cmake", "--go-mod", "--meson"
|
||||
conflicts "--autotools", "--cmake", "--go", "--meson"
|
||||
end
|
||||
end
|
||||
|
||||
@ -75,8 +75,8 @@ module Homebrew
|
||||
:autotools
|
||||
elsif args.meson?
|
||||
:meson
|
||||
elsif args.go_mod?
|
||||
:go_mod
|
||||
elsif args.go?
|
||||
:go
|
||||
end
|
||||
|
||||
if fc.name.nil? || fc.name.strip.empty?
|
||||
|
@ -99,7 +99,7 @@ module Homebrew
|
||||
|
||||
<% if mode == :cmake %>
|
||||
depends_on "cmake" => :build
|
||||
<% elsif mode == :go_mod %>
|
||||
<% elsif mode == :go %>
|
||||
depends_on "go" => :build
|
||||
<% elsif mode == :meson %>
|
||||
depends_on "meson" => :build
|
||||
@ -118,7 +118,7 @@ module Homebrew
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=\#{prefix}"
|
||||
<% elsif mode == :go_mod %>
|
||||
<% elsif mode == :go %>
|
||||
system "go", "build", "-o", "\#{bin}/\#{name}"
|
||||
<% elsif mode == :meson %>
|
||||
mkdir "build" do
|
||||
@ -134,7 +134,7 @@ module Homebrew
|
||||
"--prefix=\#{prefix}"
|
||||
# system "cmake", ".", *std_cmake_args
|
||||
<% end %>
|
||||
<% if mode != :meson and mode != :go_mod %>
|
||||
<% if mode != :meson and mode != :go %>
|
||||
system "make", "install" # if this fails, try separate make/make install steps
|
||||
<% end %>
|
||||
end
|
||||
|
@ -801,8 +801,8 @@ a simple example. For the complete API, see:
|
||||
Create a basic template for an Autotools-style build.
|
||||
* `--cmake`:
|
||||
Create a basic template for a CMake-style build.
|
||||
* `--go-mod`:
|
||||
Create a basic template for a Go-Modules-style build.
|
||||
* `--go`:
|
||||
Create a basic template for a Go build.
|
||||
* `--meson`:
|
||||
Create a basic template for a Meson-style build.
|
||||
* `--no-fetch`:
|
||||
|
@ -1020,8 +1020,8 @@ Create a basic template for an Autotools\-style build\.
|
||||
Create a basic template for a CMake\-style build\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-go\-mod\fR
|
||||
Create a basic template for a Go\-Modules\-style build\.
|
||||
\fB\-\-go\fR
|
||||
Create a basic template for a Go build\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-meson\fR
|
||||
|
Loading…
x
Reference in New Issue
Block a user