1 |
commit: 7a6dca6e6029eecbd7792b5f4b24db0784d66605 |
2 |
Author: Ben de Groot <yngwin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 1 03:02:40 2014 +0000 |
4 |
Commit: Ben de Groot <yngwin <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 1 03:02:40 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=7a6dca6e |
7 |
|
8 |
www-client/qupzilla: add ebuild for 1.8.0 WIP |
9 |
|
10 |
--- |
11 |
www-client/qupzilla/Manifest | 2 + |
12 |
www-client/qupzilla/qupzilla-1.8.0.ebuild | 92 +++++++++++++++++++++++++++++++ |
13 |
2 files changed, 94 insertions(+) |
14 |
|
15 |
diff --git a/www-client/qupzilla/Manifest b/www-client/qupzilla/Manifest |
16 |
new file mode 100644 |
17 |
index 0000000..56ef24c |
18 |
--- /dev/null |
19 |
+++ b/www-client/qupzilla/Manifest |
20 |
@@ -0,0 +1,2 @@ |
21 |
+DIST qupzilla-1.8.0.tar.gz 4526759 SHA256 414e97d752eaac64f48992957123612461f5fed109f056f5451465a1a1610929 SHA512 321014033acf6cc2e6c986b58cef65a1ef4f13783b2320280b6b7f9a6f03548997521dc538a5a5e13521d806375f370e8f015be526e46f64bb67a9094340985c WHIRLPOOL a683fc8c06f9cee2ef2d34d301cd4c63e8b32cb4a5ceca0884c3f5554bf59b813937c0c27d229653acde8adaa272cfc3a2663bcabab15b645d3cf6ad59dd93cc |
22 |
+DIST qupzilla-plugins-1.8.0.tar.gz 202290 SHA256 992066f55202c33b94fbb08507097d8588c31ec0a8a3142ff65f84d3090b832f SHA512 956e9301c297fce0d26fce5bbcda004f5c0ca5446e358c893e1c0f0811c4b33548e153755d067a9848138a2016936cc1974a196f8c0418203580651fbf1579d7 WHIRLPOOL d573004bc97cab49bfe0d535d9bb2370342c67cf18fe5bf6aa2245defbaa7268cffa6092698935476cbbbab73d63dbe38a90c9a3713d605c7c3cdbc360086c48 |
23 |
|
24 |
diff --git a/www-client/qupzilla/qupzilla-1.8.0.ebuild b/www-client/qupzilla/qupzilla-1.8.0.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..9b22c99 |
27 |
--- /dev/null |
28 |
+++ b/www-client/qupzilla/qupzilla-1.8.0.ebuild |
29 |
@@ -0,0 +1,92 @@ |
30 |
+# Copyright 1999-2014 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/qupzilla/qupzilla-1.6.6.ebuild,v 1.1 2014/05/28 09:45:47 pinkbyte Exp $ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+PLOCALES="ar_SA bg_BG ca_ES cs_CZ de_DE el_GR es_ES es_MX es_VE eu_ES fa_IR fi_FI fr_FR gl_ES he_IL hr_HR hu_HU id_ID it_IT ja_JP ka_GE lg lv_LV nl_NL nqo pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sr sr@ijekavian sr@ijekavianlatin sr@latin sv_SE tr_TR uk_UA uz@Latn zh_CN zh_TW" |
36 |
+PLUGINS_HASH='4e0c457e106ec6365c93851adc33fafced354e7a' |
37 |
+PLUGINS_VERSION='1.8.0' # if there are no updates, we can use the older archive |
38 |
+ |
39 |
+inherit eutils l10n multilib qmake-utils vcs-snapshot |
40 |
+ |
41 |
+DESCRIPTION="Qt WebKit web browser" |
42 |
+HOMEPAGE="http://www.qupzilla.com/" |
43 |
+SRC_URI="https://github.com/QupZilla/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
44 |
+ https://github.com/QupZilla/${PN}-plugins/archive/${PLUGINS_HASH}.tar.gz -> ${PN}-plugins-${PLUGINS_VERSION}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~x86" |
49 |
+IUSE="dbus debug gnome-keyring kde nonblockdialogs +qt4 qt5" |
50 |
+REQUIRED_USE="^^ ( qt4 qt5 )" |
51 |
+ |
52 |
+RDEPEND="dev-libs/openssl:0 |
53 |
+ gnome-keyring? ( gnome-base/gnome-keyring ) |
54 |
+ kde? ( kde-base/kwalletd:4 ) |
55 |
+ qt4? ( >=dev-qt/qtcore-4.8:4 |
56 |
+ >=dev-qt/qtgui-4.8:4 |
57 |
+ >=dev-qt/qtscript-4.8:4 |
58 |
+ >=dev-qt/qtsql-4.8:4[sqlite] |
59 |
+ >=dev-qt/qtwebkit-4.8:4 |
60 |
+ dbus? ( >=dev-qt/qtdbus-4.8:4 ) ) |
61 |
+ qt5? ( dev-qt/linguist-tools:5 |
62 |
+ dev-qt/qtcore:5 |
63 |
+ dev-qt/qtgui:5 |
64 |
+ dev-qt/qtconcurrent:5 |
65 |
+ dev-qt/qtprintsupport:5 |
66 |
+ dev-qt/qtscript:5 |
67 |
+ dev-qt/qtsql:5[sqlite] |
68 |
+ dev-qt/qtwebkit:5 |
69 |
+ dbus? ( dev-qt/qtdbus:5 ) )" |
70 |
+DEPEND="${RDEPEND} |
71 |
+ virtual/pkgconfig" |
72 |
+ |
73 |
+DOCS=( AUTHORS CHANGELOG FAQ README.md ) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ rm_loc() { |
77 |
+ # remove localizations that the user doesn't need |
78 |
+ sed -i -e "/${1}.ts/d" translations/translations.pri || die |
79 |
+ rm translations/${1}.ts || die |
80 |
+ } |
81 |
+ |
82 |
+ # remove outdated prebuilt localizations |
83 |
+ rm -rf bin/locale || die |
84 |
+ |
85 |
+ # remove empty locale |
86 |
+ rm translations/empty.ts || die |
87 |
+ |
88 |
+ # get extra plugins into qupzilla build tree |
89 |
+ mv "${WORKDIR}"/${PN}-plugins-${PLUGINS_VERSION}/plugins/* "${S}"/src/plugins/ || die |
90 |
+ |
91 |
+ l10n_find_plocales_changes "translations" "" ".ts" |
92 |
+ l10n_for_each_disabled_locale_do rm_loc |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ # see BUILDING document for explanation of options |
97 |
+ export \ |
98 |
+ QUPZILLA_PREFIX="${EPREFIX}/usr/" \ |
99 |
+ USE_LIBPATH="${EPREFIX}/usr/$(get_libdir)" \ |
100 |
+ USE_QTWEBKIT_2_2=true \ |
101 |
+ DISABLE_DBUS=$(usex dbus '' 'true') \ |
102 |
+ KDE_INTEGRATION=$(usex kde 'true' '') \ |
103 |
+ NONBLOCK_JS_DIALOGS=$(usex nonblockdialogs 'true' '') |
104 |
+ |
105 |
+ if use qt4 ; then |
106 |
+ eqmake4 $(use gnome-keyring && echo "DEFINES+=GNOME_INTEGRATION") |
107 |
+ else |
108 |
+ eqmake5 $(use gnome-keyring && echo "DEFINES+=GNOME_INTEGRATION") |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ emake INSTALL_ROOT="${D}" install |
114 |
+ einstalldocs |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ if has_version www-plugins/adobe-flash; then |
119 |
+ ewarn "For using adobe flash plugin you most likely need to run \"paxctl-ng -m /usr/bin/qupzilla\"" |
120 |
+ fi |
121 |
+} |