plasma5Packages.okular: add option to build without qtspeech
This commit is contained in:
parent
aac1f0b25e
commit
e772ade40a
1 changed files with 14 additions and 10 deletions
|
@ -1,23 +1,25 @@
|
||||||
{
|
{ stdenv, mkDerivation, lib
|
||||||
stdenv, mkDerivation, lib,
|
, extra-cmake-modules, kdoctools
|
||||||
extra-cmake-modules, kdoctools,
|
, breeze-icons, chmlib, discount, djvulibre, ebook_tools, kactivities
|
||||||
breeze-icons, chmlib, discount, djvulibre, ebook_tools, kactivities,
|
, karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons
|
||||||
karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons,
|
, kdbusaddons, kdegraphics-mobipocket, kiconthemes, kjs, khtml, kio, kparts
|
||||||
kdbusaddons, kdegraphics-mobipocket, kiconthemes, kjs, khtml, kio, kparts,
|
, kpty, kpurpose, kwallet, kwindowsystem, libkexiv2, libspectre, libzip, phonon, poppler
|
||||||
kpty, kpurpose, kwallet, kwindowsystem, libkexiv2, libspectre, libzip, phonon, poppler,
|
, qca-qt5, qtdeclarative, qtsvg, threadweaver, kcrash
|
||||||
qca-qt5, qtdeclarative, qtsvg, threadweaver, kcrash, qtspeech
|
, withSpeech ? true, qtspeech
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "okular";
|
pname = "okular";
|
||||||
|
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
breeze-icons discount djvulibre ebook_tools kactivities karchive kbookmarks
|
breeze-icons discount djvulibre ebook_tools kactivities karchive kbookmarks
|
||||||
kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
|
kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
|
||||||
kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kpurpose kwallet
|
kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kpurpose kwallet
|
||||||
kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5
|
kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5
|
||||||
qtdeclarative qtsvg threadweaver kcrash qtspeech chmlib
|
qtdeclarative qtsvg threadweaver kcrash chmlib
|
||||||
];
|
] ++ lib.optional withSpeech qtspeech;
|
||||||
|
|
||||||
# InitialPreference values are too high and end up making okular
|
# InitialPreference values are too high and end up making okular
|
||||||
# default for anything considered text/plain. Resetting to 1, which
|
# default for anything considered text/plain. Resetting to 1, which
|
||||||
|
@ -27,6 +29,8 @@ mkDerivation {
|
||||||
--replace InitialPreference=3 InitialPreference=1
|
--replace InitialPreference=3 InitialPreference=1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
cmakeFlags = lib.optional (!withSpeech) "-DFORCE_NOT_REQUIRED_DEPENDENCIES=Qt5TextToSpeech";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://www.kde.org";
|
homepage = "http://www.kde.org";
|
||||||
description = "KDE document viewer";
|
description = "KDE document viewer";
|
||||||
|
|
Loading…
Reference in a new issue