* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/shellspec/
@ 2024-08-05 17:59 Mattéo Rossillol‑‑Laruelle
0 siblings, 0 replies; 3+ messages in thread
From: Mattéo Rossillol‑‑Laruelle @ 2024-08-05 17:59 UTC (permalink / raw
To: gentoo-commits
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>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>
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
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/shellspec/
@ 2024-08-06 8:58 Mattéo Rossillol‑‑Laruelle
0 siblings, 0 replies; 3+ messages in thread
From: Mattéo Rossillol‑‑Laruelle @ 2024-08-06 8:58 UTC (permalink / raw
To: gentoo-commits
commit: b413d09eee4ee1cbbb8c77c370f8fafb17fe5693
Author: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
AuthorDate: Tue Aug 6 08:50:54 2024 +0000
Commit: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
CommitDate: Tue Aug 6 08:50:54 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b413d09e
dev-util/shellspec: revbump
This revision fix the lib directory used.
Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com>
.../{shellspec-0.28.1.ebuild => shellspec-0.28.1-r1.ebuild} | 13 +++++++------
dev-util/shellspec/shellspec-9999.ebuild | 13 +++++++------
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/dev-util/shellspec/shellspec-0.28.1.ebuild b/dev-util/shellspec/shellspec-0.28.1-r1.ebuild
similarity index 82%
rename from dev-util/shellspec/shellspec-0.28.1.ebuild
rename to dev-util/shellspec/shellspec-0.28.1-r1.ebuild
index aeeb16f9f..8cab3a2a4 100644
--- a/dev-util/shellspec/shellspec-0.28.1.ebuild
+++ b/dev-util/shellspec/shellspec-0.28.1-r1.ebuild
@@ -14,12 +14,12 @@ else
KEYWORDS="~amd64"
fi
-LICENSE="MIT-with-advertising"
+LICENSE="MIT"
SLOT="0"
IUSE="doc examples test"
-RESTRICT="binchecks strip !test? ( test )"
+RESTRICT="!test? ( test )"
-DEPEND="
+RDEPEND="
|| (
>=app-shells/bash-2.03
>=app-shells/dash-0.5.4
@@ -33,8 +33,7 @@ DEPEND="
)
"
-BDEPEND="test? ( ${DEPEND} )"
-RDEPEND="${DEPEND}"
+BDEPEND="test? ( ${RDEPEND} )"
DOCS=(
CHANGELOG.md
@@ -44,6 +43,8 @@ DOCS=(
src_prepare() {
default
+
+ sed -i "s/lib/$(get_libdir)/" stub/shellspec || die
sed -i "s/LICENSE//g" Makefile || die
}
@@ -59,5 +60,5 @@ src_install() {
use doc && dodoc -r docs
use examples && dodoc -r examples
- emake PREFIX="${ED}/usr" install
+ emake LIBDIR="${ED}/usr/$(get_libdir)" PREFIX="${ED}/usr" install
}
diff --git a/dev-util/shellspec/shellspec-9999.ebuild b/dev-util/shellspec/shellspec-9999.ebuild
index aeeb16f9f..8cab3a2a4 100644
--- a/dev-util/shellspec/shellspec-9999.ebuild
+++ b/dev-util/shellspec/shellspec-9999.ebuild
@@ -14,12 +14,12 @@ else
KEYWORDS="~amd64"
fi
-LICENSE="MIT-with-advertising"
+LICENSE="MIT"
SLOT="0"
IUSE="doc examples test"
-RESTRICT="binchecks strip !test? ( test )"
+RESTRICT="!test? ( test )"
-DEPEND="
+RDEPEND="
|| (
>=app-shells/bash-2.03
>=app-shells/dash-0.5.4
@@ -33,8 +33,7 @@ DEPEND="
)
"
-BDEPEND="test? ( ${DEPEND} )"
-RDEPEND="${DEPEND}"
+BDEPEND="test? ( ${RDEPEND} )"
DOCS=(
CHANGELOG.md
@@ -44,6 +43,8 @@ DOCS=(
src_prepare() {
default
+
+ sed -i "s/lib/$(get_libdir)/" stub/shellspec || die
sed -i "s/LICENSE//g" Makefile || die
}
@@ -59,5 +60,5 @@ src_install() {
use doc && dodoc -r docs
use examples && dodoc -r examples
- emake PREFIX="${ED}/usr" install
+ emake LIBDIR="${ED}/usr/$(get_libdir)" PREFIX="${ED}/usr" install
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/shellspec/
@ 2024-08-06 11:56 Mattéo Rossillol‑‑Laruelle
0 siblings, 0 replies; 3+ messages in thread
From: Mattéo Rossillol‑‑Laruelle @ 2024-08-06 11:56 UTC (permalink / raw
To: gentoo-commits
commit: 62518e2d06ae1f94d23bb5378e3fdcdd724eab0a
Author: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
AuthorDate: Tue Aug 6 11:53:24 2024 +0000
Commit: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
CommitDate: Tue Aug 6 11:54:47 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62518e2d
dev-util/shellspec: revbump
This revision allows respecting `EPREFIX`.
Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com>
...spec-0.28.1-r1.ebuild => shellspec-0.28.1-r2.ebuild} | 17 +++++++++++++++++
dev-util/shellspec/shellspec-9999.ebuild | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/dev-util/shellspec/shellspec-0.28.1-r1.ebuild b/dev-util/shellspec/shellspec-0.28.1-r2.ebuild
similarity index 80%
rename from dev-util/shellspec/shellspec-0.28.1-r1.ebuild
rename to dev-util/shellspec/shellspec-0.28.1-r2.ebuild
index 8cab3a2a4..54b8100cb 100644
--- a/dev-util/shellspec/shellspec-0.28.1-r1.ebuild
+++ b/dev-util/shellspec/shellspec-0.28.1-r2.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+inherit prefix
+
DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells"
HOMEPAGE="https://shellspec.info/"
@@ -46,6 +48,21 @@ src_prepare() {
sed -i "s/lib/$(get_libdir)/" stub/shellspec || die
sed -i "s/LICENSE//g" Makefile || die
+
+ local to_analyze=(
+ examples
+ helper
+ lib
+ libexec
+ stub/shellspec
+ shellspec
+ )
+
+ local -a to_prefixify
+
+ readarray -t to_prefixify < <(find "${to_analyze[@]}" -type f) || die
+ hprefixify "${to_prefixify[@]}"
+ sed -i "s|#!|#!${EPREFIX}|" README.md || die
}
src_compile() { :; }
diff --git a/dev-util/shellspec/shellspec-9999.ebuild b/dev-util/shellspec/shellspec-9999.ebuild
index 8cab3a2a4..54b8100cb 100644
--- a/dev-util/shellspec/shellspec-9999.ebuild
+++ b/dev-util/shellspec/shellspec-9999.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+inherit prefix
+
DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells"
HOMEPAGE="https://shellspec.info/"
@@ -46,6 +48,21 @@ src_prepare() {
sed -i "s/lib/$(get_libdir)/" stub/shellspec || die
sed -i "s/LICENSE//g" Makefile || die
+
+ local to_analyze=(
+ examples
+ helper
+ lib
+ libexec
+ stub/shellspec
+ shellspec
+ )
+
+ local -a to_prefixify
+
+ readarray -t to_prefixify < <(find "${to_analyze[@]}" -type f) || die
+ hprefixify "${to_prefixify[@]}"
+ sed -i "s|#!|#!${EPREFIX}|" README.md || die
}
src_compile() { :; }
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-06 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 11:56 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/shellspec/ Mattéo Rossillol‑‑Laruelle
-- strict thread matches above, loose matches on Subject: below --
2024-08-06 8:58 Mattéo Rossillol‑‑Laruelle
2024-08-05 17:59 Mattéo Rossillol‑‑Laruelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox