1 |
commit: 00ac6098f1f1f48bd4e170efdd625b973d698f46 |
2 |
Author: Henning Schild <henning <AT> hennsch <DOT> de> |
3 |
AuthorDate: Sat Mar 9 09:52:20 2019 +0000 |
4 |
Commit: Ole Reifschneider <tranquility <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 30 08:06:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00ac6098 |
7 |
|
8 |
app-doc/zeal: Bump version to 0.6.1, change default settings |
9 |
|
10 |
Introduce patch to disable the internal update checker. |
11 |
|
12 |
Signed-off-by: Henning Schild <henning <AT> hennsch.de> |
13 |
Signed-off-by: Ole Reifschneider <tranquility <AT> gentoo.org> |
14 |
|
15 |
app-doc/zeal/Manifest | 1 + |
16 |
...s-enforce-static-linking-of-internal-libs.patch | 81 ++++++++++++++++++++++ |
17 |
...s-disable-checking-for-updates-by-default.patch | 26 +++++++ |
18 |
app-doc/zeal/zeal-0.6.1.ebuild | 53 ++++++++++++++ |
19 |
4 files changed, 161 insertions(+) |
20 |
|
21 |
diff --git a/app-doc/zeal/Manifest b/app-doc/zeal/Manifest |
22 |
index 2370ded656c..47a8d3e19d2 100644 |
23 |
--- a/app-doc/zeal/Manifest |
24 |
+++ b/app-doc/zeal/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST zeal-0.4.0.tar.gz 1049326 BLAKE2B b3007dad0ed280954b05464bc107fa51c603d79607acd42ab85bc745d0590bdaed740edac75dac91e0d0da34b5966eb96815e8250a3b68041cb5a8e0389676fc SHA512 fd1e7cd71469e40914b713c10057b3f3d1d2ae9808d296ca01ceb43941b6e7d6754a4f21edf43a594b1c3ebcab20728812db1bdffda6bc78ee49a1d4faaf9627 |
27 |
DIST zeal-0.6.0.tar.gz 1062223 BLAKE2B 691525380dcefa03a1ed94cf0651f16e4e630aef820beed612a4412d8cdef39de25d2cacb84a76b5f7d03b9c3833fbcd60e463722bd7f9c3e147e5e72037211c SHA512 453841cdbab405a6c3842818b0d18b93d3ee8ad299386c25f63986e04674dbd437665e1913a03f0d94944004a619ea18d218de969c487e68e06a205e0edc1d3a |
28 |
+DIST zeal-0.6.1.tar.gz 1063963 BLAKE2B 72f38aac8275cea8da214962b568ff3f634c6c8499a73f506a6b63d947f87bb0b13bf6a0821d7803ccf09689744a79ebf8659ebe1d6ae07863662cb6a017c5ee SHA512 5b1a129980000c0fc8516e2c7d6c4a8de4adde7054ff8d9635e3be35441ad3ef0539746bbe1ca8abce7e6fb3d20c825b57661c3f8cd059ef1480db65ff81f3d9 |
29 |
|
30 |
diff --git a/app-doc/zeal/files/0001-libs-enforce-static-linking-of-internal-libs.patch b/app-doc/zeal/files/0001-libs-enforce-static-linking-of-internal-libs.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..137959b7ca2 |
33 |
--- /dev/null |
34 |
+++ b/app-doc/zeal/files/0001-libs-enforce-static-linking-of-internal-libs.patch |
35 |
@@ -0,0 +1,81 @@ |
36 |
+From b08ff87378dab3e6255864d2749e17b71210e7bd Mon Sep 17 00:00:00 2001 |
37 |
+From: Henning Schild <henning@×××××××.de> |
38 |
+Date: Sat, 9 Mar 2019 16:35:52 +0100 |
39 |
+Subject: [PATCH] libs: enforce static linking of internal libs |
40 |
+ |
41 |
+Since the application binary is the only file installed and the libs are |
42 |
+not used by anyone else, make sure they are always static. Otherwise |
43 |
+cmake can make them shared and those shared libs will be missing after |
44 |
+install. |
45 |
+ |
46 |
+Signed-off-by: Henning Schild <henning@×××××××.de> |
47 |
+--- |
48 |
+ src/libs/core/CMakeLists.txt | 2 +- |
49 |
+ src/libs/registry/CMakeLists.txt | 2 +- |
50 |
+ src/libs/ui/CMakeLists.txt | 2 +- |
51 |
+ src/libs/ui/qxtglobalshortcut/CMakeLists.txt | 2 +- |
52 |
+ src/libs/util/CMakeLists.txt | 2 +- |
53 |
+ 5 files changed, 5 insertions(+), 5 deletions(-) |
54 |
+ |
55 |
+diff --git a/src/libs/core/CMakeLists.txt b/src/libs/core/CMakeLists.txt |
56 |
+index cd212bb..3bd7371 100644 |
57 |
+--- a/src/libs/core/CMakeLists.txt |
58 |
++++ b/src/libs/core/CMakeLists.txt |
59 |
+@@ -1,4 +1,4 @@ |
60 |
+-add_library(Core |
61 |
++add_library(Core STATIC |
62 |
+ application.cpp |
63 |
+ applicationsingleton.cpp |
64 |
+ extractor.cpp |
65 |
+diff --git a/src/libs/registry/CMakeLists.txt b/src/libs/registry/CMakeLists.txt |
66 |
+index 3372711..977919d 100644 |
67 |
+--- a/src/libs/registry/CMakeLists.txt |
68 |
++++ b/src/libs/registry/CMakeLists.txt |
69 |
+@@ -1,4 +1,4 @@ |
70 |
+-add_library(Registry |
71 |
++add_library(Registry STATIC |
72 |
+ cancellationtoken.h |
73 |
+ docset.cpp |
74 |
+ docsetmetadata.cpp |
75 |
+diff --git a/src/libs/ui/CMakeLists.txt b/src/libs/ui/CMakeLists.txt |
76 |
+index 1fe12ef..27a4877 100644 |
77 |
+--- a/src/libs/ui/CMakeLists.txt |
78 |
++++ b/src/libs/ui/CMakeLists.txt |
79 |
+@@ -16,7 +16,7 @@ set(Ui_FORMS |
80 |
+ settingsdialog.ui |
81 |
+ ) |
82 |
+ |
83 |
+-add_library(Ui |
84 |
++add_library(Ui STATIC |
85 |
+ aboutdialog.cpp |
86 |
+ docsetlistitemdelegate.cpp |
87 |
+ docsetsdialog.cpp |
88 |
+diff --git a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt |
89 |
+index 8b1b0ef..1776839 100644 |
90 |
+--- a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt |
91 |
++++ b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt |
92 |
+@@ -19,7 +19,7 @@ elseif(WIN32) |
93 |
+ ) |
94 |
+ endif() |
95 |
+ |
96 |
+-add_library(QxtGlobalShortcut ${QxtGlobalShortcut_SOURCES}) |
97 |
++add_library(QxtGlobalShortcut STATIC ${QxtGlobalShortcut_SOURCES}) |
98 |
+ |
99 |
+ find_package(Qt5Gui REQUIRED) |
100 |
+ target_link_libraries(QxtGlobalShortcut Qt5::Gui) |
101 |
+diff --git a/src/libs/util/CMakeLists.txt b/src/libs/util/CMakeLists.txt |
102 |
+index d4ab871..ad0e9ec 100644 |
103 |
+--- a/src/libs/util/CMakeLists.txt |
104 |
++++ b/src/libs/util/CMakeLists.txt |
105 |
+@@ -1,7 +1,7 @@ |
106 |
+ # Nothing to moc here, so avoid empty build units. |
107 |
+ set(CMAKE_AUTOMOC OFF) |
108 |
+ |
109 |
+-add_library(Util |
110 |
++add_library(Util STATIC |
111 |
+ plist.cpp |
112 |
+ sqlitedatabase.cpp |
113 |
+ version.cpp |
114 |
+-- |
115 |
+2.19.2 |
116 |
+ |
117 |
|
118 |
diff --git a/app-doc/zeal/files/0002-settings-disable-checking-for-updates-by-default.patch b/app-doc/zeal/files/0002-settings-disable-checking-for-updates-by-default.patch |
119 |
new file mode 100644 |
120 |
index 00000000000..977412c4733 |
121 |
--- /dev/null |
122 |
+++ b/app-doc/zeal/files/0002-settings-disable-checking-for-updates-by-default.patch |
123 |
@@ -0,0 +1,26 @@ |
124 |
+From 3d499c8391e36b7fb1780815d04e533f26333145 Mon Sep 17 00:00:00 2001 |
125 |
+From: Henning Schild <henning@×××××××.de> |
126 |
+Date: Sat, 9 Mar 2019 10:29:54 +0100 |
127 |
+Subject: [PATCH 2/2] settings: disable checking for updates by default |
128 |
+ |
129 |
+Signed-off-by: Henning Schild <henning@×××××××.de> |
130 |
+--- |
131 |
+ src/libs/core/settings.cpp | 2 +- |
132 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
133 |
+ |
134 |
+diff --git a/src/libs/core/settings.cpp b/src/libs/core/settings.cpp |
135 |
+index 8922bc4..549ddff 100644 |
136 |
+--- a/src/libs/core/settings.cpp |
137 |
++++ b/src/libs/core/settings.cpp |
138 |
+@@ -72,7 +72,7 @@ void Settings::load() |
139 |
+ |
140 |
+ // TODO: Put everything in groups |
141 |
+ startMinimized = settings->value(QStringLiteral("start_minimized"), false).toBool(); |
142 |
+- checkForUpdate = settings->value(QStringLiteral("check_for_update"), true).toBool(); |
143 |
++ checkForUpdate = settings->value(QStringLiteral("check_for_update"), false).toBool(); |
144 |
+ |
145 |
+ showSystrayIcon = settings->value(QStringLiteral("show_systray_icon"), true).toBool(); |
146 |
+ minimizeToSystray = settings->value(QStringLiteral("minimize_to_systray"), false).toBool(); |
147 |
+-- |
148 |
+2.19.2 |
149 |
+ |
150 |
|
151 |
diff --git a/app-doc/zeal/zeal-0.6.1.ebuild b/app-doc/zeal/zeal-0.6.1.ebuild |
152 |
new file mode 100644 |
153 |
index 00000000000..19114642c84 |
154 |
--- /dev/null |
155 |
+++ b/app-doc/zeal/zeal-0.6.1.ebuild |
156 |
@@ -0,0 +1,53 @@ |
157 |
+# Copyright 1999-2019 Gentoo Authors |
158 |
+# Distributed under the terms of the GNU General Public License v2 |
159 |
+ |
160 |
+EAPI=7 |
161 |
+ |
162 |
+inherit cmake-utils xdg-utils |
163 |
+ |
164 |
+DESCRIPTION="Offline documentation browser inspired by Dash" |
165 |
+HOMEPAGE="https://zealdocs.org/" |
166 |
+SRC_URI="https://github.com/zealdocs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
167 |
+ |
168 |
+LICENSE="GPL-3" |
169 |
+SLOT="0" |
170 |
+KEYWORDS="~amd64 ~x86" |
171 |
+ |
172 |
+IUSE="vanilla" |
173 |
+ |
174 |
+DEPEND=" |
175 |
+ app-arch/libarchive |
176 |
+ dev-qt/qtconcurrent:5 |
177 |
+ dev-qt/qtgui:5 |
178 |
+ dev-qt/qtnetwork:5 |
179 |
+ dev-qt/qtsql:5[sqlite] |
180 |
+ dev-qt/qtwebkit:5 |
181 |
+ dev-qt/qtwidgets:5 |
182 |
+ dev-qt/qtx11extras:5 |
183 |
+ kde-frameworks/extra-cmake-modules:5 |
184 |
+ >=x11-libs/xcb-util-keysyms-0.3.9 |
185 |
+" |
186 |
+ |
187 |
+RDEPEND=" |
188 |
+ ${DEPEND} |
189 |
+ x11-themes/hicolor-icon-theme |
190 |
+" |
191 |
+ |
192 |
+src_prepare() { |
193 |
+ default |
194 |
+ eapply "${FILESDIR}/0001-libs-enforce-static-linking-of-internal-libs.patch" |
195 |
+ if ! use vanilla; then |
196 |
+ eapply "${FILESDIR}/0002-settings-disable-checking-for-updates-by-default.patch" |
197 |
+ fi |
198 |
+ cmake-utils_src_prepare |
199 |
+} |
200 |
+ |
201 |
+pkg_postinst() { |
202 |
+ xdg_icon_cache_update |
203 |
+ xdg_desktop_database_update |
204 |
+} |
205 |
+ |
206 |
+pkg_postrm() { |
207 |
+ xdg_icon_cache_update |
208 |
+ xdg_desktop_database_update |
209 |
+} |