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