pdfgrep: 1.3.1 -> 2.0.1
This commit is contained in:
parent
1ece82dc95
commit
fead9a62eb
@ -1,26 +1,28 @@
|
|||||||
{ fetchurl, stdenv, pkgconfig, poppler, makeWrapper }:
|
{ stdenv, fetchurl, pkgconfig, poppler, libgcrypt, pcre, asciidoc }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pdfgrep-${version}";
|
name = "pdfgrep-${version}";
|
||||||
version = "1.3.1";
|
version = "2.0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/project/pdfgrep/${version}/${name}.tar.gz";
|
url = "https://pdfgrep.org/download/${name}.tar.gz";
|
||||||
sha256 = "6e8bcaf8b219e1ad733c97257a97286a94124694958c27506b2ea7fc8e532437";
|
sha256 = "07llkrkcfjwd3ybai9ad10ybhr0biffcplmy7lw4fb87nd2dfw03";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig poppler makeWrapper ];
|
postPatch = ''
|
||||||
|
for i in ./src/search.h ./src/pdfgrep.cc ./src/search.cc; do
|
||||||
patchPhase = ''
|
substituteInPlace $i --replace '<cpp/' '<'
|
||||||
sed -i -e "s%cpp/poppler-document.h%poppler/cpp/poppler-document.h%" pdfgrep.cc
|
done
|
||||||
sed -i -e "s%cpp/poppler-page.h%poppler/cpp/poppler-page.h%" pdfgrep.cc
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig asciidoc ];
|
||||||
|
buildInputs = [ poppler libgcrypt pcre ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A tool to search text in PDF files";
|
description = "Commandline utility to search text in PDF files";
|
||||||
homepage = http://pdfgrep.sourceforge.net/;
|
homepage = https://pdfgrep.org/;
|
||||||
license = stdenv.lib.licenses.free;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
maintainers = with stdenv.lib.maintainers; [qknight];
|
maintainers = with stdenv.lib.maintainers; [ qknight fpletz ];
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user