git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #69061 from Anton-Latukha/adopt-djview

djview: adopt, upd {descriptions, to qt5}, add features

commit6d2e24e80e8a0cc5318bc93d5c6b565008aea245 authorPeter Hoeg <peter@hoeg.com> dateWed 25 Sep 2019, 05:57 (7 years ago) parent8445556cc79524
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
@@ -17813,7 +17813,7 @@ in
1781317813
1781417814 djvu2pdf = callPackage ../tools/typesetting/djvu2pdf { };
1781517815
17816− djview = callPackage ../applications/graphics/djview { };
17816+ djview = libsForQt5.callPackage ../applications/graphics/djview { };
1781717817 djview4 = pkgs.djview;
1781817818
1781917819 dmenu = callPackage ../applications/misc/dmenu { };