Skip to content

Commit

Permalink
gscan2pdf: 2.3.0 -> 2.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pacien authored and Matthieu Coudron committed Aug 19, 2019
1 parent d022202 commit 187f634
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions pkgs/applications/graphics/gscan2pdf/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{ stdenv, fetchurl, perlPackages, wrapGAppsHook,
# libs
librsvg, sane-backends, sane-frontends,
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper,
xvfb_run, hicolor-icon-theme, liberation_ttf, file, pdftk }:
# runtime dependencies
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper, pdftk,
# test dependencies
xvfb_run, liberation_ttf, file, tesseract }:

with stdenv.lib;

perlPackages.buildPerlPackage rec {
pname = "gscan2pdf";
version = "2.3.0";
version = "2.5.5";

src = fetchurl {
url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
sha256 = "0mcsmly0j9pmyzh6py8r6sfa30hc6gv300hqq3dxj4hv653vhkk9";
sha256 = "0gfhjmv768hx2l3jk2mjhh1snkgkaddgw70s14jq8kxhhzvhlmv8";
};

nativeBuildInputs = [ wrapGAppsHook ];
Expand Down Expand Up @@ -66,7 +69,8 @@ perlPackages.buildPerlPackage rec {
--prefix PATH : "${djvulibre}/bin" \
--prefix PATH : "${poppler_utils}/bin" \
--prefix PATH : "${ghostscript}/bin" \
--prefix PATH : "${unpaper}/bin"
--prefix PATH : "${unpaper}/bin" \
--prefix PATH : "${pdftk}/bin"
'';

enableParallelBuilding = true;
Expand All @@ -76,16 +80,17 @@ perlPackages.buildPerlPackage rec {
outputs = [ "out" "man" ];

checkInputs = [
xvfb_run
hicolor-icon-theme
imagemagick
libtiff
djvulibre
poppler_utils
ghostscript
file
pdftk
unpaper
pdftk

xvfb_run
file
tesseract # tests are expecting tesseract 3.x precisely
];

checkPhase = ''
Expand All @@ -97,7 +102,6 @@ perlPackages.buildPerlPackage rec {
description = "A GUI to produce PDFs or DjVus from scanned documents";
homepage = http://gscan2pdf.sourceforge.net/;
license = licenses.gpl3;
maintainers = [ maintainers.pacien ];
maintainers = with maintainers; [ pacien ];
};
}

0 comments on commit 187f634

Please sign in to comment.