commit:     cd800d4cb9300fcbd96912b9127bb0cc87d0e12b
Author:     ingenarel <ingenarelitems <AT> gmail <DOT> com>
AuthorDate: Mon Dec  1 17:31:21 2025 +0000
Commit:     Saad Abdullah <ingenarelitems <AT> gmail <DOT> com>
CommitDate: Thu Dec  4 01:09:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cd800d4c

dev-util/tokei: add 9999

Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>
Part-of: https://github.com/gentoo/guru/pull/403
Closes: https://github.com/gentoo/guru/pull/403
Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>

 dev-util/tokei/tokei-9999.ebuild | 61 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/dev-util/tokei/tokei-9999.ebuild b/dev-util/tokei/tokei-9999.ebuild
new file mode 100644
index 0000000000..78c98158c7
--- /dev/null
+++ b/dev-util/tokei/tokei-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2017-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.71.1"
+
+CRATES=" "
+
+inherit cargo
+
+DESCRIPTION="Count your code, quickly"
+HOMEPAGE="https://github.com/XAMPPRocky/tokei";
+
+if [[ "${PV}" == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/XAMPPRocky/tokei";
+else
+       SRC_URI="https://github.com/XAMPPRocky/tokei/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+               ${CARGO_CRATE_URIS}"
+       KEYWORDS="~amd64"
+       RESTRICT="mirror"
+fi
+
+LICENSE="|| ( Apache-2.0 MIT )"
+# Dependent crate licenses
+LICENSE+="
+       BSD ISC MIT MPL-2.0 Unicode-DFS-2016
+       || ( Apache-2.0 Boost-1.0 )
+"
+
+SLOT="0"
+IUSE="test"
+RESTRICT="${RESTRICT} !test? ( test )"
+
+BDEPEND="
+       test? (
+               virtual/pkgconfig
+               >=dev-libs/libgit2-1.1.0
+       )
+"
+
+QA_FLAGS_IGNORED="usr/bin/tokei"
+
+src_unpack() {
+       if [[ "$PV" == *9999* ]];then
+               git-r3_src_unpack
+               cargo_live_src_unpack
+       else
+               cargo_src_unpack
+       fi
+}
+
+src_configure() {
+       cargo_src_configure --features all
+}
+
+src_install() {
+       cargo_src_install
+       dodoc CHANGELOG.md README.md tokei.example.toml
+}

Reply via email to