1 |
commit: 73bdedfdbc98bb5e4fb1837981a7fa0a2dbb1431 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 30 15:36:03 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 30 15:36:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73bdedfd |
7 |
|
8 |
app-text/qpdfview: bump to 0.4.18_p1 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
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_p1.ebuild | 86 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 87 insertions(+) |
16 |
|
17 |
diff --git a/app-text/qpdfview/Manifest b/app-text/qpdfview/Manifest |
18 |
index c4ba32684ed..170e1a1035e 100644 |
19 |
--- a/app-text/qpdfview/Manifest |
20 |
+++ b/app-text/qpdfview/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST qpdfview-0.4.18.tar.gz 786577 BLAKE2B 07ef444ba39435578481e549fcbbd2d97362c6bda3092a17f1daa8b8437febf50cd2f145cd5e80cc1be565c5a658e85a428314a1bcd2a5a38efce0830f1cffba SHA512 38741520b20e3ed7100e52982930abac26e994a69df68c54dfa7180be8b2a4f377b91ba03993bab67b0a505ad79d62164f0f168a6715f4306b635ceba6840d66 |
23 |
+DIST qpdfview-0.4.18_p1.tar.bz2 448818 BLAKE2B 690f93c7f0af376e2b60d69a9802cdb159a97eb66b572a913badcd7ce3b9303d69bf8fbb359b5aa09ad1c63b1b6865e3602c8dc9cdad2506a43273d410a64d89 SHA512 41152596e39e6084e4e46c1aca28dfa4c619bf31068ee3272c6119793da5d99c58868ecf682ed0dc81e740f20193372e2780cf7d7fb917545662c93e6a2a1b4a |
24 |
|
25 |
diff --git a/app-text/qpdfview/qpdfview-0.4.18_p1.ebuild b/app-text/qpdfview/qpdfview-0.4.18_p1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e7a36da831a |
28 |
--- /dev/null |
29 |
+++ b/app-text/qpdfview/qpdfview-0.4.18_p1.ebuild |
30 |
@@ -0,0 +1,86 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
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 |
+inherit l10n qmake-utils xdg |
38 |
+ |
39 |
+DESCRIPTION="A tabbed document viewer" |
40 |
+HOMEPAGE="https://launchpad.net/qpdfview" |
41 |
+# bzr revision 2107 |
42 |
+SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="cups +dbus djvu fitz +pdf postscript +sqlite +svg synctex" |
48 |
+ |
49 |
+REQUIRED_USE="?? ( fitz pdf )" |
50 |
+ |
51 |
+BDEPEND=" |
52 |
+ dev-qt/linguist-tools:5 |
53 |
+ virtual/pkgconfig |
54 |
+" |
55 |
+RDEPEND=" |
56 |
+ cups? ( net-print/cups ) |
57 |
+ djvu? ( app-text/djvu ) |
58 |
+ fitz? ( >=app-text/mupdf-1.7:= ) |
59 |
+ postscript? ( app-text/libspectre ) |
60 |
+ dev-qt/qtconcurrent:5 |
61 |
+ dev-qt/qtcore:5 |
62 |
+ dev-qt/qtgui:5 |
63 |
+ dev-qt/qtprintsupport:5[cups?] |
64 |
+ dev-qt/qtwidgets:5 |
65 |
+ dbus? ( dev-qt/qtdbus:5 ) |
66 |
+ pdf? ( >=app-text/poppler-0.35[qt5] |
67 |
+ dev-qt/qtxml:5 ) |
68 |
+ sqlite? ( dev-qt/qtsql:5[sqlite] ) |
69 |
+ svg? ( dev-qt/qtsvg:5 ) |
70 |
+ !svg? ( virtual/freedesktop-icon-theme ) |
71 |
+ synctex? ( app-text/texlive-core )" |
72 |
+DEPEND="${RDEPEND}" |
73 |
+ |
74 |
+DOCS=( CHANGES CONTRIBUTORS README TODO ) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ local mylrelease="$(qt5_get_bindir)"/lrelease |
80 |
+ prepare_locale() { |
81 |
+ "${mylrelease}" "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed" |
82 |
+ } |
83 |
+ |
84 |
+ rm_help() { |
85 |
+ rm -f "help/help_${1}.html" || die "removing ${1} help file failed" |
86 |
+ } |
87 |
+ |
88 |
+ l10n_find_plocales_changes translations ${PN}_ .ts |
89 |
+ l10n_for_each_locale_do prepare_locale |
90 |
+ l10n_for_each_disabled_locale_do rm_help |
91 |
+ |
92 |
+ # adapt for prefix |
93 |
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ local myconfig=() i= |
98 |
+ for i in cups dbus djvu pdf svg synctex; do |
99 |
+ use ${i} || myconfig+=(without_${i}) |
100 |
+ done |
101 |
+ use fitz && myconfig+=(with_fitz) |
102 |
+ use postscript || myconfig+=(without_ps) |
103 |
+ use sqlite || myconfig+=(without_sql) |
104 |
+ |
105 |
+ local myqmakeargs=( |
106 |
+ qpdfview.pro |
107 |
+ CONFIG+="${myconfig[@]}" |
108 |
+ PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}" |
109 |
+ ) |
110 |
+ eqmake5 "${myqmakeargs[@]}" |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ emake INSTALL_ROOT="${D}" install |
115 |
+ einstalldocs |
116 |
+} |