gscan2pdf: 2.3.0 -> 2.5.5
This commit is contained in:
parent
d022202b73
commit
187f634953
@ -1,17 +1,20 @@
|
|||||||
{ stdenv, fetchurl, perlPackages, wrapGAppsHook,
|
{ stdenv, fetchurl, perlPackages, wrapGAppsHook,
|
||||||
|
# libs
|
||||||
librsvg, sane-backends, sane-frontends,
|
librsvg, sane-backends, sane-frontends,
|
||||||
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper,
|
# runtime dependencies
|
||||||
xvfb_run, hicolor-icon-theme, liberation_ttf, file, pdftk }:
|
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper, pdftk,
|
||||||
|
# test dependencies
|
||||||
|
xvfb_run, liberation_ttf, file, tesseract }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
perlPackages.buildPerlPackage rec {
|
perlPackages.buildPerlPackage rec {
|
||||||
pname = "gscan2pdf";
|
pname = "gscan2pdf";
|
||||||
version = "2.3.0";
|
version = "2.5.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
|
url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0mcsmly0j9pmyzh6py8r6sfa30hc6gv300hqq3dxj4hv653vhkk9";
|
sha256 = "0gfhjmv768hx2l3jk2mjhh1snkgkaddgw70s14jq8kxhhzvhlmv8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ wrapGAppsHook ];
|
nativeBuildInputs = [ wrapGAppsHook ];
|
||||||
@ -66,7 +69,8 @@ perlPackages.buildPerlPackage rec {
|
|||||||
--prefix PATH : "${djvulibre}/bin" \
|
--prefix PATH : "${djvulibre}/bin" \
|
||||||
--prefix PATH : "${poppler_utils}/bin" \
|
--prefix PATH : "${poppler_utils}/bin" \
|
||||||
--prefix PATH : "${ghostscript}/bin" \
|
--prefix PATH : "${ghostscript}/bin" \
|
||||||
--prefix PATH : "${unpaper}/bin"
|
--prefix PATH : "${unpaper}/bin" \
|
||||||
|
--prefix PATH : "${pdftk}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -76,16 +80,17 @@ perlPackages.buildPerlPackage rec {
|
|||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
xvfb_run
|
|
||||||
hicolor-icon-theme
|
|
||||||
imagemagick
|
imagemagick
|
||||||
libtiff
|
libtiff
|
||||||
djvulibre
|
djvulibre
|
||||||
poppler_utils
|
poppler_utils
|
||||||
ghostscript
|
ghostscript
|
||||||
file
|
|
||||||
pdftk
|
|
||||||
unpaper
|
unpaper
|
||||||
|
pdftk
|
||||||
|
|
||||||
|
xvfb_run
|
||||||
|
file
|
||||||
|
tesseract # tests are expecting tesseract 3.x precisely
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
@ -97,7 +102,6 @@ perlPackages.buildPerlPackage rec {
|
|||||||
description = "A GUI to produce PDFs or DjVus from scanned documents";
|
description = "A GUI to produce PDFs or DjVus from scanned documents";
|
||||||
homepage = http://gscan2pdf.sourceforge.net/;
|
homepage = http://gscan2pdf.sourceforge.net/;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = [ maintainers.pacien ];
|
maintainers = with maintainers; [ pacien ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user