Skip to content
Snippets Groups Projects
Unverified Commit a243f084 authored by Dawid Dziurla's avatar Dawid Dziurla
Browse files

create: --go-mod -> --go

parent 964d1891
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ module Homebrew ...@@ -23,8 +23,8 @@ module Homebrew
description: "Create a basic template for an Autotools-style build." description: "Create a basic template for an Autotools-style build."
switch "--cmake", switch "--cmake",
description: "Create a basic template for a CMake-style build." description: "Create a basic template for a CMake-style build."
switch "--go-mod", switch "--go",
description: "Create a basic template for a Go-Modules-style build." description: "Create a basic template for a Go build."
switch "--meson", switch "--meson",
description: "Create a basic template for a Meson-style build." description: "Create a basic template for a Meson-style build."
switch "--no-fetch", switch "--no-fetch",
...@@ -42,7 +42,7 @@ module Homebrew ...@@ -42,7 +42,7 @@ module Homebrew
switch :force switch :force
switch :verbose switch :verbose
switch :debug switch :debug
conflicts "--autotools", "--cmake", "--go-mod", "--meson" conflicts "--autotools", "--cmake", "--go", "--meson"
end end
end end
...@@ -75,8 +75,8 @@ module Homebrew ...@@ -75,8 +75,8 @@ module Homebrew
:autotools :autotools
elsif args.meson? elsif args.meson?
:meson :meson
elsif args.go_mod? elsif args.go?
:go_mod :go
end end
if fc.name.nil? || fc.name.strip.empty? if fc.name.nil? || fc.name.strip.empty?
......
...@@ -99,7 +99,7 @@ module Homebrew ...@@ -99,7 +99,7 @@ module Homebrew
<% if mode == :cmake %> <% if mode == :cmake %>
depends_on "cmake" => :build depends_on "cmake" => :build
<% elsif mode == :go_mod %> <% elsif mode == :go %>
depends_on "go" => :build depends_on "go" => :build
<% elsif mode == :meson %> <% elsif mode == :meson %>
depends_on "meson" => :build depends_on "meson" => :build
...@@ -118,7 +118,7 @@ module Homebrew ...@@ -118,7 +118,7 @@ module Homebrew
"--disable-dependency-tracking", "--disable-dependency-tracking",
"--disable-silent-rules", "--disable-silent-rules",
"--prefix=\#{prefix}" "--prefix=\#{prefix}"
<% elsif mode == :go_mod %> <% elsif mode == :go %>
system "go", "build", "-o", "\#{bin}/\#{name}" system "go", "build", "-o", "\#{bin}/\#{name}"
<% elsif mode == :meson %> <% elsif mode == :meson %>
mkdir "build" do mkdir "build" do
...@@ -134,7 +134,7 @@ module Homebrew ...@@ -134,7 +134,7 @@ module Homebrew
"--prefix=\#{prefix}" "--prefix=\#{prefix}"
# system "cmake", ".", *std_cmake_args # system "cmake", ".", *std_cmake_args
<% end %> <% 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 system "make", "install" # if this fails, try separate make/make install steps
<% end %> <% end %>
end end
......
...@@ -801,8 +801,8 @@ a simple example. For the complete API, see: ...@@ -801,8 +801,8 @@ a simple example. For the complete API, see:
Create a basic template for an Autotools-style build. Create a basic template for an Autotools-style build.
* `--cmake`: * `--cmake`:
Create a basic template for a CMake-style build. Create a basic template for a CMake-style build.
* `--go-mod`: * `--go`:
Create a basic template for a Go-Modules-style build. Create a basic template for a Go build.
* `--meson`: * `--meson`:
Create a basic template for a Meson-style build. Create a basic template for a Meson-style build.
* `--no-fetch`: * `--no-fetch`:
......
...@@ -1020,8 +1020,8 @@ Create a basic template for an Autotools\-style build\. ...@@ -1020,8 +1020,8 @@ Create a basic template for an Autotools\-style build\.
Create a basic template for a CMake\-style build\. Create a basic template for a CMake\-style build\.
. .
.TP .TP
\fB\-\-go\-mod\fR \fB\-\-go\fR
Create a basic template for a Go\-Modules\-style build\. Create a basic template for a Go build\.
. .
.TP .TP
\fB\-\-meson\fR \fB\-\-meson\fR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment