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: Tue, 07 Nov 2017 13:32:42
Message-Id: 1510061505.595fecd1424a9ffdaaac068948ab05ceaf9a56ca.grozin@gentoo
1 commit: 595fecd1424a9ffdaaac068948ab05ceaf9a56ca
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 7 13:30:10 2017 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 7 13:31:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=595fecd1
7
8 app-text/qpdfview: bump to the current 0.4.18 snapshot
9
10 Closes: https://bugs.gentoo.org/618044
11 Closes: https://bugs.gentoo.org/618062
12 Closes: https://bugs.gentoo.org/634978
13 Package-Manager: Portage-2.3.13, Repoman-2.3.4
14
15 app-text/qpdfview/Manifest | 1 +
16 app-text/qpdfview/qpdfview-0.4.18_pre.ebuild | 96 ++++++++++++++++++++++++++++
17 2 files changed, 97 insertions(+)
18
19 diff --git a/app-text/qpdfview/Manifest b/app-text/qpdfview/Manifest
20 index 1987ab5d355..07464242c6a 100644
21 --- a/app-text/qpdfview/Manifest
22 +++ b/app-text/qpdfview/Manifest
23 @@ -1,2 +1,3 @@
24 DIST qpdfview-0.4.16.tar.gz 636095 SHA256 fad416e8fefc3057fa1b8d12d964c7eccd16dffe0307a0d6e9d55a543294da7f SHA512 d3ac05fc51d48533e44e58cd19e5d222a8bfbc9da4df02ece6a405d2fdd3346eb4614816ae91e89facf28e107b920ff3ce7b2ccc8c9b7832ae2595ef70d65584 WHIRLPOOL 47bc82937562fdcbdf17f567bb0fa6e8eebd2e657320c129e9fd4f592c27eab855e7d2d69a22b45666509ace93b12528811b0671cb9483607448152bb676f11e
25 DIST qpdfview-0.4.17beta1.tar.gz 658978 SHA256 60206c5f76410a35098e3c965552cec08cd85941776ea6f6b207d7ea63ce940f SHA512 803bd9a1165fc84302fb3c7734127eaab754bd2bf23083a1bcf340810fa617800f3d0069eae7b1f43fb528ebe17a6a32a652efbb902d525a95efc31efeb1e10a WHIRLPOOL 9ed967656b0e7e1f8828377d667d27a8c468f687b2df76285e1502cbdf0c5183bcec31bd8189ac80455395154e3df447eae1798b9581d05c7a8c24544b7d467b
26 +DIST qpdfview-0.4.18_pre.tar.gz 667869 SHA256 3e0fb7f16190d948ce5d094af7ff26c3e5e0e10bfdf01b4fe4bfa7b7cdda9602 SHA512 3a7a2cc474078dc742fccba2c87710c1e05cec76f0bd66650fa6cb4d6d8e2103241474689d4798da28ae1aeb2caa6e09dd8d1e9d0433c2eba21b202166aa3051 WHIRLPOOL 10d0b343e10a68f8b90cb777d08f5b7f9126d19bee41e82e7ae412c7903d8541b3484d3cac548322aeb85210fc5d5f07c5c84c9994094ff48384aec4635da2c9
27
28 diff --git a/app-text/qpdfview/qpdfview-0.4.18_pre.ebuild b/app-text/qpdfview/qpdfview-0.4.18_pre.ebuild
29 new file mode 100644
30 index 00000000000..13bcc7b4241
31 --- /dev/null
32 +++ b/app-text/qpdfview/qpdfview-0.4.18_pre.ebuild
33 @@ -0,0 +1,96 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +PLOCALES="ast az be bg bs ca cs da de el en_GB eo es eu fi fr gl he hr hu id it ja kk ko ky lt ms my pl pt pt_BR ro ru sk sv th tr ug uk vi zh_CN"
39 +
40 +inherit l10n qmake-utils xdg-utils gnome2-utils
41 +
42 +DESCRIPTION="A tabbed document viewer"
43 +HOMEPAGE="https://launchpad.net/qpdfview"
44 +SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.gz"
45 +
46 +LICENSE="GPL-2+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="cups +dbus djvu fitz +pdf postscript +sqlite +svg synctex"
50 +
51 +REQUIRED_USE="?? ( fitz pdf )"
52 +
53 +RDEPEND="
54 + cups? ( net-print/cups )
55 + djvu? ( app-text/djvu )
56 + fitz? ( >=app-text/mupdf-1.7:= )
57 + postscript? ( app-text/libspectre )
58 + dev-qt/qtconcurrent:5
59 + dev-qt/qtcore:5
60 + dev-qt/qtgui:5
61 + dev-qt/qtprintsupport:5
62 + dev-qt/qtwidgets:5
63 + dbus? ( dev-qt/qtdbus:5 )
64 + pdf? ( >=app-text/poppler-0.35[qt5]
65 + dev-qt/qtxml:5 )
66 + sqlite? ( dev-qt/qtsql:5[sqlite] )
67 + svg? ( dev-qt/qtsvg:5 )
68 + !svg? ( virtual/freedesktop-icon-theme )
69 + synctex? ( app-text/texlive-core )"
70 +DEPEND="${RDEPEND}
71 + dev-qt/linguist-tools:5
72 + virtual/pkgconfig"
73 +
74 +DOCS=( CHANGES CONTRIBUTORS README TODO )
75 +
76 +src_prepare() {
77 + local mylrelease="$(qt5_get_bindir)"/lrelease
78 +
79 + prepare_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 + l10n_find_plocales_changes translations ${PN}_ .ts
88 + l10n_for_each_locale_do prepare_locale
89 + l10n_for_each_disabled_locale_do rm_help
90 +
91 + # adapt for prefix
92 + sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die
93 +
94 + default
95 +}
96 +
97 +src_configure() {
98 + local myconfig=() i=
99 + for i in cups dbus djvu pdf svg synctex; do
100 + use ${i} || myconfig+=(without_${i})
101 + done
102 + use fitz && myconfig+=(with_fitz)
103 + use postscript || myconfig+=(without_ps)
104 + use sqlite || myconfig+=(without_sql)
105 +
106 + local myqmakeargs=(
107 + qpdfview.pro
108 + CONFIG+="${myconfig[@]}"
109 + PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}"
110 + )
111 + eqmake5 "${myqmakeargs[@]}"
112 +}
113 +
114 +src_install() {
115 + emake INSTALL_ROOT="${D}" install
116 + einstalldocs
117 +}
118 +
119 +pkg_postinst() {
120 + xdg_desktop_database_update
121 + xdg_mimeinfo_database_update
122 + gnome2_icon_cache_update
123 +}
124 +
125 +pkg_postrm() {
126 + xdg_desktop_database_update
127 + xdg_mimeinfo_database_update
128 + gnome2_icon_cache_update
129 +}