From 8d9872b539b8491d050ac3bba32028f255f29ed4 Mon Sep 17 00:00:00 2001 From: Marek Benc Date: Mon, 15 Sep 2014 07:51:01 +0200 Subject: gnu: Add jbig2dec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/image.scm (jbig2dec): New variable. * gnu/packages/patches/jbig2dec-ignore-testtest.patch: New file. * gnu-system.am (dist_patch_DATA): Added the above patch. Signed-off-by: Ludovic Courtès --- gnu/packages/image.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/image.scm') diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 1536378d4f..112b9573d7 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -156,3 +156,32 @@ (define-public libwmf ;; 'COPYING' is the GPLv2, but file headers say LGPLv2.0+. (license license:lgpl2.0+))) + +(define-public jbig2dec + (package + (name "jbig2dec") + (version "0.11") + (source + (origin + (method url-fetch) + (uri ;; The link on the homepage is dead. + (string-append "http://distfiles.gentoo.org/distfiles/" name "-" + version ".tar.gz")) + (sha256 + (base32 "1ffhgmf2fqzk0h4k736pp06z7q5y4x41fg844bd6a9vgncq86bby")) + (patches (list (search-patch "jbig2dec-ignore-testtest.patch"))))) + + (build-system gnu-build-system) + (synopsis "Decoder of the JBIG2 image compression format") + (description + "JBIG2 is designed for lossy or lossless encoding of 'bilevel' +(1-bit monochrome) images at moderately high resolution, and in +particular scanned paper documents. In this domain it is very +efficient, offering compression ratios on the order of 100:1. + +This is a decoder only implementation, and currently is in the alpha +stage, meaning it doesn't completely work yet. However, it is +maintaining parity with available encoders, so it is useful for real +work.") + (home-page "http://jbig2dec.sourceforge.net/") + (license license:gpl2+))) -- cgit v1.2.3