pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libfyaml libfyaml: import version 0.7.12



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2b928fe7f30
branches:  trunk
changeset: 389723:a2b928fe7f30
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Thu Dec 08 19:16:20 2022 +0000

description:
libfyaml: import version 0.7.12

libfyaml is a fancy 1.2 YAML and JSON parser/writer.

Fully feature complete YAML parser and emitter, supporting the latest YAML spec
and passing the full YAML testsuite.

It is designed to be very efficient, avoiding copies of data, and has no
artificial limits like the 1024 character limit for implicit keys.

libfyaml is using https://github.com/yaml/yaml-test-suite as a core part of its
testsuite.

diffstat:

 textproc/libfyaml/DESCR                                        |  10 +
 textproc/libfyaml/Makefile                                     |  22 ++++
 textproc/libfyaml/PLIST                                        |  18 +++
 textproc/libfyaml/distinfo                                     |  17 +++
 textproc/libfyaml/patches/patch-configure.ac                   |  54 ++++++++++
 textproc/libfyaml/patches/patch-include_libfyaml.h             |  16 ++
 textproc/libfyaml/patches/patch-src_internal_libfyaml-parser.c |  15 ++
 textproc/libfyaml/patches/patch-src_lib_fy-atom.c              |  15 ++
 textproc/libfyaml/patches/patch-src_lib_fy-ctype.h             |  16 ++
 textproc/libfyaml/patches/patch-src_lib_fy-diag.c              |  15 ++
 textproc/libfyaml/patches/patch-src_lib_fy-event.c             |  15 ++
 textproc/libfyaml/patches/patch-src_lib_fy-token.c             |  15 ++
 textproc/libfyaml/patches/patch-src_lib_fy-utf8.h              |  16 ++
 textproc/libfyaml/patches/patch-src_tool_fy-tool.c             |  15 ++
 textproc/libfyaml/patches/patch-src_valgrind_fy-valgrind.h     |  15 ++
 textproc/libfyaml/patches/patch-test_libfyaml-test.c           |  15 ++
 16 files changed, 289 insertions(+), 0 deletions(-)

diffs (truncated from 353 to 300 lines):

diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/DESCR   Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,10 @@
+libfyaml is a fancy 1.2 YAML and JSON parser/writer.
+
+Fully feature complete YAML parser and emitter, supporting the latest YAML spec
+and passing the full YAML testsuite.
+
+It is designed to be very efficient, avoiding copies of data, and has no
+artificial limits like the 1024 character limit for implicit keys.
+
+libfyaml is using https://github.com/yaml/yaml-test-suite as a core part of its
+testsuite.
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/Makefile        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+DISTNAME=      libfyaml-0.7.12
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=pantoniou/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/pantoniou/libfyaml/
+COMMENT=       Feature-complete YAML parser and emitter
+LICENSE=       mit
+
+USE_LIBTOOL=   yes
+USE_TOOLS+=    autoconf automake autoreconf
+GNU_CONFIGURE= yes
+
+PKGCONFIG_OVERRIDE+=   libfyaml.pc.in
+
+pre-configure:
+       cd ${WRKSRC} && autoreconf -fvi
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/PLIST   Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/08 19:16:20 khorben Exp $
+bin/fy-compose
+bin/fy-dump
+bin/fy-filter
+bin/fy-join
+bin/fy-testsuite
+bin/fy-tool
+bin/fy-ypath
+include/libfyaml.h
+lib/libfyaml.la
+lib/pkgconfig/libfyaml.pc
+man/man1/fy-compose.1
+man/man1/fy-dump.1
+man/man1/fy-filter.1
+man/man1/fy-join.1
+man/man1/fy-testsuite.1
+man/man1/fy-tool.1
+man/man1/fy-ypath.1
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/distinfo        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: distinfo,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+BLAKE2s (libfyaml-0.7.12.tar.gz) = d3a2986816a70ee0f0155233b7aea9b83de297a57af9932145ebca7bc64576bf
+SHA512 (libfyaml-0.7.12.tar.gz) = 9153563353b167be5a396b71f9a2c7b9b59afde492c7515043b2d94348093bcb65cde823a83d41812b7d20a5a9ed2ed06ca4f30a8c65f842add1a75a28ca113d
+Size (libfyaml-0.7.12.tar.gz) = 354250 bytes
+SHA1 (patch-configure.ac) = 6050829ddfe6d04833190d910c226cef54e4dd91
+SHA1 (patch-include_libfyaml.h) = e50484d638d0fd0ab850d154249b9996cb3f5101
+SHA1 (patch-src_internal_libfyaml-parser.c) = 44567a6ee961bd304b4c3ea677d02d5516374281
+SHA1 (patch-src_lib_fy-atom.c) = 3a5390ea153bb8642cd8c6ebcae06a3d72e87be7
+SHA1 (patch-src_lib_fy-ctype.h) = c90a22b02ffeae77854a7307b400519f395d55fd
+SHA1 (patch-src_lib_fy-diag.c) = 21fd0747fba20c24d557aeaca556e706e5e264bf
+SHA1 (patch-src_lib_fy-event.c) = ac5831f8c65c22ff53577ccd657510f7077f23aa
+SHA1 (patch-src_lib_fy-token.c) = 4ce5422b00f684719d6ada366aa161b575c79c76
+SHA1 (patch-src_lib_fy-utf8.h) = a5249d029a17670928c7512b1a453d604d3befe1
+SHA1 (patch-src_tool_fy-tool.c) = 4ed718d9d0d4ce49cd5e4b4da90d1370c264389a
+SHA1 (patch-src_valgrind_fy-valgrind.h) = 3b2c611bdad32d807e10019c71814ec97f27a1f4
+SHA1 (patch-test_libfyaml-test.c) = 3dd36f405995c54cd157616f8a979c19d323a1c1
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-configure.ac      Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,54 @@
+$NetBSD: patch-configure.ac,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Compatibility fixes
+
+--- configure.ac.orig  2022-01-19 10:32:21.000000000 +0000
++++ configure.ac
+@@ -162,7 +162,7 @@ AC_DEFINE_UNQUOTED([HAVE_CHECK], [$HAVE_
+ AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ])
+ 
+ HAVE_COMPATIBLE_CHECK=0
+-if test "x$HAVE_CHECK" == "x1" ; then
++if test "x$HAVE_CHECK" = "x1" ; then
+       save_LIBS="$LIBS"
+       save_CFLAGS="$CFLAGS"
+       LIBS="$LIBS $CHECK_LIBS"
+@@ -257,7 +257,7 @@ if test "x$SPHINX" != "x" ; then
+       fi
+ 
+       AC_MSG_CHECKING([whether sphinx installation works])
+-      if test "x$HAVE_SPHINX" == "x1" ; then
++      if test "x$HAVE_SPHINX" = "x1" ; then
+               AC_MSG_RESULT([yes])
+       else
+               AC_MSG_RESULT([no])
+@@ -279,25 +279,25 @@ AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE
+ 
+ AC_ARG_VAR(TESTSUITEURL, [Testsuite git repo URL (default: https://github.com/yaml/yaml-test-suite)])
+ 
+-if test "x$TESTSUITEURL" == "x" ; then
++if test "x$TESTSUITEURL" = "x" ; then
+       TESTSUITEURL="https://github.com/yaml/yaml-test-suite";
+ fi
+ 
+ AC_ARG_VAR(TESTSUITECHECKOUT, [Testsuite checkout (default: 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f)])
+ 
+-if test "x$TESTSUITECHECKOUT" == "x" ; then
++if test "x$TESTSUITECHECKOUT" = "x" ; then
+       TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f"
+ fi
+ 
+ AC_ARG_VAR(JSONTESTSUITEURL, [JSON Testsuite git repo URL (default: https://github.com/nst/JSONTestSuite)])
+ 
+-if test "x$JSONTESTSUITEURL" == "x" ; then
++if test "x$JSONTESTSUITEURL" = "x" ; then
+       JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite";
+ fi
+ 
+ AC_ARG_VAR(JSONTESTSUITECHECKOUT, [JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82)])
+ 
+-if test "x$JSONTESTSUITECHECKOUT" == "x" ; then
++if test "x$JSONTESTSUITECHECKOUT" = "x" ; then
+       JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82"
+ fi
+ 
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-include_libfyaml.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-include_libfyaml.h        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-include_libfyaml.h,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- include/libfyaml.h.orig    2022-01-19 10:32:21.000000000 +0000
++++ include/libfyaml.h
+@@ -37,7 +37,7 @@ extern "C" {
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <string.h>
+-#include <alloca.h>
++#include <stdlib.h>
+ 
+ #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
+ #include <unistd.h>
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_internal_libfyaml-parser.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_internal_libfyaml-parser.c    Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_internal_libfyaml-parser.c,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+getopt_long_only is not very portable; use getopt_long instead
+
+--- src/internal/libfyaml-parser.c.orig        2022-12-08 19:03:44.942254815 +0000
++++ src/internal/libfyaml-parser.c
+@@ -3822,7 +3822,7 @@ int main(int argc, char *argv[])
+ 
+       fy_valgrind_check(&argc, &argv);
+ 
+-      while ((opt = getopt_long_only(argc, argv, "I:m:i:w:d:rsc:C:D:M:W:S:qh", lopts, &lidx)) != -1) {
++      while ((opt = getopt_long(argc, argv, "I:m:i:w:d:rsc:C:D:M:W:S:qh", lopts, &lidx)) != -1) {
+               switch (opt) {
+               case 'I':
+                       tmp = alloca(strlen(cfg.search_path) + 1 + strlen(optarg) + 1);
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_lib_fy-atom.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_lib_fy-atom.c Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib_fy-atom.c,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- src/lib/fy-atom.c.orig     2022-01-19 10:32:21.000000000 +0000
++++ src/lib/fy-atom.c
+@@ -17,7 +17,6 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <stdarg.h>
+-#include <alloca.h>
+ #include <ctype.h>
+ 
+ #include <libfyaml.h>
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_lib_fy-ctype.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_lib_fy-ctype.h        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_lib_fy-ctype.h,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- src/lib/fy-ctype.h.orig    2022-01-19 10:32:21.000000000 +0000
++++ src/lib/fy-ctype.h
+@@ -13,7 +13,7 @@
+ #endif
+ 
+ #include <stdint.h>
+-#include <alloca.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
+ 
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_lib_fy-diag.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_lib_fy-diag.c Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib_fy-diag.c,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- src/lib/fy-diag.c.orig     2022-01-19 10:32:21.000000000 +0000
++++ src/lib/fy-diag.c
+@@ -17,7 +17,6 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <stdarg.h>
+-#include <alloca.h>
+ #include <unistd.h>
+ #include <ctype.h>
+ 
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_lib_fy-event.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_lib_fy-event.c        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib_fy-event.c,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- src/lib/fy-event.c.orig    2022-01-19 10:32:21.000000000 +0000
++++ src/lib/fy-event.c
+@@ -17,7 +17,6 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <stdarg.h>
+-#include <alloca.h>
+ 
+ #include <libfyaml.h>
+ 
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_lib_fy-token.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_lib_fy-token.c        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib_fy-token.c,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- src/lib/fy-token.c.orig    2022-01-19 10:32:21.000000000 +0000
++++ src/lib/fy-token.c
+@@ -17,7 +17,6 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <stdarg.h>
+-#include <alloca.h>
+ 
+ #include <libfyaml.h>
+ 
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_lib_fy-utf8.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_lib_fy-utf8.h Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_lib_fy-utf8.h,v 1.1 2022/12/08 19:16:20 khorben Exp $
+
+Replace <alloca.h> by <stdlib.h>
+Already merged upstream (https://github.com/pantoniou/libfyaml/pull/50)
+
+--- src/lib/fy-utf8.h.orig     2022-01-19 10:32:21.000000000 +0000
++++ src/lib/fy-utf8.h
+@@ -13,7 +13,7 @@
+ #endif
+ 
+ #include <stdint.h>
+-#include <alloca.h>
++#include <stdlib.h>
+ #include <assert.h>
+ 
+ #include <libfyaml.h>
diff -r 6443e1e68514 -r a2b928fe7f30 textproc/libfyaml/patches/patch-src_tool_fy-tool.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libfyaml/patches/patch-src_tool_fy-tool.c        Thu Dec 08 19:16:20 2022 +0000
@@ -0,0 +1,15 @@



Home | Main Index | Thread Index | Old Index