Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde-sunset:master commit in: dev-libs/libindicate-qt/files/, dev-libs/libindicate-qt/
Date: Tue, 25 Aug 2020 14:38:27
Message-Id: 1598354979.f3a94cc63fac1ef08165362ca95a7c132bf766b1.asturm@gentoo
1 commit: f3a94cc63fac1ef08165362ca95a7c132bf766b1
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 25 11:29:39 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 25 11:29:39 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=f3a94cc6
7
8 dev-libs/libindicate-qt: Import 0.2.5.91 from before last-rites
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../libindicate-qt-0.2.5.91-optionaltests.patch | 24 ++++++++++
14 .../libindicate-qt/libindicate-qt-0.2.5.91.ebuild | 55 ++++++++++++++++++++++
15 dev-libs/libindicate-qt/metadata.xml | 11 +++++
16 3 files changed, 90 insertions(+)
17
18 diff --git a/dev-libs/libindicate-qt/files/libindicate-qt-0.2.5.91-optionaltests.patch b/dev-libs/libindicate-qt/files/libindicate-qt-0.2.5.91-optionaltests.patch
19 new file mode 100644
20 index 00000000..5fa46f33
21 --- /dev/null
22 +++ b/dev-libs/libindicate-qt/files/libindicate-qt-0.2.5.91-optionaltests.patch
23 @@ -0,0 +1,24 @@
24 +https://code.launchpad.net/~ballogy/libindicate-qt/make-examples-and-tests-optional/+merge/82829
25 +=== modified file 'CMakeLists.txt'
26 +--- A/CMakeLists.txt 2010-03-08 09:02:19 +0000
27 ++++ B/CMakeLists.txt 2011-11-20 20:28:23 +0000
28 +@@ -36,8 +36,16 @@
29 + DESTINATION lib${LIB_SUFFIX}/pkgconfig)
30 +
31 + add_subdirectory(src)
32 +-add_subdirectory(examples)
33 +-add_subdirectory(tests)
34 ++
35 ++option( BUILD_EXAMPLES "build examples" ON )
36 ++if (BUILD_EXAMPLES)
37 ++ add_subdirectory(examples)
38 ++endif (BUILD_EXAMPLES)
39 ++
40 ++option( BUILD_TESTS "build tests" ON )
41 ++if (BUILD_TESTS)
42 ++ add_subdirectory(tests)
43 ++endif (BUILD_TESTS)
44 +
45 + # Packaging
46 + set(ARCHIVE_NAME libindicate-qt-${indicate_qt_VERSION})
47 +
48
49 diff --git a/dev-libs/libindicate-qt/libindicate-qt-0.2.5.91.ebuild b/dev-libs/libindicate-qt/libindicate-qt-0.2.5.91.ebuild
50 new file mode 100644
51 index 00000000..33cfe227
52 --- /dev/null
53 +++ b/dev-libs/libindicate-qt/libindicate-qt-0.2.5.91.ebuild
54 @@ -0,0 +1,55 @@
55 +# Copyright 1999-2020 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=6
59 +
60 +inherit virtualx cmake-utils
61 +
62 +_UBUNTU_REVISION=5
63 +
64 +DESCRIPTION="Qt wrapper for libindicate library"
65 +HOMEPAGE="https://launchpad.net/libindicate-qt/"
66 +SRC_URI="mirror://ubuntu/pool/main/libi/${PN}/${PN}_${PV}.orig.tar.bz2
67 + mirror://ubuntu/pool/main/libi/${PN}/${PN}_${PV}-${_UBUNTU_REVISION}.debian.tar.gz"
68 +
69 +LICENSE="LGPL-3"
70 +SLOT="0"
71 +KEYWORDS="~amd64 ~x86"
72 +IUSE="test"
73 +
74 +RDEPEND="
75 + >=dev-libs/libindicate-12.10.0
76 + dev-qt/qtcore:4
77 + dev-qt/qtgui:4
78 +"
79 +DEPEND="${RDEPEND}
80 + virtual/pkgconfig
81 + test? ( dev-qt/qttest:4 )
82 +"
83 +
84 +# bug #440042
85 +RESTRICT="test"
86 +
87 +src_prepare() {
88 + eapply "${WORKDIR}"/debian/patches
89 + eapply "${FILESDIR}"/${P}-optionaltests.patch
90 + cmake-utils_src_prepare
91 +}
92 +
93 +src_configure() {
94 + local mycmakeargs=(
95 + -DBUILD_EXAMPLES=OFF
96 + -DBUILD_TESTS=$(usex test)
97 + )
98 +
99 + cmake-utils_src_configure
100 +}
101 +
102 +src_test() {
103 + local ctestargs
104 + [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
105 +
106 + cd "${CMAKE_BUILD_DIR}"/tests
107 +
108 + VIRTUALX_COMMAND="ctest ${ctestargs}" virtualmake || die
109 +}
110
111 diff --git a/dev-libs/libindicate-qt/metadata.xml b/dev-libs/libindicate-qt/metadata.xml
112 new file mode 100644
113 index 00000000..d82f5059
114 --- /dev/null
115 +++ b/dev-libs/libindicate-qt/metadata.xml
116 @@ -0,0 +1,11 @@
117 +<?xml version="1.0" encoding="UTF-8"?>
118 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
119 +<pkgmetadata>
120 + <maintainer type="project">
121 + <email>kde@g.o</email>
122 + <name>Gentoo KDE Project</name>
123 + </maintainer>
124 + <upstream>
125 + <remote-id type="launchpad">libindicate-qt</remote-id>
126 + </upstream>
127 +</pkgmetadata>