1 |
commit: 61e260162a204a7b9273cb901cec49a487387f17 |
2 |
Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 13:33:53 2011 +0000 |
4 |
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 13:33:53 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=61e26016 |
7 |
|
8 |
[dev-libs/libdbusmenu-qt] Sync with main tree. |
9 |
|
10 |
--- |
11 |
dev-libs/libdbusmenu-qt/libdbusmenu-qt-9999.ebuild | 40 ++++++++------------ |
12 |
1 files changed, 16 insertions(+), 24 deletions(-) |
13 |
|
14 |
diff --git a/dev-libs/libdbusmenu-qt/libdbusmenu-qt-9999.ebuild b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-9999.ebuild |
15 |
index 14021ea..4e41c6b 100644 |
16 |
--- a/dev-libs/libdbusmenu-qt/libdbusmenu-qt-9999.ebuild |
17 |
+++ b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-9999.ebuild |
18 |
@@ -1,31 +1,27 @@ |
19 |
# Copyright 1999-2011 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
-# $Header: $ |
22 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.8.2.ebuild,v 1.1 2011/04/29 13:32:45 scarabeus Exp $ |
23 |
|
24 |
EAPI=4 |
25 |
|
26 |
QT_DEPEND="4.6.3" |
27 |
-inherit cmake-utils virtualx |
28 |
+EGIT_REPO_URI="git://gitorious.org/dbusmenu/dbusmenu-qt.git" |
29 |
|
30 |
-if [[ "${PV}" = 9999* ]] ; then |
31 |
- inherit git-2 |
32 |
- |
33 |
- EGIT_REPO_URI="git://gitorious.org/dbusmenu/dbusmenu-qt.git" |
34 |
+[[ ${PV} == 9999* ]] && GIT_ECLASS="git-2" |
35 |
+inherit cmake-utils virtualx ${GIT_ECLASS} |
36 |
|
37 |
+DESCRIPTION="A library providing Qt implementation of DBusMenu specification" |
38 |
+HOMEPAGE="https://launchpad.net/libdbusmenu-qt/" |
39 |
+if [[ ${PV} == 9999* ]] ; then |
40 |
KEYWORDS="" |
41 |
else |
42 |
- # We are using snapshots from Aurelien's repos, as advised in kde-packager ml |
43 |
- # This is because version 0.6.3 removed code from the official version, |
44 |
- # because Canonical has no copyright on it |
45 |
- #SRC_URI="mirror://gentoo/${P}.tar.bz2" |
46 |
- SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2" |
47 |
- |
48 |
+ #SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2" |
49 |
+ # upstream has no permissions to use some kde written code so repack git |
50 |
+ # repo every time |
51 |
+ SRC_URI="http://dev.gentoo.org/~scarabeus/${P}.tar.xz" |
52 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
53 |
fi |
54 |
|
55 |
-DESCRIPTION="A library providing Qt implementation of DBusMenu specification" |
56 |
-HOMEPAGE="https://launchpad.net/libdbusmenu-qt/" |
57 |
- |
58 |
LICENSE="LGPL-2" |
59 |
SLOT="0" |
60 |
IUSE="debug doc" |
61 |
@@ -44,8 +40,11 @@ DEPEND="${RDEPEND} |
62 |
|
63 |
DOCS=(NEWS README) |
64 |
|
65 |
+# tests fail due to missing conection to dbus |
66 |
+RESTRICT="test" |
67 |
+ |
68 |
src_configure() { |
69 |
- mycmakeargs=( |
70 |
+ local mycmakeargs=( |
71 |
$(cmake-utils_use_build test TESTS) |
72 |
$(cmake-utils_use_with doc) |
73 |
) |
74 |
@@ -53,12 +52,5 @@ src_configure() { |
75 |
} |
76 |
|
77 |
src_test() { |
78 |
- pushd "${CMAKE_BUILD_DIR}/tests" > /dev/null |
79 |
- local ctestargs |
80 |
- [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" |
81 |
- |
82 |
- export maketype="ctest ${ctestargs}" |
83 |
- virtualmake || die "Tests failed." |
84 |
- |
85 |
- popd > /dev/null |
86 |
+ CMAKE_BUILD_DIR=${CMAKE_BUILD_DIR}/tests VIRTUALX_COMMAND=cmake-utils_src_test virtualmake |
87 |
} |