Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/umbrello/files/, kde-apps/umbrello/
Date: Thu, 05 Feb 2015 19:58:50
Message-Id: 1423159669.b75be2852e70e83586bc9168d1cdee999e41c3f6.johu@gentoo
1 commit: b75be2852e70e83586bc9168d1cdee999e41c3f6
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 5 18:07:49 2015 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 5 18:07:49 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=b75be285
7
8 [kde-apps/umbrello] Add KF5 version
9
10 Package-Manager: portage-2.2.15
11
12 ---
13 .../files/umbrello-5.9999-tests-optional.patch | 33 +++++++++++++++
14 kde-apps/umbrello/umbrello-5.9999.ebuild | 49 ++++++++++++++++++++++
15 2 files changed, 82 insertions(+)
16
17 diff --git a/kde-apps/umbrello/files/umbrello-5.9999-tests-optional.patch b/kde-apps/umbrello/files/umbrello-5.9999-tests-optional.patch
18 new file mode 100644
19 index 0000000..e9bb603
20 --- /dev/null
21 +++ b/kde-apps/umbrello/files/umbrello-5.9999-tests-optional.patch
22 @@ -0,0 +1,33 @@
23 +--- a/CMakeLists.txt 2015-02-03 20:04:23.900153480 +0100
24 ++++ b/CMakeLists.txt 2015-02-03 20:25:08.164973819 +0100
25 +@@ -26,11 +26,19 @@
26 + Gui
27 + PrintSupport
28 + Svg
29 +- Test
30 + Widgets
31 + Xml
32 + )
33 +
34 ++find_package(Qt5Test ${QT_MIN_VERSION} QUIET)
35 ++set_package_properties(Qt5Test PROPERTIES
36 ++ PURPOSE "Required for tests"
37 ++ TYPE OPTIONAL)
38 ++add_feature_info("Qt5Test" Qt5Test_FOUND "Required for building tests")
39 ++if (NOT Qt5Test_FOUND)
40 ++ set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
41 ++endif()
42 ++
43 + # search packages used by KDE
44 + find_package(KF5 REQUIRED COMPONENTS
45 + Archive
46 +@@ -105,6 +113,8 @@
47 + endif(LIBXSLT_FOUND AND LIBXML2_FOUND)
48 +
49 + # for automatic unit tests
50 +-ecm_optional_add_subdirectory(unittests)
51 ++if (BUILD_TESTING)
52 ++ ecm_optional_add_subdirectory(unittests)
53 ++endif()
54 +
55 + feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
56
57 diff --git a/kde-apps/umbrello/umbrello-5.9999.ebuild b/kde-apps/umbrello/umbrello-5.9999.ebuild
58 new file mode 100644
59 index 0000000..5bb65ad
60 --- /dev/null
61 +++ b/kde-apps/umbrello/umbrello-5.9999.ebuild
62 @@ -0,0 +1,49 @@
63 +# Copyright 1999-2015 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +# $Header: $
66 +
67 +EAPI=5
68 +
69 +EGIT_BRANCH="frameworks"
70 +KDE_HANDBOOK="true"
71 +KDE_TEST="true"
72 +inherit kde5
73 +
74 +DESCRIPTION="KDE UML Modeller"
75 +HOMEPAGE="
76 + http://www.kde.org/applications/development/umbrello
77 + http://umbrello.kde.org
78 +"
79 +KEYWORDS=""
80 +IUSE=""
81 +
82 +RDEPEND="
83 + $(add_frameworks_dep karchive)
84 + $(add_frameworks_dep kauth)
85 + $(add_frameworks_dep kcompletion)
86 + $(add_frameworks_dep kconfig)
87 + $(add_frameworks_dep kcoreaddons)
88 + $(add_frameworks_dep kdoctools)
89 + $(add_frameworks_dep kguiaddons)
90 + $(add_frameworks_dep ki18n)
91 + $(add_frameworks_dep kiconthemes)
92 + $(add_frameworks_dep kinit)
93 + $(add_frameworks_dep kio)
94 + $(add_frameworks_dep kparts)
95 + $(add_frameworks_dep kservice)
96 + $(add_frameworks_dep ktexteditor)
97 + $(add_frameworks_dep kwidgetsaddons)
98 + $(add_frameworks_dep kwindowsystem)
99 + $(add_frameworks_dep kxmlgui)
100 + dev-libs/libxml2
101 + dev-libs/libxslt
102 + dev-qt/qtdbus:5
103 + dev-qt/qtgui:5
104 + dev-qt/qtprintsupport:5
105 + dev-qt/qtsvg:5
106 + dev-qt/qtwidgets:5
107 + dev-qt/qtxml:5
108 +"
109 +DEPEND="${RDEPEND}"
110 +
111 +PATCHES=( "${FILESDIR}/${PN}"-5.9999-tests-optional.patch )