Re: update textproc/miller --> 6.12.0

2024-04-17 Thread Stuart Henderson
On 2024/04/17 17:07, Paco Esteban wrote:
> Hi ports@,
> 
> This is an update of textproc/miller to its latest version 6.12.0
> Upstream rewrote the tool in Go (previously C), so this is an entire
> different port really.
> 
> Builds, tests pass and works for me on amd64.
> I had to override some targets as they do things not in the standard Go
> way.
> 
> Ok to commit ?

Small tweak (I thought of something to test after my suggestion ;) then it's ok:

# zip file contains a UTF-8 character; rename it, but allow the rename to fail 
in
# case the iconv flavour of unzip is already installed
post-extract:
-cd ${WRKSRC} && mv test/input/datos-pluriling{++,ü}es.csv



update textproc/miller --> 6.12.0

2024-04-17 Thread Paco Esteban
Hi ports@,

This is an update of textproc/miller to its latest version 6.12.0
Upstream rewrote the tool in Go (previously C), so this is an entire
different port really.

Builds, tests pass and works for me on amd64.
I had to override some targets as they do things not in the standard Go
way.

Ok to commit ?

diff refs/heads/master 4a53dad3614a1c663a336a6c1a070f96087e7e59
commit - 5e543d4d846455537d0016c56a39cd0e57e4debf
commit + 4a53dad3614a1c663a336a6c1a070f96087e7e59
blob - aa94d56001a8ecc60b156bb55d1397e1ec8de9fe
blob + a87f67d53246bf171f7d067cc92e466dfc5de5b5
--- textproc/miller/Makefile
+++ textproc/miller/Makefile
@@ -1,18 +1,36 @@
 COMMENT =  name-indexed data processing tool
 
-GH_ACCOUNT =   johnkerl
-GH_PROJECT =   miller
-GH_TAGNAME =   v5.10.4
+MODGO_MODNAME =github.com/johnkerl/miller
+MODGO_VERSION =v1.0.2-0.20240316211905-a0bead409304
 
+DISTNAME = miller-6.12.0
+
 CATEGORIES =   textproc
 
-HOMEPAGE = https://johnkerl.org/miller/doc/
+HOMEPAGE = https://miller.readthedocs.io
 
 # BSD
 PERMIT_PACKAGE =   Yes
 
-WANTLIB += c m
+WANTLIB += c pthread
 
-CONFIGURE_STYLE = gnu
+MODULES =  lang/go
 
+post-extract:
+   cd ${WRKSRC} && mv test/input/datos-pluriling{++,ü}es.csv
+
+do-build:
+   cd ${WRKSRC} && ${MODGO_CMD} build ${MODGO_FLAGS} ./cmd/mlr
+
+do-test:
+   cd ${WRKSRC} && \
+   ${MODGO_CMD} test ${MODGO_FLAGS} ${MODGO_TEST_FLAGS} ./pkg/...
+   cd ${WRKSRC} && \
+   ${MODGO_CMD} test ${MODGO_FLAGS} ${MODGO_TEST_FLAGS} 
regression_test.go
+
+do-install:
+   ${INSTALL_PROGRAM} ${WRKSRC}/mlr ${PREFIX}/bin
+   ${INSTALL_MAN} ${WRKSRC}/man/mlr.1 ${PREFIX}/man/man1
+
+.include "modules.inc"
 .include 
blob - 2940c1e47497265186508d533c5d37505c5f4f0c
blob + bf6c740854be43bb83de1b6b4d85c9fd8cfc23ef
--- textproc/miller/distinfo
+++ textproc/miller/distinfo
@@ -1,2 +1,130 @@
-SHA256 (miller-5.10.4.tar.gz) = iQdeT5VxViz+K5rzXkQovfV0CwmqZfqzg4OBB1+UNsI=
-SIZE (miller-5.10.4.tar.gz) = 6280883
+SHA256 (go_modules/github.com/chzyer/logex/@v/v1.1.10.mod) = 
99MQTqxMVnTcSEfPWxGTwuA70k/lISQ6NNcscJrYOjo=
+SHA256 (go_modules/github.com/chzyer/logex/@v/v1.1.10.zip) = 
LJR3HB4zWixYqWREs3aLjgApd0fWzn58FLqy6LOdkb0=
+SHA256 
(go_modules/github.com/chzyer/readline/@v/v0.0.0-20180603132655-2972be24d48e.mod)
 = kAt5fFMfLfGC5DGolezTEJqs/t/d2rI6SPfAqdWnVlk=
+SHA256 
(go_modules/github.com/chzyer/readline/@v/v0.0.0-20180603132655-2972be24d48e.zip)
 = PchCZ3iHJ4+zPSUHjTda5qepS7d6jSBe4iMLWBtpR6Y=
