extractpdfmark: fix build with gettext 0.25
This commit is contained in:
15
pkgs/by-name/ex/extractpdfmark/gettext-0.25.patch
Normal file
15
pkgs/by-name/ex/extractpdfmark/gettext-0.25.patch
Normal 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+"
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user