blob: 806122bc829996dbf9f8e87dd64cd0f22f569120 (
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
|
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Fast disk usage analyzer with console interface written in Go"
HOMEPAGE="https://github.com/dundee/gdu"
SRC_URI="
https://github.com/dundee/gdu/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/yamader/gentoo-deps/releases/download/${P}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND=">=dev-lang/go-1.26.0"
DOCS=( README.md gdu.1.md )
src_compile() {
ego build -ldflags "-X 'github.com/dundee/gdu/v5/build.Version=${PV}'" ./cmd/gdu
}
src_install() {
dobin gdu
doman gdu.1
einstalldocs
}
src_test() {
# skip tests failing in sandbox
local skip_tests=(
TestDefaultMountTableHasFilesystemIDs
TestReadFromStorageWithErr
TestRemoveStoredFile
TestStoredAnalyzer
TestStoredAnalyzerWithZip
TestStoredDirRemoveFile
TestStoredDirUpdateStats
)
ego test ./... -skip "$(IFS='|'; echo "${skip_tests[*]}")"
}
|