create: add --crystal option
This commit is contained in:
parent
adbc50f151
commit
519c339261
@ -23,6 +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 "--crystal",
|
||||||
|
description: "Create a basic template for a Crystal build."
|
||||||
switch "--go",
|
switch "--go",
|
||||||
description: "Create a basic template for a Go build."
|
description: "Create a basic template for a Go build."
|
||||||
switch "--meson",
|
switch "--meson",
|
||||||
@ -50,7 +52,7 @@ module Homebrew
|
|||||||
switch :force
|
switch :force
|
||||||
switch :verbose
|
switch :verbose
|
||||||
switch :debug
|
switch :debug
|
||||||
conflicts "--autotools", "--cmake", "--go", "--meson", "--perl", "--python", "--rust"
|
conflicts "--autotools", "--cmake", "--crystal", "--go", "--meson", "--perl", "--python", "--rust"
|
||||||
named 1
|
named 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -82,6 +84,8 @@ module Homebrew
|
|||||||
:autotools
|
:autotools
|
||||||
elsif args.meson?
|
elsif args.meson?
|
||||||
:meson
|
:meson
|
||||||
|
elsif args.crystal?
|
||||||
|
:crystal
|
||||||
elsif args.go?
|
elsif args.go?
|
||||||
:go
|
:go
|
||||||
elsif args.perl?
|
elsif args.perl?
|
||||||
|
@ -103,6 +103,8 @@ module Homebrew
|
|||||||
|
|
||||||
<% if mode == :cmake %>
|
<% if mode == :cmake %>
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
|
<% elsif mode == :crystal %>
|
||||||
|
depends_on "crystal" => :build
|
||||||
<% elsif mode == :go %>
|
<% elsif mode == :go %>
|
||||||
depends_on "go" => :build
|
depends_on "go" => :build
|
||||||
<% elsif mode == :meson %>
|
<% elsif mode == :meson %>
|
||||||
@ -138,6 +140,9 @@ module Homebrew
|
|||||||
"--disable-dependency-tracking",
|
"--disable-dependency-tracking",
|
||||||
"--disable-silent-rules",
|
"--disable-silent-rules",
|
||||||
"--prefix=\#{prefix}"
|
"--prefix=\#{prefix}"
|
||||||
|
<% elsif mode == :crystal %>
|
||||||
|
system "shards", "build", "--release"
|
||||||
|
bin.install "bin/#{name}"
|
||||||
<% elsif mode == :go %>
|
<% elsif mode == :go %>
|
||||||
system "go", "build", *std_go_args
|
system "go", "build", *std_go_args
|
||||||
<% elsif mode == :meson %>
|
<% elsif mode == :meson %>
|
||||||
|
@ -162,6 +162,7 @@ _brew_create() {
|
|||||||
--HEAD
|
--HEAD
|
||||||
--autotools
|
--autotools
|
||||||
--cmake
|
--cmake
|
||||||
|
--crystal
|
||||||
--debug
|
--debug
|
||||||
--force
|
--force
|
||||||
--go
|
--go
|
||||||
|
@ -769,6 +769,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.
|
||||||
|
* `--crystal`:
|
||||||
|
Create a basic template for a Crystal build.
|
||||||
* `--go`:
|
* `--go`:
|
||||||
Create a basic template for a Go build.
|
Create a basic template for a Go build.
|
||||||
* `--meson`:
|
* `--meson`:
|
||||||
|
@ -999,6 +999,10 @@ 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\-\-crystal\fR
|
||||||
|
Create a basic template for a Crystal build\.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
\fB\-\-go\fR
|
\fB\-\-go\fR
|
||||||
Create a basic template for a Go build\.
|
Create a basic template for a Go build\.
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user