jfbview 0.4.2 -> 0.5.1
Also adds two new tools to the package: jpdfcat (quick and dirty text dumper) and jpdfgrep (PDF search tool with weird syntax).
This commit is contained in:
parent
e4f0c4a494
commit
e727aae8ca
|
@ -1,40 +1,44 @@
|
||||||
{ stdenv, fetchFromGitHub, freetype, imlib2, jbig2dec, libjpeg, libX11, mujs
|
# FIXME: remove gcc49 when the default gcc supports C++1y
|
||||||
, mupdf, ncurses, openjpeg, openssl }:
|
{ stdenv, fetchFromGitHub, freetype, gcc49, imlib2, jbig2dec, libjpeg, libX11
|
||||||
|
, mujs, mupdf, ncurses, openjpeg, openssl }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "0.5.1";
|
||||||
|
binaries = [ "jfbpdf" "jfbview" "jpdfcat" "jpdfgrep" ];
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.4.2"; # TODO: update to 0.5 or later when nixpkgs has caught up
|
|
||||||
name = "jfbview-${version}";
|
name = "jfbview-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
sha256 = "113bkf49q04k9rjps5l28ychmzsfjajp9cjhr433s9ld0972z01m";
|
||||||
|
rev = version;
|
||||||
repo = "JFBView";
|
repo = "JFBView";
|
||||||
owner = "jichu4n";
|
owner = "jichu4n";
|
||||||
rev = version;
|
|
||||||
sha256 = "1hhlzvs0jhygd3mqpzg5zymrbay9c8ilc4wjnwg00lvxhv3rwswr";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ freetype imlib2 jbig2dec libjpeg libX11 mujs mupdf ncurses
|
buildInputs = [ freetype gcc49 imlib2 jbig2dec libjpeg libX11 mujs mupdf
|
||||||
openjpeg openssl ];
|
ncurses openjpeg openssl ];
|
||||||
|
|
||||||
|
buildFlags = binaries;
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
makeFlags = "jfbpdf jfbview";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install jfbpdf jfbview $out/bin
|
install ${toString binaries} $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
inherit version;
|
||||||
description = "PDF and image viewer for the Linux framebuffer";
|
description = "PDF and image viewer for the Linux framebuffer";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
PDF and image viewer for the Linux framebuffer. Very fast with a number
|
A very fast PDF and image viewer for the Linux framebuffer with some
|
||||||
of advanced and unique features including:
|
advanced and unique features, including:
|
||||||
- Reads PDFs (MuPDF) and common image formats (Imlib2).
|
- Reads PDFs (MuPDF) and common image formats (Imlib2)
|
||||||
- Supports arbitrary zoom (10% - 1000%) and rotation.
|
- Supports arbitrary zoom (10% - 1000%) and rotation
|
||||||
- Table of Contents (TOC) viewer for PDF documents.
|
- Table of Contents (TOC) viewer for PDF documents
|
||||||
- Multi-threaded rendering on multi-core machines.
|
- Multi-threaded rendering on multi-core machines
|
||||||
- Asynchronous background rendering of the next page.
|
- Asynchronous background rendering of the next page
|
||||||
- Customizable multi-threaded caching.
|
- Customizable multi-threaded caching
|
||||||
'';
|
'';
|
||||||
homepage = http://seasonofcode.com/pages/jfbview.html;
|
homepage = http://seasonofcode.com/pages/jfbview.html;
|
||||||
license = with licenses; asl20;
|
license = with licenses; asl20;
|
||||||
|
|
Loading…
Reference in New Issue