diff --git a/textproc/libfyaml/Makefile b/textproc/libfyaml/Makefile index ff9eedfaa47f..3f49ee6909db 100644 --- a/textproc/libfyaml/Makefile +++ b/textproc/libfyaml/Makefile @@ -1,32 +1,30 @@ PORTNAME= libfyaml -DISTVERSION= 0.9 -PORTREVISION= 1 +DISTVERSION= 0.9.3 CATEGORIES= textproc MASTER_SITES= https://github.com/pantoniou/libfyaml/releases/download/v${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= YAML parser and emitter WWW= https://github.com/pantoniou/libfyaml LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= git:devel/git \ bash:shells/bash USES= gmake libtool shebangfix # will change to cmake soon USE_LDCONFIG= yes SHEBANG_FILES= test/testemitter.test GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share INSTALL_TARGET= install-strip -TEST_TARGET= check # one test fails, see https://github.com/pantoniou/libfyaml/issues/103 +TEST_TARGET= check post-patch: - @${GREP} -rl "#include " ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -E "s|#include |#include |" + ${GREP} -rl "#include " ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -E "s|#include |#include |" .include diff --git a/textproc/libfyaml/distinfo b/textproc/libfyaml/distinfo index 1f364c1380b1..156b077e9bbe 100644 --- a/textproc/libfyaml/distinfo +++ b/textproc/libfyaml/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1704445564 -SHA256 (libfyaml-0.9.tar.gz) = 7731edc5dfcc345d5c5c9f6ce597133991a689dabede393cd77bae89b327cd6d -SIZE (libfyaml-0.9.tar.gz) = 875608 +TIMESTAMP = 1769785450 +SHA256 (libfyaml-0.9.3.tar.gz) = d4541c36ae726f51e9df22dd8ac1a19d122666060daf3806e37b848d4c73a8ed +SIZE (libfyaml-0.9.3.tar.gz) = 1076446 diff --git a/textproc/libfyaml/files/patch-src_lib_fy-doc.c b/textproc/libfyaml/files/patch-src_lib_fy-doc.c new file mode 100644 index 000000000000..2686afa55e4e --- /dev/null +++ b/textproc/libfyaml/files/patch-src_lib_fy-doc.c @@ -0,0 +1,38 @@ +--- src/lib/fy-doc.c.orig 2026-01-13 20:43:43 UTC ++++ src/lib/fy-doc.c +@@ -9,6 +9,8 @@ + #include "config.h" + #endif + ++#include ++ + #include + #include + #include +@@ -5753,7 +5755,7 @@ static int fy_node_mapping_sort_cmp( + } + + static int fy_node_mapping_sort_cmp( +-#ifdef __APPLE__ ++#if defined(__APPLE__) || __FreeBSD_version < 1400000 + void *arg, const void *a, const void *b + #else + const void *a, const void *b, void *arg +@@ -5775,7 +5777,7 @@ static int fy_node_mapping_sort_cmp_no_qsort_r(const v + + static int fy_node_mapping_sort_cmp_no_qsort_r(const void *a, const void *b) + { +-#ifdef __APPLE__ ++#if defined(__APPLE__) || __FreeBSD_version < 1400000 + return fy_node_mapping_sort_cmp( + fy_node_mapping_sort_ctx_no_qsort_r, + a, b); +@@ -5892,7 +5894,7 @@ void fy_node_mapping_perform_sort(struct fy_node *fyn_ + ctx.fynpp = fynpp; + ctx.count = count; + #if defined(HAVE_QSORT_R) && HAVE_QSORT_R && !defined(__EMSCRIPTEN__) +-#ifdef __APPLE__ ++#if defined(__APPLE__) || __FreeBSD_version < 1400000 + qsort_r(fynpp, count, sizeof(*fynpp), &ctx, fy_node_mapping_sort_cmp); + #else + qsort_r(fynpp, count, sizeof(*fynpp), fy_node_mapping_sort_cmp, &ctx);