1 |
commit: 9b9ca4117cee2f06eb34e6e01cc55421a33d2fe4 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 31 00:47:59 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 31 20:53:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b9ca411 |
7 |
|
8 |
dev-libs/libdbusmenu-qt: Drop USE=qt5, build it unconditionally |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
.../libdbusmenu-qt-0.9.3_pre20160218-r1.ebuild | 124 +++++++++++++++++++++ |
13 |
1 file changed, 124 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218-r1.ebuild b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..34335d9c8a2 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218-r1.ebuild |
20 |
@@ -0,0 +1,124 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+EBZR_REPO_URI="lp:libdbusmenu-qt" |
27 |
+ |
28 |
+[[ ${PV} == 9999* ]] && inherit bzr |
29 |
+inherit cmake-multilib multibuild virtualx |
30 |
+ |
31 |
+DESCRIPTION="Library providing Qt implementation of DBusMenu specification" |
32 |
+HOMEPAGE="https://launchpad.net/libdbusmenu-qt/" |
33 |
+if [[ ${PV} != 9999* ]] ; then |
34 |
+ MY_PV=${PV/_pre/+16.04.} |
35 |
+ SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${MY_PV}.orig.tar.gz" |
36 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
37 |
+fi |
38 |
+ |
39 |
+LICENSE="LGPL-2" |
40 |
+SLOT="0" |
41 |
+IUSE="debug qt4" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ dev-qt/qtcore:5 |
45 |
+ dev-qt/qtdbus:5 |
46 |
+ dev-qt/qtgui:5 |
47 |
+ dev-qt/qtwidgets:5 |
48 |
+ qt4? ( |
49 |
+ >=dev-qt/qtcore-4.8.6:4[${MULTILIB_USEDEP}] |
50 |
+ >=dev-qt/qtdbus-4.8.6:4[${MULTILIB_USEDEP}] |
51 |
+ >=dev-qt/qtgui-4.8.6:4[${MULTILIB_USEDEP}] |
52 |
+ ) |
53 |
+" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ test? ( |
56 |
+ dev-qt/qttest:5 |
57 |
+ qt4? ( >=dev-qt/qttest-4.8.6:4[${MULTILIB_USEDEP}] ) |
58 |
+ ) |
59 |
+" |
60 |
+ |
61 |
+[[ ${PV} == 9999* ]] || S=${WORKDIR}/${PN}-${MY_PV} |
62 |
+ |
63 |
+DOCS=( NEWS README ) |
64 |
+ |
65 |
+# tests fail due to missing connection to dbus |
66 |
+RESTRICT="test" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ MULTIBUILD_VARIANTS=( $(usex qt4 4) 5 ) |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ [[ ${PV} == 9999* ]] && bzr_src_prepare |
74 |
+ cmake-utils_src_prepare |
75 |
+ |
76 |
+ cmake_comment_add_subdirectory tools |
77 |
+ use test || cmake_comment_add_subdirectory tests |
78 |
+} |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ local mycmakeargs=( |
82 |
+ -DWITH_DOC=OFF |
83 |
+ -DUSE_QT${QT_MULTIBUILD_VARIANT}=ON |
84 |
+ -DQT_QMAKE_EXECUTABLE="/usr/$(get_libdir)/qt${QT_MULTIBUILD_VARIANT}/bin/qmake" |
85 |
+ ) |
86 |
+ cmake-utils_src_configure |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ myconfigure() { |
91 |
+ local QT_MULTIBUILD_VARIANT=${MULTIBUILD_VARIANT} |
92 |
+ if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then |
93 |
+ cmake-multilib_src_configure |
94 |
+ elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then |
95 |
+ multilib_src_configure |
96 |
+ fi |
97 |
+ } |
98 |
+ |
99 |
+ multibuild_foreach_variant myconfigure |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ mycompile() { |
104 |
+ if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then |
105 |
+ cmake-multilib_src_compile |
106 |
+ elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then |
107 |
+ cmake-utils_src_compile |
108 |
+ fi |
109 |
+ } |
110 |
+ |
111 |
+ multibuild_foreach_variant mycompile |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ myinstall() { |
116 |
+ if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then |
117 |
+ cmake-multilib_src_install |
118 |
+ elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then |
119 |
+ cmake-utils_src_install |
120 |
+ fi |
121 |
+ } |
122 |
+ |
123 |
+ multibuild_foreach_variant myinstall |
124 |
+} |
125 |
+ |
126 |
+src_test() { |
127 |
+ mytest() { |
128 |
+ if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then |
129 |
+ cmake-multilib_src_test |
130 |
+ elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then |
131 |
+ multilib_src_test |
132 |
+ fi |
133 |
+ } |
134 |
+ |
135 |
+ multibuild_foreach_variant mytest |
136 |
+} |
137 |
+ |
138 |
+multilib_src_test() { |
139 |
+ local builddir=${BUILD_DIR} |
140 |
+ |
141 |
+ BUILD_DIR=${BUILD_DIR}/tests virtx cmake-utils_src_test |
142 |
+ |
143 |
+ BUILD_DIR=${builddir} |
144 |
+} |