+SHA256 
(go_modules/github.com/chzyer/test/@v/v0.0.0-20180213035817-a1ea475d72b1.mod) = 
0HXE5LZiTqb4AxiDyNZv9DCrwv/h+06Jw7kRVpnynDs=
+SHA256 
(go_modules/github.com/chzyer/test/@v/v0.0.0-20180213035817-a1ea475d72b1.zip) = 
rYVQvtPEqUu+9XufxbsVgG6s7aAJJXFkBDIFgNYOL30=
+SHA256 (go_modules/github.com/davecgh/go-spew/@v/v1.1.0.mod) = 
vLKTkyUSN7eaF7bBm/KRNPQ+j0OMMZiYj81GGhzfBcw=
+SHA256 (go_modules/github.com/davecgh/go-spew/@v/v1.1.1.mod) = 
vLKTkyUSN7eaF7bBm/KRNPQ+j0OMMZiYj81GGhzfBcw=
+SHA256 (go_modules/github.com/davecgh/go-spew/@v/v1.1.1.zip) = 
a0SoQ5UfNxtwEMdU7MPKvv6BXVztHFuUCfstaX6KiQ0=
+SHA256 
(go_modules/github.com/facette/natsort/@v/v0.0.0-20181210072756-2cd4dd1e2dcb.mod)
 = 8v/3is6w20+9C3sD2n8JICUYvqRGCz2UsTv1vZh/bo4=
+SHA256 
(go_modules/github.com/facette/natsort/@v/v0.0.0-20181210072756-2cd4dd1e2dcb.zip)
 = CM0RESN0v2v5RTRb/e3hFBoLuXNwYpEBb6zAUI7KOuc=
+SHA256 (go_modules/github.com/felixge/fgprof/@v/v0.9.3.mod) = 
G4FCpyTwr69dOnTq+HyFVk1QzegJwKNNz6AmZH+ucx4=
+SHA256 (go_modules/github.com/felixge/fgprof/@v/v0.9.3.zip) = 
LIMmgIes+Ldnvmnbw3wJn6hYVnY8Loj7mWN9Rutqwjw=
+SHA256 
(go_modules/github.com/google/pprof/@v/v0.0.0-20211214055906-6f57359322fd.mod) 
= hzeZ+tgTqpIWXvsMYZn4NPAiTAZIAz+ydNLF6SFghow=
+SHA256 
(go_modules/github.com/google/pprof/@v/v0.0.0-20211214055906-6f57359322fd.zip) 
= +05Skzm4fGLqk3cL9QyDTbDZxqc95EE+mzItFy+HW08=
+SHA256 
(go_modules/github.com/ianlancetaylor/demangle/@v/v0.0.0-20210905161508-09a460cdf81d.mod)
 = ++6V0vip9ymLgFywV1UNxOIYMTnBtoUPPPOhxkevJ/8=
+SHA256 
(go_modules/github.com/ianlancetaylor/demangle/@v/v0.0.0-20210905161508-09a460cdf81d.zip)
 = W73dg8tLikLXQftqK1CCbrvugAxRt6nnXf0r3DcyeKE=
+SHA256 (go_modules/github.com/johnkerl/lumin/@v/v1.0.0.mod) = 
iXgnOH1fEhkVedh2CjOTU1muYaj+jIQsBpy+X1DQ+wI=
+SHA256 (go_modules/github.com/johnkerl/lumin/@v/v1.0.0.zip) = 
dDqGSmh8e30U8e0JdoV9DzGt/Sh74QzWLv6FhBcHMAk=
+SHA256 
(go_modules/github.com/kballard/go-shellquote/@v/v0.0.0-20180428030007-95032a82bc51.mod)
 = SaLWxz9mfcD0YyKg1qz8uhQgm/t2735iLWHhCRli/zQ=
+SHA256 
(go_modules/github.com/kballard/go-shellquote/@v/v0.0.0-20180428030007-95032a82bc51.zip)
 = rky3sJfcTrDCSN/wDtO78PNphMQWKtHWFSZghOWL1sw=
+SHA256 (go_modules/github.com/klauspost/compress/@v/v1.17.7.mod) = 
m6QGTWROiRkC7SIOLAE1/XloXyPG+wybI2j8kXP4H0A=
+SHA256 (go_modules/github.com/klauspost/compress/@v/v1.17.7.zip) = 
gow7ltlzYuIw8mezcp/6+M7dkuOfup7JIXAAGkEg1VA=
+SHA256 
(go_modules/github.com/lestrrat-go/envload/@v/v0.0.0-20180220234015-a