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