summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-12-05 23:23:17 +0000
committerMarek Szuba <marecki@gentoo.org>2020-12-08 23:27:48 +0100
commitb535b4d8c87312f53fe340750e1fe91ab9e7bba7 (patch)
tree7031035c464a05af506ead83f527e657678076a8 /dev-util/hermes/files
parentdev-libs/libucl: revision bump for slotted lua (diff)
downloadgentoo-b535b4d8c87312f53fe340750e1fe91ab9e7bba7.tar.gz
gentoo-b535b4d8c87312f53fe340750e1fe91ab9e7bba7.tar.bz2
gentoo-b535b4d8c87312f53fe340750e1fe91ab9e7bba7.zip
dev-util/hermes: new package
testing manager using lua test dependency for Lmod uses slotted lua Closes: https://github.com/gentoo/gentoo/pull/18554 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-util/hermes/files')
-rw-r--r--dev-util/hermes/files/99hermes1
-rw-r--r--dev-util/hermes/files/hermes-2.8-lua-shebang.patch23
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-util/hermes/files/99hermes b/dev-util/hermes/files/99hermes
new file mode 100644
index 000000000000..364c4f4d4c3a
--- /dev/null
+++ b/dev-util/hermes/files/99hermes
@@ -0,0 +1 @@
+PATH="/opt/hermes/bin"
diff --git a/dev-util/hermes/files/hermes-2.8-lua-shebang.patch b/dev-util/hermes/files/hermes-2.8-lua-shebang.patch
new file mode 100644
index 000000000000..67058f726d78
--- /dev/null
+++ b/dev-util/hermes/files/hermes-2.8-lua-shebang.patch
@@ -0,0 +1,23 @@
+diff --git a/lib/tool.lua b/lib/tool.lua
+index a9124f3..8c39911 100755
+--- a/lib/tool.lua
++++ b/lib/tool.lua
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env lua
++#!@LUA@
+
+ require("strict")
+ function tool()
+diff --git a/bin/lua_cmd b/bin/lua_cmd
+index fabc5d5..32c8e13 100755
+--- a/bin/lua_cmd
++++ b/bin/lua_cmd
+@@ -37,7 +37,7 @@ extra=
+ if [ "x$LUA_PATH" != x ]; then
+ extra=";$LUA_PATH"
+ else
+- extra=";`lua -e 'print(package.path)'`"
++ extra=";`@LUA@ -e 'print(package.path)'`"
+ fi
+
+ export LUA_PATH="$execLuaPath$extra"