summary refs log tree commit diff
path: root/pkgs/os-specific/linux/jfbview
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-21 20:00:01 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-22 12:34:15 +0200
commite727aae8cae5c73fc83fe3e27fffe68a2b003d5d (patch)
treee29ad243cffe5adad8f64866b5e12d57358c993d /pkgs/os-specific/linux/jfbview
parente4f0c4a494ec518a70893f9f70a2bffa0a94e3fe (diff)
downloadnixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.tar
nixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.tar.gz
nixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.tar.bz2
nixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.tar.lz
nixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.tar.xz
nixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.tar.zst
nixpkgs-e727aae8cae5c73fc83fe3e27fffe68a2b003d5d.zip
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).
Diffstat (limited to 'pkgs/os-specific/linux/jfbview')
-rw-r--r--pkgs/os-specific/linux/jfbview/default.nix40
1 files changed, 22 insertions, 18 deletions
diff --git a/pkgs/os-specific/linux/jfbview/default.nix b/pkgs/os-specific/linux/jfbview/default.nix
index b497784861f..7672318392f 100644
--- a/pkgs/os-specific/linux/jfbview/default.nix
+++ b/pkgs/os-specific/linux/jfbview/default.nix
@@ -1,40 +1,44 @@
-{ stdenv, fetchFromGitHub, freetype, imlib2, jbig2dec, libjpeg, libX11, mujs
-, mupdf, ncurses, openjpeg, openssl }:
+# FIXME: remove gcc49 when the default gcc supports C++1y
+{ 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 {
-  version = "0.4.2"; # TODO: update to 0.5 or later when nixpkgs has caught up
   name = "jfbview-${version}";
 
   src = fetchFromGitHub {
+    sha256 = "113bkf49q04k9rjps5l28ychmzsfjajp9cjhr433s9ld0972z01m";
+    rev = version;
     repo = "JFBView";
     owner = "jichu4n";
-    rev = version;
-    sha256 = "1hhlzvs0jhygd3mqpzg5zymrbay9c8ilc4wjnwg00lvxhv3rwswr";
   };
 
-  buildInputs = [ freetype imlib2 jbig2dec libjpeg libX11 mujs mupdf ncurses
-    openjpeg openssl ];
+  buildInputs = [ freetype gcc49 imlib2 jbig2dec libjpeg libX11 mujs mupdf
+    ncurses openjpeg openssl ];
 
+  buildFlags = binaries;
   enableParallelBuilding = true;
 
-  makeFlags = "jfbpdf jfbview";
-
   installPhase = ''
     mkdir -p $out/bin
-    install jfbpdf jfbview $out/bin
+    install ${toString binaries} $out/bin
   '';
 
   meta = with stdenv.lib; {
+    inherit version;
     description = "PDF and image viewer for the Linux framebuffer";
     longDescription = ''
-      PDF and image viewer for the Linux framebuffer. Very fast with a number
-      of advanced and unique features including:
-      - Reads PDFs (MuPDF) and common image formats (Imlib2).
-      - Supports arbitrary zoom (10% - 1000%) and rotation.
-      - Table of Contents (TOC) viewer for PDF documents.
-      - Multi-threaded rendering on multi-core machines.
-      - Asynchronous background rendering of the next page.
-      - Customizable multi-threaded caching.
+      A very fast PDF and image viewer for the Linux framebuffer with some
+      advanced and unique features, including:
+      - Reads PDFs (MuPDF) and common image formats (Imlib2)
+      - Supports arbitrary zoom (10% - 1000%) and rotation
+      - Table of Contents (TOC) viewer for PDF documents
+      - Multi-threaded rendering on multi-core machines
+      - Asynchronous background rendering of the next page
+      - Customizable multi-threaded caching
     '';
     homepage = http://seasonofcode.com/pages/jfbview.html;
     license = with licenses; asl20;