mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 13:35:13 +00:00
Adding pdf2djvu, updating djvulibre, and getting more headers from poppler.
svn path=/nixpkgs/trunk/; revision=14760
This commit is contained in:
parent
ef12e6757c
commit
40b58959a5
@ -1,11 +1,11 @@
|
|||||||
args: with args;
|
args: with args;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "djvulibre-3.5.19";
|
name = "djvulibre-3.5.21";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/djvu/djvulibre-3.5.19.tar.gz;
|
url = mirror://sourceforge/djvu/djvulibre-3.5.21.tar.gz;
|
||||||
sha256 = "0y6d9ka42llm7h64fc73s4wqcbxg31kallyfaarhkqsxyiaa3zsp";
|
sha256 = "39f80c1810be22c5ea7f6a44bbb449c3e29902895dcff9da6a8440891a67b8b4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [qt libX11 libjpeg libtiff libpng ghostscript zlib libungif x11 mesa];
|
buildInputs = [qt libX11 libjpeg libtiff libpng ghostscript zlib libungif x11 mesa];
|
||||||
|
@ -16,7 +16,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ (if qt4Support then [qt4] else []);
|
++ (if qt4Support then [qt4] else []);
|
||||||
|
|
||||||
configureFlags = "--enable-shared --disable-static --enable-exceptions
|
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");
|
+ (if qt4Support then "--enable-qt-poppler" else "--disable-qt-poppler");
|
||||||
|
|
||||||
patches = [ ./GDir-const.patch ./use_exceptions.patch ];
|
patches = [ ./GDir-const.patch ./use_exceptions.patch ];
|
||||||
|
18
pkgs/tools/typesetting/pdf2djvu/default.nix
Normal file
18
pkgs/tools/typesetting/pdf2djvu/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
@ -1087,6 +1087,10 @@ let
|
|||||||
inherit fetchurl stdenv zlib;
|
inherit fetchurl stdenv zlib;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pdf2djvu = import ../tools/typesetting/pdf2djvu {
|
||||||
|
inherit fetchurl stdenv pkgconfig djvulibre poppler fontconfig libjpeg;
|
||||||
|
};
|
||||||
|
|
||||||
pdfjam = import ../tools/typesetting/pdfjam {
|
pdfjam = import ../tools/typesetting/pdfjam {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user