mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
1
dev-util/hermes/Manifest
Normal file
1
dev-util/hermes/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST hermes-2.8.tar.gz 61010 BLAKE2B 520110318dd0c2f2bc150b050729f9fa36c14ea5dca9a8492e77bc67618e14adb36ca35cf67b1aeb7a1e8a2dfef84fb6662bbdad21e427bff8aea4d53c271be3 SHA512 ea3378e5311202333f6eb59e301c92d9db1937e540f00283b679bd50e54312b8a98c469cf106374e9dde78a37e8997d7022569a9f81703ba445577f8cdd7e6e3
|
||||
1
dev-util/hermes/files/99hermes
Normal file
1
dev-util/hermes/files/99hermes
Normal file
@@ -0,0 +1 @@
|
||||
PATH="/opt/hermes/bin"
|
||||
23
dev-util/hermes/files/hermes-2.8-lua-shebang.patch
Normal file
23
dev-util/hermes/files/hermes-2.8-lua-shebang.patch
Normal file
@@ -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"
|
||||
46
dev-util/hermes/hermes-2.8.ebuild
Normal file
46
dev-util/hermes/hermes-2.8.ebuild
Normal file
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LUA_COMPAT=( lua5-{1..3} )
|
||||
inherit lua-single
|
||||
|
||||
DESCRIPTION="Lua based testing manager"
|
||||
HOMEPAGE="https://github.com/TACC/Hermes"
|
||||
SRC_URI="https://github.com/TACC/Hermes/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/Hermes-${PV}
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${LUA_DEPS}
|
||||
$(lua_gen_cond_dep '
|
||||
dev-lua/luaposix[${LUA_USEDEP}]
|
||||
')
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-2.8-lua-shebang.patch )
|
||||
|
||||
src_compile() {
|
||||
sed -e "s|@LUA@|${LUA}|g" \
|
||||
-i lib/tool.lua \
|
||||
-i bin/lua_cmd || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local -x PATH="bin:${PATH}"
|
||||
tm -vvv || die
|
||||
testcleanup || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/hermes
|
||||
cp -r "${S}"/. "${ED}"/opt/hermes/ || die
|
||||
|
||||
doenvd "${FILESDIR}"/99hermes
|
||||
}
|
||||
12
dev-util/hermes/metadata.xml
Normal file
12
dev-util/hermes/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@aisha.cc</email>
|
||||
<name>Aisha Tammy</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>sci@gentoo.org</email>
|
||||
<name>Gentoo Science Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -543,6 +543,7 @@ gnome-base/orbit
|
||||
>=dev-lua/say-1.3_p1-r100
|
||||
>=dev-lua/toluapp-1.0.93_p20190513-r100
|
||||
>=dev-util/geany-plugins-1.37-r100
|
||||
>=dev-util/hermes-2.8
|
||||
=games-action/minetest-5.3.0-r100
|
||||
>=games-arcade/jvgs-0.5-r100
|
||||
>=games-emulation/fceux-2.2.3-r100
|
||||
|
||||
Reference in New Issue
Block a user