blob: 78c98158c7a03adecaf1c59e6e6b48065caf6669 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
}
|