1 |
commit: b5cdfafae9a40d9dc0c7fc8f40e71f87b8bdf4f3 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 30 11:02:27 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 30 11:18:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5cdfafa |
7 |
|
8 |
app-text/bibletime: EAPI-7, cmake.eclass, fix dependencies |
9 |
|
10 |
Have also added a test phase which actually manages to launch the test |
11 |
suite, unfortunately it doesn't run properly yet so continue to restrict |
12 |
tests. |
13 |
|
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
app-text/bibletime/bibletime-2.11.2.ebuild | 33 ++++++++++++++++++++++-------- |
17 |
1 file changed, 24 insertions(+), 9 deletions(-) |
18 |
|
19 |
diff --git a/app-text/bibletime/bibletime-2.11.2.ebuild b/app-text/bibletime/bibletime-2.11.2.ebuild |
20 |
index ebbcd684ed6..4323fdebe25 100644 |
21 |
--- a/app-text/bibletime/bibletime-2.11.2.ebuild |
22 |
+++ b/app-text/bibletime/bibletime-2.11.2.ebuild |
23 |
@@ -1,20 +1,23 @@ |
24 |
-# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
-EAPI=6 |
29 |
+EAPI=7 |
30 |
|
31 |
-inherit cmake-utils |
32 |
+VIRTUALX_REQUIRED=test |
33 |
|
34 |
-DESCRIPTION="Qt Bible study application using the SWORD library" |
35 |
-HOMEPAGE="http://www.bibletime.info/" |
36 |
+inherit cmake virtualx |
37 |
+ |
38 |
+DESCRIPTION="Qt Bible-study application using the SWORD library" |
39 |
+HOMEPAGE="http://bibletime.info/" |
40 |
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" |
41 |
|
42 |
LICENSE="GPL-2" |
43 |
SLOT="0" |
44 |
KEYWORDS="~amd64 ~x86" |
45 |
-IUSE="debug" |
46 |
+IUSE="test" |
47 |
|
48 |
-# bug 313657 |
49 |
+# Some tests fail due to being unable to find an icon directory relative |
50 |
+# to ${WORKDIR}, some others segfault. Needs work. |
51 |
RESTRICT="test" |
52 |
|
53 |
RDEPEND=" |
54 |
@@ -23,6 +26,7 @@ RDEPEND=" |
55 |
dev-qt/qtcore:5 |
56 |
dev-qt/qtgui:5 |
57 |
dev-qt/qtprintsupport:5 |
58 |
+ dev-qt/qtsvg:5 |
59 |
dev-qt/qtwebchannel:5 |
60 |
dev-qt/qtwebengine:5 |
61 |
dev-qt/qtwidgets:5 |
62 |
@@ -36,12 +40,23 @@ DEPEND="${RDEPEND} |
63 |
net-misc/curl |
64 |
sys-libs/zlib |
65 |
" |
66 |
+BDEPEND="test? ( |
67 |
+ app-dicts/sword-Josephus |
68 |
+ app-dicts/sword-KJV |
69 |
+ app-dicts/sword-KJVA |
70 |
+ app-dicts/sword-Scofield |
71 |
+ app-dicts/sword-StrongsGreek |
72 |
+)" |
73 |
|
74 |
DOCS=( ChangeLog README.md ) |
75 |
|
76 |
src_prepare() { |
77 |
- cmake-utils_src_prepare |
78 |
+ cmake_src_prepare |
79 |
|
80 |
sed -e "s:Dictionary;Qt:Dictionary;Office;TextTools;Utility;Qt:" \ |
81 |
- -i cmake/platforms/linux/bibletime.desktop.cmake || die "fixing .desktop file failed" |
82 |
+ -i cmake/platforms/linux/bibletime.desktop.cmake || die "fixing .desktop file failed" |
83 |
+} |
84 |
+ |
85 |
+src_test() { |
86 |
+ virtx cmake_src_test || die "Test run has failed" |
87 |
} |