diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2020-12-05 23:23:17 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-12-08 23:27:48 +0100 |
commit | b535b4d8c87312f53fe340750e1fe91ab9e7bba7 (patch) | |
tree | 7031035c464a05af506ead83f527e657678076a8 /dev-util/hermes | |
parent | dev-libs/libucl: revision bump for slotted lua (diff) | |
download | gentoo-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')
-rw-r--r-- | dev-util/hermes/Manifest | 1 | ||||
-rw-r--r-- | dev-util/hermes/files/99hermes | 1 | ||||
-rw-r--r-- | dev-util/hermes/files/hermes-2.8-lua-shebang.patch | 23 | ||||
-rw-r--r-- | dev-util/hermes/hermes-2.8.ebuild | 46 | ||||
-rw-r--r-- | dev-util/hermes/metadata.xml | 12 |
5 files changed, 83 insertions, 0 deletions
diff --git a/dev-util/hermes/Manifest b/dev-util/hermes/Manifest new file mode 100644 index 000000000000..cb1e33d2fe62 --- /dev/null +++ b/dev-util/hermes/Manifest @@ -0,0 +1 @@ +DIST hermes-2.8.tar.gz 61010 BLAKE2B 520110318dd0c2f2bc150b050729f9fa36c14ea5dca9a8492e77bc67618e14adb36ca35cf67b1aeb7a1e8a2dfef84fb6662bbdad21e427bff8aea4d53c271be3 SHA512 ea3378e5311202333f6eb59e301c92d9db1937e540f00283b679bd50e54312b8a98c469cf106374e9dde78a37e8997d7022569a9f81703ba445577f8cdd7e6e3 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" diff --git a/dev-util/hermes/hermes-2.8.ebuild b/dev-util/hermes/hermes-2.8.ebuild new file mode 100644 index 000000000000..a6b7694d1f6a --- /dev/null +++ b/dev-util/hermes/hermes-2.8.ebuild @@ -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 +} diff --git a/dev-util/hermes/metadata.xml b/dev-util/hermes/metadata.xml new file mode 100644 index 000000000000..e97c4322aa87 --- /dev/null +++ b/dev-util/hermes/metadata.xml @@ -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> |