1 |
commit: ce790e700a35fb985b2e661ab91f1406249df097 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 3 15:30:14 2013 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 3 15:30:14 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=ce790e70 |
7 |
|
8 |
[app-office/akonadi-server] Launch dbus for tests and unrestrict them. |
9 |
|
10 |
Package-Manager: portage-2.1.12.2 |
11 |
|
12 |
--- |
13 |
app-office/akonadi-server/akonadi-server-9999.ebuild | 8 ++++++-- |
14 |
1 file changed, 6 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/app-office/akonadi-server/akonadi-server-9999.ebuild b/app-office/akonadi-server/akonadi-server-9999.ebuild |
17 |
index d7b6ca1..a5e54e8 100644 |
18 |
--- a/app-office/akonadi-server/akonadi-server-9999.ebuild |
19 |
+++ b/app-office/akonadi-server/akonadi-server-9999.ebuild |
20 |
@@ -53,13 +53,12 @@ CDEPEND=" |
21 |
DEPEND="${CDEPEND} |
22 |
dev-libs/libxslt |
23 |
>=dev-util/automoc-0.9.88 |
24 |
+ test? ( sys-apps/dbus ) |
25 |
" |
26 |
RDEPEND="${CDEPEND} |
27 |
postgres? ( dev-db/postgresql-server ) |
28 |
" |
29 |
|
30 |
-RESTRICT="test" |
31 |
- |
32 |
pkg_setup() { |
33 |
# Set default storage backend in order: MySQL, SQLite PostgreSQL |
34 |
# reverse driver check to keep the order |
35 |
@@ -103,6 +102,11 @@ src_configure() { |
36 |
cmake-utils_src_configure |
37 |
} |
38 |
|
39 |
+src_test() { |
40 |
+ export $(dbus-launch) |
41 |
+ cmake-utils_src_test |
42 |
+} |
43 |
+ |
44 |
src_install() { |
45 |
# Who knows, maybe it accidentally fixes our permission issues |
46 |
cat <<-EOF > "${T}"/akonadiserverrc |