commit: 1405f9bc8d8c3725a06e5c7aaca5ac248b248531 Author: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com> AuthorDate: Mon Aug 5 17:55:00 2024 +0000 Commit: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com> CommitDate: Mon Aug 5 17:59:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1405f9bc
dev-util/shellspec: new package, add 0.28.1, 9999 Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com> dev-util/shellspec/Manifest | 1 + dev-util/shellspec/metadata.xml | 46 ++++++++++++++++++++++ dev-util/shellspec/shellspec-0.28.1.ebuild | 63 ++++++++++++++++++++++++++++++ dev-util/shellspec/shellspec-9999.ebuild | 63 ++++++++++++++++++++++++++++++ 4 files changed, 173 insertions(+) diff --git a/dev-util/shellspec/Manifest b/dev-util/shellspec/Manifest new file mode 100644 index 000000000..1f595a6b8 --- /dev/null +++ b/dev-util/shellspec/Manifest @@ -0,0 +1 @@ +DIST shellspec-0.28.1.tar.gz 440575 BLAKE2B 08d59f1585d155cd0a7d45b939f7172b3a3f58350e32993f2e0b88307ed3d214dddeff7468c322b6ff9f51223d5b681a6fc85bfd24c46d2224421d7d3e6c43ef SHA512 a3d1f582a3c76ef240ab9bd0ce3b8433d7ced766b6fa03ed724100917271c2c0ee04909cdc7ea2f92267dc11fdd890d52a4edcc2957c16dbbd331a718e5c564f diff --git a/dev-util/shellspec/metadata.xml b/dev-util/shellspec/metadata.xml new file mode 100644 index 000000000..dcf01adc3 --- /dev/null +++ b/dev-util/shellspec/metadata.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Mattéo Rossillol‑‑Laruelle</name> + </maintainer> + <longdescription> + <pkg>dev-util/shellspec</pkg> is a full-featured BDD unit + testing framework for <pkg>app-shells/dash</pkg>, + <pkg>app-shells/bash</pkg>, <pkg>app-shells/ksh</pkg>, + <pkg>app-shells/zsh</pkg> and all POSIX shells that provides + first-class features such as code coverage, mocking, + parameterized test, parallel execution and more. It was + developed as a dev/test tool for cross-platform shell scripts + and shell script libraries. <pkg>dev-util/shellspec</pkg> is a + new modern testing framework released in 2019, but it's already + stable enough. With lots of practical CLI features and simple + yet powerful syntax, it provides you with a fun shell script + test environment. + </longdescription> + <longdescription lang="fr"> + <pkg>dev-util/shellspec</pkg> est une infrastructure logicielle + de tests unitaires BDD pour <pkg>app-shells/dash</pkg>, + <pkg>app-shells/bash</pkg>, <pkg>app-shells/ksh</pkg>, + <pkg>app-shells/zsh</pkg> et tous les shells POSIX qui fournit + des fonctionnalités de premier ordre telles que la couverture de + code, le mocking, test paramétré, l'exécution parallèle et plus + encore. Elle a été développée en tant qu'outil de + développement/test pour les scripts shell multiplateformes et + les bibliothèques de scripts shell. + <pkg>dev-util/shellspec</pkg> est une nouvelle infrastructure + logicielle de test moderne publié en 2019, mais elle est déjà + assez stable. Avec de nombreuses fonctionnalités CLI pratiques + et une syntaxe simple syntaxe simple mais puissante, elle vous + fournit un environnement de test de script shell. + </longdescription> + <upstream> + <maintainer status="active"> + <name>ShellSpec</name> + </maintainer> + <changelog>https://github.com/shellspec/shellspec/blob/master/CHANGELOG.md</changelog> + <bugs-to>https://github.com/shellspec/shellspec/issues/</bugs-to> + <remote-id type="github">shellspec/shellspec</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/shellspec/shellspec-0.28.1.ebuild b/dev-util/shellspec/shellspec-0.28.1.ebuild new file mode 100644 index 000000000..aeeb16f9f --- /dev/null +++ b/dev-util/shellspec/shellspec-0.28.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells" +HOMEPAGE="https://shellspec.info/" + +if [[ "${PV}" = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/shellspec/shellspec.git" +else + SRC_URI="https://github.com/shellspec/shellspec/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT-with-advertising" +SLOT="0" +IUSE="doc examples test" +RESTRICT="binchecks strip !test? ( test )" + +DEPEND=" + || ( + >=app-shells/bash-2.03 + >=app-shells/dash-0.5.4 + app-shells/ksh + app-shells/loksh + >=app-shells/mksh-28r + >=app-shells/posh-0.3.14 + >=app-shells/yash-2.29 + >=app-shells/zsh-3.1.9 + >=sys-apps/busybox-1.20.0 + ) +" + +BDEPEND="test? ( ${DEPEND} )" +RDEPEND="${DEPEND}" + +DOCS=( + CHANGELOG.md + CONTRIBUTING.md + README.md +) + +src_prepare() { + default + sed -i "s/LICENSE//g" Makefile || die +} + +src_compile() { :; } + +src_test() { + emake test +} + +src_install() { + einstalldocs + + use doc && dodoc -r docs + use examples && dodoc -r examples + + emake PREFIX="${ED}/usr" install +} diff --git a/dev-util/shellspec/shellspec-9999.ebuild b/dev-util/shellspec/shellspec-9999.ebuild new file mode 100644 index 000000000..aeeb16f9f --- /dev/null +++ b/dev-util/shellspec/shellspec-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells" +HOMEPAGE="https://shellspec.info/" + +if [[ "${PV}" = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/shellspec/shellspec.git" +else + SRC_URI="https://github.com/shellspec/shellspec/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT-with-advertising" +SLOT="0" +IUSE="doc examples test" +RESTRICT="binchecks strip !test? ( test )" + +DEPEND=" + || ( + >=app-shells/bash-2.03 + >=app-shells/dash-0.5.4 + app-shells/ksh + app-shells/loksh + >=app-shells/mksh-28r + >=app-shells/posh-0.3.14 + >=app-shells/yash-2.29 + >=app-shells/zsh-3.1.9 + >=sys-apps/busybox-1.20.0 + ) +" + +BDEPEND="test? ( ${DEPEND} )" +RDEPEND="${DEPEND}" + +DOCS=( + CHANGELOG.md + CONTRIBUTING.md + README.md +) + +src_prepare() { + default + sed -i "s/LICENSE//g" Makefile || die +} + +src_compile() { :; } + +src_test() { + emake test +} + +src_install() { + einstalldocs + + use doc && dodoc -r docs + use examples && dodoc -r examples + + emake PREFIX="${ED}/usr" install +}
