Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/qpdfview/
Date: Wed, 01 Feb 2023 13:45:37
Message-Id: 1675259096.d7be78f1f2e71c6738ad28a9c87de759121c251f.grozin@gentoo
1 commit: d7be78f1f2e71c6738ad28a9c87de759121c251f
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 13:44:56 2023 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 13:44:56 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7be78f1
7
8 app-text/qpdfview: bump to 0.5
9
10 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
11
12 app-text/qpdfview/Manifest | 1 +
13 app-text/qpdfview/qpdfview-0.5.ebuild | 85 +++++++++++++++++++++++++++++++++++
14 2 files changed, 86 insertions(+)
15
16 diff --git a/app-text/qpdfview/Manifest b/app-text/qpdfview/Manifest
17 index ec7a7d84ac00..b2abfc9f2fca 100644
18 --- a/app-text/qpdfview/Manifest
19 +++ b/app-text/qpdfview/Manifest
20 @@ -1,2 +1,3 @@
21 DIST qpdfview-0.4.18_p1.tar.bz2 448818 BLAKE2B 690f93c7f0af376e2b60d69a9802cdb159a97eb66b572a913badcd7ce3b9303d69bf8fbb359b5aa09ad1c63b1b6865e3602c8dc9cdad2506a43273d410a64d89 SHA512 41152596e39e6084e4e46c1aca28dfa4c619bf31068ee3272c6119793da5d99c58868ecf682ed0dc81e740f20193372e2780cf7d7fb917545662c93e6a2a1b4a
22 DIST qpdfview-0.4.18_p20211227.tar.bz2 485165 BLAKE2B 1efdebf84ffbcedf464615e6ef2ef4092ef3210177e5faf17bb01c39243fdd5b11434459dad897a04acff0cf037129d2a524d37c670ae57556219421c363d1c5 SHA512 ea2206d9f2cbd5bf53ab75c8e78a5b3e30136febcf82630c375d664645d6b5e72c6128fb7b63cb65ec511c2c23014ceddd93495c520e9cddd1c52f01377bea17
23 +DIST qpdfview-0.5.tar.gz 925408 BLAKE2B 8ce8ff82893c90012ea1b35a582e87783da87e6eba3d4a10e78fe7810c269908ed1541cf40b1eb17fc474254131cebbc4832a3f46a2016262c485d48e222791b SHA512 1b6b479bb42f4568c21b5f6cb0c552c4323739ba9fe46cea80cc199f48b0b49a278e0a2fb0d21f83bafb467e43dd37352b99ef41795d140220bb82d704e03926
24
25 diff --git a/app-text/qpdfview/qpdfview-0.5.ebuild b/app-text/qpdfview/qpdfview-0.5.ebuild
26 new file mode 100644
27 index 000000000000..463443836b8c
28 --- /dev/null
29 +++ b/app-text/qpdfview/qpdfview-0.5.ebuild
30 @@ -0,0 +1,85 @@
31 +# Copyright 1999-2023 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PLOCALES="af ast az be ber bg bs ca cs da de el en_AU en_GB eo es eu fa fi fr gl he hi hr hu id it ja kk ko ku ky lt lv ms my nb nds oc pl pt pt_BR ro ru rue sk sr sv th tr ug uk uz vi zgh zh_CN zh_TW"
37 +inherit plocale qmake-utils xdg
38 +
39 +DESCRIPTION="A tabbed document viewer"
40 +HOMEPAGE="https://launchpad.net/qpdfview"
41 +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}.0/+download/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2+"
44 +SLOT="0"
45 +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
46 +IUSE="cups +dbus djvu fitz +pdf postscript +sqlite +svg synctex"
47 +
48 +REQUIRED_USE="?? ( fitz pdf )"
49 +
50 +BDEPEND="
51 + dev-qt/linguist-tools:5
52 + virtual/pkgconfig
53 +"
54 +RDEPEND="
55 + cups? ( net-print/cups )
56 + djvu? ( app-text/djvu )
57 + fitz? ( >=app-text/mupdf-1.7:= )
58 + postscript? ( app-text/libspectre )
59 + dev-qt/qtconcurrent:5
60 + dev-qt/qtcore:5
61 + dev-qt/qtgui:5
62 + dev-qt/qtprintsupport:5[cups?]
63 + dev-qt/qtwidgets:5
64 + dbus? ( dev-qt/qtdbus:5 )
65 + pdf? ( >=app-text/poppler-0.35[qt5]
66 + dev-qt/qtxml:5 )
67 + sqlite? ( dev-qt/qtsql:5[sqlite] )
68 + svg? ( dev-qt/qtsvg:5 )
69 + !svg? ( virtual/freedesktop-icon-theme )
70 + synctex? ( app-text/texlive-core )"
71 +DEPEND="${RDEPEND}"
72 +
73 +DOCS=( CHANGES CONTRIBUTORS README TODO )
74 +
75 +src_prepare() {
76 + default
77 +
78 + local mylrelease="$(qt5_get_bindir)"/lrelease
79 + p_locale() {
80 + "${mylrelease}" "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed"
81 + }
82 +
83 + rm_help() {
84 + rm -f "help/help_${1}.html" || die "removing ${1} help file failed"
85 + }
86 +
87 + plocale_find_changes translations ${PN}_ .ts
88 + plocale_for_each_locale p_locale
89 + plocale_for_each_disabled_locale rm_help
90 +
91 + # adapt for prefix
92 + sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die
93 +}
94 +
95 +src_configure() {
96 + local myconfig=() i=
97 + for i in cups dbus djvu pdf svg synctex; do
98 + use ${i} || myconfig+=(without_${i})
99 + done
100 + use fitz && myconfig+=(with_fitz)
101 + use postscript || myconfig+=(without_ps)
102 + use sqlite || myconfig+=(without_sql)
103 +
104 + local myqmakeargs=(
105 + qpdfview.pro
106 + CONFIG+="${myconfig[*]}"
107 + PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}"
108 + )
109 + eqmake5 "${myqmakeargs[@]}"
110 +}
111 +
112 +src_install() {
113 + emake INSTALL_ROOT="${D}" install
114 + einstalldocs
115 +}