1 |
commit: 800b1ca3d1ea9345753a39da0fa58193a6bfbe11 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 12 19:06:17 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 12 19:32:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=800b1ca3 |
7 |
|
8 |
x11-themes/qtcurve: Port to cmake.eclass and kde.org.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
x11-themes/qtcurve/qtcurve-1.9.0-r1.ebuild | 56 ++++++++++++++++-------------- |
14 |
1 file changed, 29 insertions(+), 27 deletions(-) |
15 |
|
16 |
diff --git a/x11-themes/qtcurve/qtcurve-1.9.0-r1.ebuild b/x11-themes/qtcurve/qtcurve-1.9.0-r1.ebuild |
17 |
index f09ad982cf4..61c47c601e9 100644 |
18 |
--- a/x11-themes/qtcurve/qtcurve-1.9.0-r1.ebuild |
19 |
+++ b/x11-themes/qtcurve/qtcurve-1.9.0-r1.ebuild |
20 |
@@ -1,20 +1,20 @@ |
21 |
-# Copyright 1999-2019 Gentoo Authors |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=7 |
26 |
|
27 |
-ECM_KDEINSTALLDIRS="false" |
28 |
-KDE_AUTODEPS="false" |
29 |
-inherit kde5 |
30 |
+KFMIN=5.60.0 |
31 |
+QTMIN=5.12.3 |
32 |
+inherit cmake kde.org |
33 |
|
34 |
DESCRIPTION="Widget styles for Qt and GTK2" |
35 |
HOMEPAGE="https://cgit.kde.org/qtcurve.git" |
36 |
|
37 |
LICENSE="LGPL-2+" |
38 |
SLOT="0" |
39 |
-IUSE="+X gtk nls plasma +qt5 test" |
40 |
+IUSE="gtk nls plasma +qt5 test +X" |
41 |
|
42 |
-if [[ "${PV}" != 9999 ]] ; then |
43 |
+if [[ ${KDE_BUILD_TYPE} = release ]] ; then |
44 |
SRC_URI="https://github.com/KDE/qtcurve/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" |
45 |
KEYWORDS="~alpha amd64 ~hppa ppc ppc64 ~sparc x86" |
46 |
S="${WORKDIR}/${P/_/-}" |
47 |
@@ -28,32 +28,33 @@ REQUIRED_USE="gtk? ( X ) |
48 |
BDEPEND=" |
49 |
virtual/pkgconfig |
50 |
nls? ( sys-devel/gettext ) |
51 |
+ plasma? ( >=kde-frameworks/extra-cmake-modules-${KFMIN}:5 ) |
52 |
" |
53 |
DEPEND=" |
54 |
gtk? ( x11-libs/gtk+:2 ) |
55 |
plasma? ( |
56 |
- $(add_frameworks_dep frameworkintegration) |
57 |
- $(add_frameworks_dep karchive) |
58 |
- $(add_frameworks_dep kcompletion) |
59 |
- $(add_frameworks_dep kconfig) |
60 |
- $(add_frameworks_dep kconfigwidgets) |
61 |
- $(add_frameworks_dep kcoreaddons) |
62 |
- $(add_frameworks_dep kdelibs4support) |
63 |
- $(add_frameworks_dep kguiaddons) |
64 |
- $(add_frameworks_dep ki18n) |
65 |
- $(add_frameworks_dep kiconthemes) |
66 |
- $(add_frameworks_dep kio) |
67 |
- $(add_frameworks_dep kwidgetsaddons) |
68 |
- $(add_frameworks_dep kwindowsystem) |
69 |
- $(add_frameworks_dep kxmlgui) |
70 |
- $(add_qt_dep qtprintsupport) |
71 |
+ >=dev-qt/qtprintsupport-${QTMIN}:5 |
72 |
+ >=kde-frameworks/frameworkintegration-${KFMIN}:5 |
73 |
+ >=kde-frameworks/karchive-${KFMIN}:5 |
74 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
75 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
76 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
77 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
78 |
+ >=kde-frameworks/kdelibs4support-${KFMIN}:5 |
79 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
80 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
81 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
82 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
83 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
84 |
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5 |
85 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
86 |
) |
87 |
qt5? ( |
88 |
- $(add_qt_dep qtdbus) |
89 |
- $(add_qt_dep qtgui) |
90 |
- $(add_qt_dep qtsvg) |
91 |
- $(add_qt_dep qtwidgets) |
92 |
- X? ( $(add_qt_dep qtx11extras) ) |
93 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
94 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
95 |
+ >=dev-qt/qtsvg-${QTMIN}:5 |
96 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
97 |
+ X? ( >=dev-qt/qtx11extras-${QTMIN}:5 ) |
98 |
) |
99 |
X? ( |
100 |
x11-libs/libX11 |
101 |
@@ -81,10 +82,11 @@ src_configure() { |
102 |
-DQTC_KDE4_DEFAULT_HOME=ON |
103 |
-DENABLE_GTK2="$(usex gtk)" |
104 |
-DENABLE_QT5="$(usex qt5)" |
105 |
+ -DBUILD_TESTING="$(usex test)" |
106 |
-DQTC_ENABLE_X11="$(usex X)" |
107 |
-DQTC_INSTALL_PO="$(usex nls)" |
108 |
-DQTC_QT5_ENABLE_KDE="$(usex plasma)" |
109 |
) |
110 |
|
111 |
- kde5_src_configure |
112 |
+ cmake_src_configure |
113 |
} |