diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2022-03-11 09:16:34 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2022-03-11 09:19:37 +0100 |
commit | d17d7d26ac89d321a89a6cb81fe3aca376fc1395 (patch) | |
tree | 62fb3155b23c7b2a544f8bc4d1f8582376f8aecc /dev-util/hermes | |
parent | dev-util/pkgdev: Stabilize 0.1.9 ppc64, #834931 (diff) | |
download | gentoo-d17d7d26ac89d321a89a6cb81fe3aca376fc1395.tar.gz gentoo-d17d7d26ac89d321a89a6cb81fe3aca376fc1395.tar.bz2 gentoo-d17d7d26ac89d321a89a6cb81fe3aca376fc1395.zip |
dev-util/hermes: version bump to 2.9
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-util/hermes')
-rw-r--r-- | dev-util/hermes/Manifest | 1 | ||||
-rw-r--r-- | dev-util/hermes/hermes-2.9.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/hermes/Manifest b/dev-util/hermes/Manifest index 35772d6d2a42..66473f80efcb 100644 --- a/dev-util/hermes/Manifest +++ b/dev-util/hermes/Manifest @@ -1 +1,2 @@ DIST hermes-2.8_p20180315.tar.gz 60771 BLAKE2B e523f1ee01e1ed3da5daa68f5b9f9d146f0764b5d5f75e9dbb71a3b4630ce06ef538745b01f0bcc30e0f2899adf1b1427022be07321c0dbe7859e0c6db82af33 SHA512 838fe1049f8f42113f5d394791499b47af4748d5fb6beccab8e3ce71398a85562340e95c0f96039fa58e6e8de3e79f3c7e87af2f7c47dc087b729cee557dac4a +DIST hermes-2.9.tar.gz 59493 BLAKE2B 32b53b3ae8cf36851e5b82c859deeba8cd8f36f726bc1284f98729f4c357b85018833aa3c9a04962890cc6621d590a918fcbf21b756c58f88723bf9efc7a745b SHA512 1d4873c96d9039f3e003a3b8f2270c1fa82e9fe323111351d41537c375d8d6e356b50d6c4b950b905bee0662044d2adc887233359dca62876dfc80e74dc271f8 diff --git a/dev-util/hermes/hermes-2.9.ebuild b/dev-util/hermes/hermes-2.9.ebuild new file mode 100644 index 000000000000..672828c5e1b2 --- /dev/null +++ b/dev-util/hermes/hermes-2.9.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..3} ) +inherit lua-single prefix + +DESCRIPTION="Lua based testing manager" +HOMEPAGE="https://github.com/TACC/Hermes" +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/TACC/Hermes" +else + SRC_URI="https://github.com/TACC/Hermes/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${P^}" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS} + $(lua_gen_cond_dep ' + dev-lua/luafilesystem[${LUA_USEDEP}] + dev-lua/luaposix[${LUA_USEDEP}] + ') +" +DEPEND="test? ( ${RDEPEND} )" + +PATCHES=( "${FILESDIR}"/${PN}-2.8-lua-shebang.patch ) + +src_prepare() { + default + hprefixify -w '/#\!\/bin\/bash/' tm/Tst.lua || die +} + +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 +} |