mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-util/shellspec: new package, add 0.28.1, 9999
Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum@protonmail.com>
This commit is contained in:
1
dev-util/shellspec/Manifest
Normal file
1
dev-util/shellspec/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST shellspec-0.28.1.tar.gz 440575 BLAKE2B 08d59f1585d155cd0a7d45b939f7172b3a3f58350e32993f2e0b88307ed3d214dddeff7468c322b6ff9f51223d5b681a6fc85bfd24c46d2224421d7d3e6c43ef SHA512 a3d1f582a3c76ef240ab9bd0ce3b8433d7ced766b6fa03ed724100917271c2c0ee04909cdc7ea2f92267dc11fdd890d52a4edcc2957c16dbbd331a718e5c564f
|
||||
46
dev-util/shellspec/metadata.xml
Normal file
46
dev-util/shellspec/metadata.xml
Normal file
@@ -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>beatussum@protonmail.com</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>
|
||||
63
dev-util/shellspec/shellspec-0.28.1.ebuild
Normal file
63
dev-util/shellspec/shellspec-0.28.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
63
dev-util/shellspec/shellspec-9999.ebuild
Normal file
63
dev-util/shellspec/shellspec-9999.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user