Merge pull request #253841 from wineee/deepin-reader

deepin.deepin-reader: 5.10.29 -> 6.0.2
This commit is contained in:
Nick Cao 2023-09-07 10:29:21 -04:00 committed by GitHub
commit 682985913d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,24 +17,26 @@
, openjpeg , openjpeg
, djvulibre , djvulibre
, qtbase , qtbase
, gtest
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "deepin-reader"; pname = "deepin-reader";
version = "5.10.29"; version = "6.0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxdeepin"; owner = "linuxdeepin";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-IpgmTmnrPWc9EFZVM+S2nFxdpPjbgXqEWUnK/O9FmUg="; hash = "sha256-69NCxa20wp/tyyGGH/FbHhZ83LECbJWAzaLRo7iYreA=";
}; };
patches = [ ./use-pkg-config.diff ]; # don't use vendored htmltopdf
postPatch = '' postPatch = ''
substituteInPlace reader/{reader.pro,document/Model.cpp} htmltopdf/htmltopdf.pro 3rdparty/deepin-pdfium/src/src.pro \ substituteInPlace deepin_reader.pro \
--replace "/usr" "$out" --replace "SUBDIRS += htmltopdf" " "
substituteInPlace reader/document/Model.cpp \
--replace "/usr/lib/deepin-reader/htmltopdf" "htmltopdf"
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -56,6 +58,7 @@ stdenv.mkDerivation rec {
libspectre libspectre
djvulibre djvulibre
openjpeg openjpeg
gtest
]; ];
qmakeFlags = [ qmakeFlags = [