nim: remove bash dependency (#48132)
This commit is contained in:
parent
a3bed44bf5
commit
de739db153
@ -19,7 +19,7 @@ class Nim(Package):
|
|||||||
url = "https://nim-lang.org/download/nim-2.2.0.tar.xz"
|
url = "https://nim-lang.org/download/nim-2.2.0.tar.xz"
|
||||||
git = "https://github.com/nim-lang/Nim.git"
|
git = "https://github.com/nim-lang/Nim.git"
|
||||||
|
|
||||||
license("MIT")
|
license("MIT", checked_by="Buldram")
|
||||||
|
|
||||||
maintainers("Buldram")
|
maintainers("Buldram")
|
||||||
|
|
||||||
@ -58,8 +58,8 @@ class Nim(Package):
|
|||||||
"sqlite", default=False, when="@0:1.7.3", description="Install SQLite for std/db_sqlite"
|
"sqlite", default=False, when="@0:1.7.3", description="Install SQLite for std/db_sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
depends_on("c", type="build") # generated
|
depends_on("c", type="build")
|
||||||
depends_on("cxx", type="build") # generated
|
depends_on("cxx", type="build")
|
||||||
|
|
||||||
depends_on("gmake", type="build", when="@devel,0.20:")
|
depends_on("gmake", type="build", when="@devel,0.20:")
|
||||||
depends_on("pcre", type="link")
|
depends_on("pcre", type="link")
|
||||||
@ -141,8 +141,7 @@ def build(self, spec, prefix):
|
|||||||
make()
|
make()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
bash = which("bash")
|
Executable("./build.sh")()
|
||||||
bash("./build.sh")
|
|
||||||
|
|
||||||
nim = Executable(join_path("bin", "nim"))
|
nim = Executable(join_path("bin", "nim"))
|
||||||
# Separate nimcache allows parallel compilation of different versions of the Nim compiler
|
# Separate nimcache allows parallel compilation of different versions of the Nim compiler
|
||||||
@ -159,7 +158,6 @@ def build(self, spec, prefix):
|
|||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
filter_file("1/nim", "1", "install.sh")
|
filter_file("1/nim", "1", "install.sh")
|
||||||
|
|
||||||
bash = which("bash")
|
Executable("./install.sh")(prefix)
|
||||||
bash("./install.sh", prefix)
|
|
||||||
|
|
||||||
install_tree("bin", prefix.bin)
|
install_tree("bin", prefix.bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user