leptonica: enable check phase

+ parallel building and checking is faster
+ clarify licensing (BSD-2)
This commit is contained in:
Renaud 2019-05-10 23:51:46 +02:00 committed by GitHub
parent cc3d0f4acf
commit 57fefacf70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig { stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, which, gnuplot
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib , giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
}: }:
@ -13,12 +13,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ]; buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
enableParallelBuilding = true;
checkInputs = [ which gnuplot ];
doCheck = true;
meta = { meta = {
description = "Image processing and analysis library"; description = "Image processing and analysis library";
homepage = http://www.leptonica.org/; homepage = http://www.leptonica.org/;
# Its own license: http://www.leptonica.org/about-the-license.html license = stdenv.lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.unix;
}; };
} }