Merge pull request #267944 from 6t8k/djview_4.10.6-4.12
djview: 4.10.6 -> 4.12
This commit is contained in:
commit
a81321e73b
@ -1,6 +1,9 @@
|
||||
{ lib, stdenv
|
||||
, mkDerivation
|
||||
, fetchurl
|
||||
, autoconf
|
||||
, automake
|
||||
, libtool
|
||||
, pkg-config
|
||||
, djvulibre
|
||||
, qtbase
|
||||
@ -12,14 +15,19 @@
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "djview";
|
||||
version = "4.10.6";
|
||||
version = "4.12";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
|
||||
sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
|
||||
hash = "sha256-VnPGqLfhlbkaFyCyQJGRW4FF3jSHnbEVi8k2sQDq8+M=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
pkg-config
|
||||
qttools
|
||||
];
|
||||
@ -31,24 +39,24 @@ mkDerivation rec {
|
||||
libtiff
|
||||
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AGL;
|
||||
|
||||
preConfigure = ''
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--disable-silent-rules"
|
||||
"--disable-dependency-tracking"
|
||||
"--with-x"
|
||||
"--with-tiff"
|
||||
# NOTE: 2019-09-19: experimental "--enable-npdjvu" fails
|
||||
"--disable-nsdejavu" # 2023-11-14: modern browsers have dropped support for NPAPI
|
||||
] ++ lib.optional stdenv.isDarwin "--enable-mac";
|
||||
|
||||
passthru = {
|
||||
mozillaPlugin = "/lib/mozilla/plugins";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Portable DjVu viewer (Qt5) and browser (nsdejavu) plugin";
|
||||
mainProgram = "djview";
|
||||
homepage = "https://djvu.sourceforge.net/djview4.html";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ Anton-Latukha ];
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user