Сравнение miller-5.10.2 с miller-6.20.2

/usr/portage/sys-apps/miller/miller-6.20.2.ebuild 2026-09-22 20:03:05.261817371 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=9
5 5

  
6
inherit autotools
6
inherit go-module
7 7

  
8
DESCRIPTION="A tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)"
8
DESCRIPTION="Tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)"
9 9
HOMEPAGE="https://johnkerl.org/miller/doc/index.html"
10
SRC_URI="https://github.com/johnkerl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
10
# upstream's "packager tarball" doesn't include the docs directory, so use the
11
# original source
12
SRC_URI="https://github.com/johnkerl/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
13
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz"
11 14

  
12
LICENSE="BSD-2"
15
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT Unlicense"
13 16
SLOT="0"
14 17
KEYWORDS="amd64 arm x86"
15
IUSE="doc test"
16
RESTRICT="!test? ( test )"
17 18

  
18
DEPEND="app-alternatives/lex"
19
BDEPEND="
20
	>=dev-lang/go-1.25.0
21
"
19 22

  
20
src_prepare() {
21
	default
22

  
23
	# Respect flags
24
	find -type f -name "Makefile.am" -exec sed -i -r -e '/.*FLAGS[^=]*=/ s:(-g|-pg|-O[0-9]) ::g' -- {} \; || die
25

  
26
	# Disable docs rebuilding as they're shipped prebuilt
27
	sed -e '/SUBDIRS[^=]*=/ s:doc::g' -i -- Makefile.am || die
28

  
29
	# Disable building tests automagically
30
	if ! use test; then
31
		sed -e '/SUBDIRS[^=]*=/ s:[^ ]*_test::g' -i -- c/Makefile.am || die
32
	fi
33

  
34
	eautoreconf
23
src_compile() {
24
	ego build github.com/johnkerl/miller/v6/cmd/mlr
35 25
}
36 26

  
37 27
src_test() {
38
	emake -C c/reg_test
39
	emake -C c/unit_test
28
	ego test github.com/johnkerl/miller/v6/pkg/...
29
	ego test -v regression_test.go
40 30
}
41 31

  
42 32
src_install() {
43
	local HTML_DOCS=( $(usex doc docs '') )
33
	dobin mlr
44 34

  
45
	default
35
	einstalldocs
46 36

  
47
	doman docs/mlr.1
37
	doman man/mlr.1
48 38
}
Спасибо!