extractpdfmark: fix build with gettext 0.25

This commit is contained in:
TomaSajt
2025-07-16 16:35:44 +02:00
committed by Florian Brandes
parent 653b8e975f
commit cc868aaade
2 changed files with 27 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
diff --git a/configure.ac b/configure.ac
index 2e7d562..c8dd741 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,10 @@ AC_INIT([Extract PDFmark], [1.1.1], , [extractpdfmark],
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/main.cc])
AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIRS([m4])
+
+AM_GNU_GETTEXT_VERSION([0.25])
+AM_GNU_GETTEXT([external])
PACKAGE_COPYRIGHT="Copyright (C) 2016-2022 Masamichi Hosoda"
PACKAGE_LICENSE="License: GPL3+"

View File

@@ -20,22 +20,28 @@ stdenv.mkDerivation rec {
hash = "sha256-pNc/SWAtQWMbB2+lIQkJdBYSZ97iJXK71mS59qQa7Hs=";
};
patches = [
./gettext-0.25.patch
];
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
ghostscript
poppler
texlive.combined.scheme-minimal
];
postPatch = ''
touch config.rpath
'';
doCheck = true;
nativeCheckInputs = [
ghostscript
texlive.combined.scheme-minimal
];
meta = with lib; {
homepage = "https://github.com/trueroad/extractpdfmark";
description = "Extract page mode and named destinations as PDFmark from PDF";