https://github.com/jqlang/jq/releases/tag/jq-1.7

one tiny test wrt. colors as part of the the shtest script fails,
perhaps that script(1) related, otherwise 7/8 PASS on amd64.

Works for me.

Feedback? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/jq/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    11 Mar 2022 20:02:38 -0000      1.14
+++ Makefile    7 Sep 2023 09:50:27 -0000
@@ -1,31 +1,33 @@
 COMMENT =              lightweight and flexible command-line JSON processor
 
-V =                    1.6
+V =                    1.7
 DISTNAME =             jq-$V
-REVISION =             0
 
-# prevent clobbering existing distfile
-DISTFILES =            ${DISTNAME}-new{${DISTNAME}}${EXTRACT_SUFX}
-
-SHARED_LIBS += jq                        1.0 # 1.4
+SHARED_LIBS += jq                        2.0 # 1.4
 
 CATEGORIES =           textproc
 
-HOMEPAGE =             http://stedolan.github.io/jq/
+HOMEPAGE =             jqlang.github.io/jq/
 
 # MIT (code), CC-BY-3.0 (docs)
 PERMIT_PACKAGE =       Yes
 
 # uses pledge()
-WANTLIB += c m onig
+WANTLIB += c m onig pthread
 
 LIB_DEPENDS =          textproc/oniguruma
 
-MASTER_SITES =         https://github.com/stedolan/jq/releases/download/jq-$V/
+SITES =                        
https://github.com/jqlang/jq/releases/download/jq-$V/
 
 USE_GMAKE =            Yes
 
 CONFIGURE_STYLE =      gnu
 CONFIGURE_ARGS =       --with-oniguruma=${LOCALBASE}
+
+# no need for python to regenerate existing docs and manual
+CONFIGURE_ARGS +=      --disable-docs
+
+# makes all tests fail with SIGILL
+CONFIGURE_ARGS +=      --disable-valgrind
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/jq/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo    4 Oct 2019 12:45:12 -0000       1.5
+++ distinfo    7 Sep 2023 09:44:03 -0000
@@ -1,2 +1,2 @@
-SHA256 (jq-1.6-new.tar.gz) = XejI4pqqP7nMa0e7JymfJxNU67clFOOsytx9OLW7qnI=
-SIZE (jq-1.6-new.tar.gz) = 1750584
+SHA256 (jq-1.7.tar.gz) = QCoNaXXZRub05ITRqEMgQUoP+Ots9J0sEdFE1NNE22I=
+SIZE (jq-1.7.tar.gz) = 1905863
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/textproc/jq/patches/patch-configure,v
retrieving revision 1.3
diff -u -p -r1.3 patch-configure
--- patches/patch-configure     11 Mar 2022 20:02:38 -0000      1.3
+++ patches/patch-configure     7 Sep 2023 09:35:01 -0000
@@ -1,7 +1,7 @@
 Index: configure
 --- configure.orig
 +++ configure
-@@ -19142,7 +19142,7 @@ $as_echo_n "checking for thread-local storage... " >&6
+@@ -20799,7 +20799,7 @@ printf %s "checking for thread-local storage... " >&6;
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
Index: patches/patch-main_c
===================================================================
RCS file: /cvs/ports/textproc/jq/patches/patch-main_c,v
retrieving revision 1.4
diff -u -p -r1.4 patch-main_c
--- patches/patch-main_c        11 Mar 2022 20:02:38 -0000      1.4
+++ patches/patch-main_c        7 Sep 2023 09:35:01 -0000
@@ -1,8 +1,8 @@
 Index: src/main.c
 --- src/main.c.orig
 +++ src/main.c
-@@ -264,6 +264,11 @@ int main(int argc, char* argv[]) {
-   }
+@@ -334,6 +334,11 @@ int main(int argc, char* argv[]) {
+   _setmode(fileno(stderr), _O_TEXT | _O_U8TEXT);
  #endif
  
 +  if (pledge("stdio getpw rpath", NULL) == -1) {
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/jq/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   11 Mar 2022 20:02:38 -0000      1.3
+++ pkg/PLIST   7 Sep 2023 09:36:23 -0000
@@ -1,12 +1,13 @@
 @bin bin/jq
 include/jq.h
 include/jv.h
-lib/libjq.a
+@static-lib lib/libjq.a
 lib/libjq.la
 @lib lib/libjq.so.${LIBjq_VERSION}
+lib/pkgconfig/libjq.pc
 @man man/man1/jq.1
 share/doc/jq/
 share/doc/jq/AUTHORS
 share/doc/jq/COPYING
-share/doc/jq/README
+share/doc/jq/NEWS.md
 share/doc/jq/README.md

Reply via email to