Adding pdf2djvu, updating djvulibre, and getting more headers from poppler.

svn path=/nixpkgs/trunk/; revision=14760
This commit is contained in:
Lluís Batlle i Rossell 2009-03-29 20:32:41 +00:00
parent ef12e6757c
commit 40b58959a5
4 changed files with 27 additions and 4 deletions

View File

@ -1,11 +1,11 @@
args: with args;
stdenv.mkDerivation {
name = "djvulibre-3.5.19";
name = "djvulibre-3.5.21";
src = fetchurl {
url = mirror://sourceforge/djvu/djvulibre-3.5.19.tar.gz;
sha256 = "0y6d9ka42llm7h64fc73s4wqcbxg31kallyfaarhkqsxyiaa3zsp";
url = mirror://sourceforge/djvu/djvulibre-3.5.21.tar.gz;
sha256 = "39f80c1810be22c5ea7f6a44bbb449c3e29902895dcff9da6a8440891a67b8b4";
};
buildInputs = [qt libX11 libjpeg libtiff libpng ghostscript zlib libungif x11 mesa];

View File

@ -16,7 +16,8 @@ stdenv.mkDerivation rec {
++ (if qt4Support then [qt4] else []);
configureFlags = "--enable-shared --disable-static --enable-exceptions
--enable-cairo --enable-splash --enable-poppler-glib --enable-zlib "
--enable-cairo --enable-splash --enable-poppler-glib --enable-zlib
--enable-xpdf-headers "
+ (if qt4Support then "--enable-qt-poppler" else "--disable-qt-poppler");
patches = [ ./GDir-const.patch ./use_exceptions.patch ];

View File

@ -0,0 +1,18 @@
{stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }:
stdenv.mkDerivation {
name = "pdf2djvu-0.5.3";
src = fetchurl {
url = http://pdf2djvu.googlecode.com/files/pdf2djvu_0.5.3.tar.gz;
sha256 = "b36b958fc395dc8976485bef09aac2b97435d0d9f21b4cf8dacaa5b55f3f2c1c";
};
buildInputs = [ pkgconfig djvulibre poppler fontconfig libjpeg ];
meta = {
description = "Creates djvu files from PDF files";
homepage = http://code.google.com/p/pdf2djvu/;
license = "GPLv2";
};
}

View File

@ -1087,6 +1087,10 @@ let
inherit fetchurl stdenv zlib;
};
pdf2djvu = import ../tools/typesetting/pdf2djvu {
inherit fetchurl stdenv pkgconfig djvulibre poppler fontconfig libjpeg;
};
pdfjam = import ../tools/typesetting/pdfjam {
inherit fetchurl stdenv;
};