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: Thu, 04 Apr 2019 12:27:03
Message-Id: 1554380804.535d4369e7dd4b38787a9178e3d7151ae9a38f87.grozin@gentoo
1 commit: 535d4369e7dd4b38787a9178e3d7151ae9a38f87
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 4 12:26:44 2019 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 4 12:26:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=535d4369
7
8 app-text/qpdfview: bump to the current snapshot
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 app-text/qpdfview/Manifest | 1 +
14 app-text/qpdfview/qpdfview-0.4.18_pre4.ebuild | 96 +++++++++++++++++++++++++++
15 2 files changed, 97 insertions(+)
16
17 diff --git a/app-text/qpdfview/Manifest b/app-text/qpdfview/Manifest
18 index fe1ad879fbb..ea1c426859c 100644
19 --- a/app-text/qpdfview/Manifest
20 +++ b/app-text/qpdfview/Manifest
21 @@ -1,2 +1,3 @@
22 DIST qpdfview-0.4.16.tar.gz 636095 BLAKE2B b25da3ed1b4bacc02701f6cd2c4e282fd1c7b1fcac8faa1687c5089baefa328854c520ba803a333ea107e7b423a004f6476eb9a7adf67287d4d0807146094fed SHA512 d3ac05fc51d48533e44e58cd19e5d222a8bfbc9da4df02ece6a405d2fdd3346eb4614816ae91e89facf28e107b920ff3ce7b2ccc8c9b7832ae2595ef70d65584
23 DIST qpdfview-0.4.18_pre3.tar.gz 747794 BLAKE2B 08420a350ae6f8bba65efe2a930a8941a00182900e33266a03d9b6ded4b8ba7ac446de9ed8095f8876dfd3ecfb26b20cc146c82d9c9228fd5c136ad36d749061 SHA512 c72f766b0ffb175e0577f08975490b985e859cb41ccf1d6bcdb618664b96b3c4d0fe4ffab2e493ac20b87b85aa658f3beb5b0d430d21deae78df4c503649f1c0
24 +DIST qpdfview-0.4.18_pre4.tar.gz 782305 BLAKE2B 0e79a30e9774a1afb7f38bd932e8e1b2a7930acca217b7ac485f4857211449f5a8f902706b4638023667002d2f98fc116a180b2ec0219a360fe8c3025023cc39 SHA512 24431a27c279c290ce95a7db52f87e6cade0683dab53a3c494823020a7df9150919af31f20f63ff4c7337f5548b3e7252df0d8a6043a8c50ebb18e41f387838d
25
26 diff --git a/app-text/qpdfview/qpdfview-0.4.18_pre4.ebuild b/app-text/qpdfview/qpdfview-0.4.18_pre4.ebuild
27 new file mode 100644
28 index 00000000000..47d005b062d
29 --- /dev/null
30 +++ b/app-text/qpdfview/qpdfview-0.4.18_pre4.ebuild
31 @@ -0,0 +1,96 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PLOCALES="ast az be bg bs ca cs da de el en_AU en_GB eo es eu fa fi fr gl he hr hu id it ja kk ko ku ky lt lv ms my nb nds oc pl pt pt_BR ro ru sk sr sv th tr ug uk uz vi zh_CN zh_TW"
37 +
38 +inherit l10n qmake-utils xdg-utils gnome2-utils
39 +
40 +DESCRIPTION="A tabbed document viewer"
41 +HOMEPAGE="https://launchpad.net/qpdfview"
42 +SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="cups +dbus djvu fitz +pdf postscript +sqlite +svg synctex"
48 +
49 +REQUIRED_USE="?? ( fitz pdf )"
50 +
51 +RDEPEND="
52 + cups? ( net-print/cups )
53 + djvu? ( app-text/djvu )
54 + fitz? ( >=app-text/mupdf-1.7:= )
55 + postscript? ( app-text/libspectre )
56 + dev-qt/qtconcurrent:5
57 + dev-qt/qtcore:5
58 + dev-qt/qtgui:5
59 + dev-qt/qtprintsupport:5[cups?]
60 + dev-qt/qtwidgets:5
61 + dbus? ( dev-qt/qtdbus:5 )
62 + pdf? ( >=app-text/poppler-0.35[qt5]
63 + dev-qt/qtxml:5 )
64 + sqlite? ( dev-qt/qtsql:5[sqlite] )
65 + svg? ( dev-qt/qtsvg:5 )
66 + !svg? ( virtual/freedesktop-icon-theme )
67 + synctex? ( app-text/texlive-core )"
68 +DEPEND="${RDEPEND}
69 + dev-qt/linguist-tools:5
70 + virtual/pkgconfig"
71 +
72 +DOCS=( CHANGES CONTRIBUTORS README TODO )
73 +
74 +src_prepare() {
75 + local mylrelease="$(qt5_get_bindir)"/lrelease
76 +
77 + prepare_locale() {
78 + "${mylrelease}" "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed"
79 + }
80 +
81 + rm_help() {
82 + rm -f "help/help_${1}.html" || die "removing ${1} help file failed"
83 + }
84 +
85 + l10n_find_plocales_changes translations ${PN}_ .ts
86 + l10n_for_each_locale_do prepare_locale
87 + l10n_for_each_disabled_locale_do rm_help
88 +
89 + # adapt for prefix
90 + sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die
91 +
92 + default
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 +}
116 +
117 +pkg_postinst() {
118 + xdg_desktop_database_update
119 + xdg_mimeinfo_database_update
120 + gnome2_icon_cache_update
121 +}
122 +
123 +pkg_postrm() {
124 + xdg_desktop_database_update
125 + xdg_mimeinfo_database_update
126 + gnome2_icon_cache_update
127 +}