Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions srcpkgs/libxo/patches/fix-gettext.patch
Original file line number Diff line number Diff line change
@@ -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


9 changes: 7 additions & 2 deletions srcpkgs/libxo/template
Original file line number Diff line number Diff line change
@@ -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 <orphan@voidlinux.org>"
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)
Expand Down