commit:     6ce53db7dbd2c5050b817e9572d46d7e241ab072
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 28 14:34:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 28 14:35:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ce53db7

dev-vcs/pkgcruft-git: add 0.0.1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-vcs/pkgcruft-git/Manifest                  |  1 +
 dev-vcs/pkgcruft-git/pkgcruft-git-0.0.1.ebuild | 84 ++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/dev-vcs/pkgcruft-git/Manifest b/dev-vcs/pkgcruft-git/Manifest
new file mode 100644
index 000000000000..0e6cd4ae01af
--- /dev/null
+++ b/dev-vcs/pkgcruft-git/Manifest
@@ -0,0 +1 @@
+DIST pkgcruft-git-0.0.1.tar.xz 35004584 BLAKE2B 
2ba23ab05aa04a1f6ec8405b4bd5052168dd0b6ce028998476ac8db800010838e5e649dea80e54015a7e0928c9ee8f21bc8dc145950bee5f811a3de33f1f8ce3
 SHA512 
dafc47e4ccb9f9127a093cd978a5d12338b74ba0fe4baf15fb5174428828c193d70326b70b5d399a2a3e51721554f19c994316e65e6cfc663ba3bbec24fb2e0a

diff --git a/dev-vcs/pkgcruft-git/pkgcruft-git-0.0.1.ebuild 
b/dev-vcs/pkgcruft-git/pkgcruft-git-0.0.1.ebuild
new file mode 100644
index 000000000000..6de1095004f8
--- /dev/null
+++ b/dev-vcs/pkgcruft-git/pkgcruft-git-0.0.1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=" "
+LLVM_COMPAT=( {17..20} )
+RUST_MIN_VER="1.85.0"
+
+inherit cargo edo llvm-r2 multiprocessing toolchain-funcs
+
+DESCRIPTION="QA support for verifying git commits via pkgcruft"
+HOMEPAGE="https://pkgcraft.github.io/";
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft";
+       inherit git-r3
+
+       S="${WORKDIR}"/${P}/crates/${PN}
+else
+       
SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz";
+
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0
+       Unicode-3.0
+"
+SLOT="0"
+IUSE="test"
+# Fails to link w/ missing libssh2 with some CFLAGS
+RESTRICT="!test? ( test ) test"
+
+DEPEND="
+       dev-libs/libgit2:=
+       dev-libs/openssl:=
+"
+RDEPEND="${DEPEND}"
+# clang needed for bindgen
+BDEPEND+="
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+       ')
+       test? ( dev-util/cargo-nextest )
+"
+
+QA_FLAGS_IGNORED="usr/bin/pkgcruft-git"
+
+pkg_setup() {
+       llvm-r2_pkg_setup
+       rust_pkg_setup
+}
+
+src_unpack() {
+       if [[ ${PV} == 9999 ]] ; then
+               git-r3_src_unpack
+               cargo_live_src_unpack
+       else
+               cargo_src_unpack
+       fi
+}
+
+src_compile() {
+       # For scallop building bash
+       tc-export AR CC
+
+       cargo_src_compile
+}
+
+src_test() {
+       unset CLICOLOR CLICOLOR_FORCE
+
+       # TODO: Maybe move into eclass (and maybe have a cargo_enable_tests
+       # helper)
+       local -x NEXTEST_TEST_THREADS="$(makeopts_jobs)"
+
+       edo cargo nextest run $(usev !debug '--release') \
+               --color always \
+               --tests \
+               --no-fail-fast
+}

Reply via email to