Unverified Commit f7543323 authored by TomaSajt's avatar TomaSajt
Browse files

extractpdfmark: fix build with gettext 0.25

parent 69975df0
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
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+"
+12 −6
Original line number Diff line number Diff line
@@ -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";