From 10a1662b44fb397234fa3a1a4ac2af2e6156bed6 Mon Sep 17 00:00:00 2001 From: elbachir-one Date: Mon, 17 Aug 2026 22:13:32 +0100 Subject: [PATCH] libxo: update to 2.0.0 --- srcpkgs/libxo/patches/fix-gettext.patch | 29 +++++++++++++++++++++++++ srcpkgs/libxo/template | 9 ++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/libxo/patches/fix-gettext.patch diff --git a/srcpkgs/libxo/patches/fix-gettext.patch b/srcpkgs/libxo/patches/fix-gettext.patch new file mode 100644 index 00000000000000..c9a9a703c47f42 --- /dev/null +++ b/srcpkgs/libxo/patches/fix-gettext.patch @@ -0,0 +1,29 @@ +--- a/configure 2026-08-17 22:22:13.630438436 +0100 ++++ b/configure 2026-08-17 22:51:54.251923145 +0100 +@@ -15753,17 +15753,18 @@ + + GETTEXT_LIBDIR=${GETTEXT_PREFIX}/lib + +-if test -x ${GETTEXT_PREFIX}/bin/msgfmt ; then +- GETTEXT_BINDIR=${GETTEXT_PREFIX}/bin +-elif test -x ${GETTEXT_PREFIX}/local/bin/msgfmt ; then +- GETTEXT_BINDIR=${GETTEXT_PREFIX}/local/bin +-else +- { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 ++if test "$GETTEXT_ENABLE" != "no"; then ++ if test -x ${GETTEXT_PREFIX}/bin/msgfmt ; then ++ GETTEXT_BINDIR=${GETTEXT_PREFIX}/bin ++ elif test -x ${GETTEXT_PREFIX}/local/bin/msgfmt ; then ++ GETTEXT_BINDIR=${GETTEXT_PREFIX}/local/bin ++ else ++ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 + printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} + as_fn_error $? "\"could not find msgfmt tool\" + See 'config.log' for more details" "$LINENO" 5; } +- # Use a (bad) fall back value +- GETTEXT_BINDIR=${GETTEXT_PREFIX}/bin ++ GETTEXT_BINDIR=${GETTEXT_PREFIX}/bin ++ fi + fi + + diff --git a/srcpkgs/libxo/template b/srcpkgs/libxo/template index 4278a28f9bec66..41f831d953d7aa 100644 --- a/srcpkgs/libxo/template +++ b/srcpkgs/libxo/template @@ -1,14 +1,19 @@ # Template file for 'libxo' pkgname=libxo -version=1.7.5 +version=2.0.0 revision=1 build_style=gnu-configure +configure_args="--disable-gettext" +hostmakedepends="byacc" short_desc="Library for programs to output XML, JSON and HTML" maintainer="Orphaned " license="BSD-2-Clause" homepage="https://juniper.github.io/libxo/libxo-manual.html" +changelog="https://github.com/Juniper/libxo/releases" distfiles="https://github.com/Juniper/libxo/releases/download/${version}/libxo-${version}.tar.gz" -checksum=d12249ffad3ef04b160e6419adf1bbe7e593a60bb23f0a0a077fa780b214934a +checksum=982de1877309dd9d57f4cabf2c8bbf42c1c15dc402cd8586ab1e4eabaea298eb + +CFLAGS+=" -std=gnu17" case $XBPS_TARGET_MACHINE in *-musl)