repo/gentoo:master commit in: sys-apps/miller/
"Joonas Niilola" <[email protected]> Mon, 03 Aug 2026 14:40:44 +0000 (UTC)
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1785768040.587b2bdb264afb065cc25eeadcd11a5a785c2ecf.juippis@gentoo> |
commit: 587b2bdb264afb065cc25eeadcd11a5a785c2ecf
Author: D. Ben Knoble <ben.knoble <AT> gmail <DOT> com>
AuthorDate: Tue Jul 14 22:01:52 2026 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Aug 3 14:40:40 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=587b2bdb
sys-apps/miller: add 6.20.2
A tiny note (for myself) on processing license information: using
dev-go/go-licenses is handy, but I couldn't find an easy to way to
include the deps tarball in
/var/tmp/portage/sys-apps/miller-6.20.2/work/go-mod. So I did the
following hack:
cd /var/tmp/portage/sys-apps/miller-6.20.2/work/miller-6.20.2
go mod vendor
find vendor/ -name LICENSE -exec sh -c 'cd "$(dirname "$0")" && go-licenses report ./...' {} \; 2>/dev/null |
awk -F, '{print $3}' | sort | uniq
This doesn't include the main (BSD-2) license of the actual Miller repo,
though, so don't forget that one.
Closes: https://bugs.gentoo.org/931824
Signed-off-by: D. Ben Knoble <ben.knoble <AT> gmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1345
Merges: https://codeberg.org/gentoo/gentoo/pulls/1345
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-apps/miller/Manifest | 2 ++
sys-apps/miller/miller-6.20.2.ebuild | 38 ++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/sys-apps/miller/Manifest b/sys-apps/miller/Manifest
index fc55dd8aca9d..37cc0517f8d7 100644
--- a/sys-apps/miller/Manifest
+++ b/sys-apps/miller/Manifest
@@ -1 +1,3 @@
DIST miller-5.10.2.tar.gz 6192382 BLAKE2B 73daf0ca8a5417890e060b04103c4542f1122c13a9a13271dc53e94c4fdf0610dcad5ab04729326fd4ab72b47673db9fdf5aacc5a4ca5330c3220046e4d8a38b SHA512 be40611b055d94f3b0ef75b35dfd242dd4942dce3292bb01b48a6a12f9e4c09fc43bb9d0650902c7aa13328d9a2bbcea4da2964af58d07f39ae63b34712a45f5
+DIST miller-6.20.2-deps.tar.xz 107831792 BLAKE2B 1f568e89594fb10f0b44af629721aca91b09c8e24c620c88242985d67f11d33f31042fcc42054b9b0f6ca5ea8985cc76380be5eda4017088b0c9332d4dd4bfc9 SHA512 c883cd830db5650831ba757ff9329240e321c90eb361ebbc327f7c18d219127d5870b54f1d0cdede633bac8b763b24a439c53d2d4e8a4e3d40adb66e9303d676
+DIST miller-6.20.2.tar.gz 12549860 BLAKE2B 90e3fc5dc768b225071a583ca7f81175ab91ed2ba8add12ab7d88f6b14625a149ccf7b9bdd8af0eea0e7dd2102d648a00da39b71f35b44d36651204dbbaf4169 SHA512 4bd5add6c2cd731b3032f86702f1802e39b1bd9c2b9eb0279d9df15d07a30c0c9f5bd66431be3261c2971394ea6fa4d30e98d767edff7d31039adf45e602148d
diff --git a/sys-apps/miller/miller-6.20.2.ebuild b/sys-apps/miller/miller-6.20.2.ebuild
new file mode 100644
index 000000000000..20dc42a48530
--- /dev/null
+++ b/sys-apps/miller/miller-6.20.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+inherit go-module
+
+DESCRIPTION="Tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)"
+HOMEPAGE="https://johnkerl.org/miller/doc/index.html"
+# upstream's "packager tarball" doesn't include the docs directory, so use the
+# original source
+SRC_URI="https://github.com/johnkerl/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+BDEPEND="
+ >=dev-lang/go-1.25.0
+"
+
+src_compile() {
+ ego build github.com/johnkerl/miller/v6/cmd/mlr
+}
+
+src_test() {
+ ego test github.com/johnkerl/miller/v6/pkg/...
+ ego test -v regression_test.go
+}
+
+src_install() {
+ dobin mlr
+
+ einstalldocs
+
+ doman man/mlr.1
+}