git.iko.soy/typeable/nixpkgs
on master help sign in
djview: {adopt, clean-up, doc, Qt(4 -> 5), add features}

djview: adopt djview: upd description djview: add longDescription djview: upd to Qt5, use Qt5's mkDerivation djview: add configureFlags (enabling couple features) upd longDescription djview: upd clean-up

commitcc7952401a333a92f83bb9fd095652a18f9bc3cc authorAnton-Latukha <anton.latukha@gmail.com> dateThu 19 Sep 2019, 02:15 (7 years ago) parent6b3832a
2 files changed+55−11
pkgs/applications/graphics/djview/default.nix+54−10 pkgs/top-level/all-packages.nix+1−1
pkgs/applications/graphics/djview/default.nix+54−10
@@ -1,8 +1,16 @@
1−{ stdenv, fetchurl, pkgconfig
2−, djvulibre, qt4, xorg, libtiff
3−, darwin }:
1+{ stdenv
2+, mkDerivation
3+, fetchurl
4+, pkgconfig
5+, djvulibre
6+, qtbase
7+, qttools
8+, xorg
9+, libtiff
10+, darwin
11+}:
412
5−stdenv.mkDerivation rec {
13+mkDerivation rec {
614 pname = "djview";
715 version = "4.10.6";
816
@@ -11,20 +19,56 @@ stdenv.mkDerivation rec {
1119 sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
1220 };
1321
14− nativeBuildInputs = [ pkgconfig ];
22+ nativeBuildInputs = [
23+ pkgconfig
24+ qttools
25+ ];
1526
16− buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
17− ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];
27+ buildInputs = [
28+ djvulibre
29+ qtbase
30+ xorg.libXt
31+ libtiff
32+ ] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AGL;
33+
34+ configureFlags = [
35+ "--disable-silent-rules"
36+ "--disable-dependency-tracking"
37+ "--with-x"
38+ "--with-tiff"
39+ # NOTE: 2019-09-19: experimental "--enable-npdjvu" fails
40+ ] ++ stdenv.lib.optional stdenv.isDarwin "--enable-mac";
1841
1942 passthru = {
2043 mozillaPlugin = "/lib/mozilla/plugins";
2144 };
2245
2346 meta = with stdenv.lib; {
24− homepage = http://djvu.sourceforge.net/djview4.html;
25− description = "A portable DjVu viewer and browser plugin";
47+ description = "A portable DjVu viewer (Qt5) and browser (nsdejavu) plugin";
48+ homepage = "http://djvu.sourceforge.net/djview4.html";
2649 license = licenses.gpl2;
2750 platforms = platforms.unix;
28− maintainers = [ ];
51+ maintainers = with maintainers; [ Anton-Latukha ];
52+ longDescription = ''
53+ The portable DjVu viewer (Qt5) and browser (nsdejavu) plugin.
54+
55+ Djview highlights:
56+ - entirely based on the public DjVulibre api.
57+ - entirely written in portable Qt5.
58+ - works natively under Unix/X11, MS Windows, and macOS X.
59+ - continuous scrolling of pages
60+ - side-by-side display of pages
61+ - ability to specify a url to the djview command
62+ - all plugin and cgi options available from the command line
63+ - all silly annotations implemented
64+ - display thumbnails as a grid
65+ - display outlines
66+ - page names supported (see djvused command set-page-title)
67+ - metadata dialog (see djvused command set-meta)
68+ - implemented as reusable Qt widgets
69+
70+ nsdejavu: browser plugin for DjVu. It internally uses djview.
71+ Has CGI-style arguments to configure the view of document (see man).
72+ '';
2973 };
3074}
pkgs/top-level/all-packages.nix+1−1
@@ -17780,7 +17780,7 @@ in
1778017780
1778117781 djvu2pdf = callPackage ../tools/typesetting/djvu2pdf { };
1778217782
17783− djview = callPackage ../applications/graphics/djview { };
17783+ djview = libsForQt5.callPackage ../applications/graphics/djview { };
1778417784 djview4 = pkgs.djview;
1778517785
1778617786 dmenu = callPackage ../applications/misc/dmenu { };