1 |
commit: f8aefca5a2bee8def8480eb5a9c6069ef67e08f4 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 23:21:09 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 23:22:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8aefca5 |
7 |
|
8 |
app-text/bibletime: remove indirect dependencies |
9 |
|
10 |
Closes: https://bugs.gentoo.org/861044 |
11 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
12 |
|
13 |
app-text/bibletime/bibletime-3.0.3-r3.ebuild | 60 ++++++++++++++++++++++ |
14 |
.../files/bibletime-3.0.3-no_indirect_deps.patch | 20 ++++++++ |
15 |
2 files changed, 80 insertions(+) |
16 |
|
17 |
diff --git a/app-text/bibletime/bibletime-3.0.3-r3.ebuild b/app-text/bibletime/bibletime-3.0.3-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..7c4cc4b09136 |
20 |
--- /dev/null |
21 |
+++ b/app-text/bibletime/bibletime-3.0.3-r3.ebuild |
22 |
@@ -0,0 +1,60 @@ |
23 |
+# Copyright 1999-2022 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+ |
28 |
+inherit cmake xdg-utils |
29 |
+ |
30 |
+DESCRIPTION="Qt Bible-study application using the SWORD library" |
31 |
+HOMEPAGE="https://bibletime.info/" |
32 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+ |
38 |
+RDEPEND=">=app-text/sword-1.8.1[curl,icu] |
39 |
+ dev-cpp/clucene |
40 |
+ dev-qt/qtcore:5 |
41 |
+ dev-qt/qtgui:5 |
42 |
+ dev-qt/qtprintsupport:5 |
43 |
+ dev-qt/qtsvg:5 |
44 |
+ dev-qt/qtwebchannel:5 |
45 |
+ dev-qt/qtwebengine:5 |
46 |
+ dev-qt/qtwidgets:5 |
47 |
+ dev-qt/qtxml:5" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ dev-libs/boost |
50 |
+ dev-qt/qttest:5" |
51 |
+BDEPEND="dev-qt/linguist-tools:5" |
52 |
+ |
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}"/${PN}-3.0.3-no_indirect_deps.patch |
55 |
+) |
56 |
+ |
57 |
+DOCS=( ChangeLog README.md ) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ cmake_src_prepare |
61 |
+ |
62 |
+ sed -e "s:Dictionary;Qt:Dictionary;Office;TextTools;Utility;Qt:" \ |
63 |
+ -i cmake/platforms/linux/bibletime.desktop.cmake || die "fixing .desktop file failed" |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DBUILD_HANDBOOK_HTML=no |
69 |
+ -DBUILD_HANDBOOK_PDF=no |
70 |
+ -DBUILD_HOWTO_HTML=no |
71 |
+ -DBUILD_HOWTO_PDF=no |
72 |
+ ) |
73 |
+ cmake_src_configure |
74 |
+} |
75 |
+ |
76 |
+pkg_postinst() { |
77 |
+ xdg_icon_cache_update |
78 |
+} |
79 |
+ |
80 |
+pkg_postrm() { |
81 |
+ xdg_icon_cache_update |
82 |
+} |
83 |
|
84 |
diff --git a/app-text/bibletime/files/bibletime-3.0.3-no_indirect_deps.patch b/app-text/bibletime/files/bibletime-3.0.3-no_indirect_deps.patch |
85 |
new file mode 100644 |
86 |
index 000000000000..87a129c9d80b |
87 |
--- /dev/null |
88 |
+++ b/app-text/bibletime/files/bibletime-3.0.3-no_indirect_deps.patch |
89 |
@@ -0,0 +1,20 @@ |
90 |
+According to documentation upstream build scripts only look for these |
91 |
+packages to try and guess whether support for them has been enabled |
92 |
+in app-text/sword. |
93 |
+ |
94 |
+--- a/platforms/common/core/core.pro |
95 |
++++ b/platforms/common/core/core.pro |
96 |
+@@ -173,13 +173,5 @@ |
97 |
+ # Clucene |
98 |
+ include(../../common/clucene/clucene.pro) |
99 |
+ |
100 |
+-# CURL |
101 |
+-# optional |
102 |
+-curl:include(../../common/curl/curl.pro) |
103 |
+- |
104 |
+-# ICU |
105 |
+-# optional |
106 |
+-icu:include(../../common/icu/icu.pro) |
107 |
+- |
108 |
+ # Sword |
109 |
+ include(../../common/sword/sword.pro) |