1 |
commit: f88a84ae31279839dd7aac43997ce142e65e7b2d |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 20 14:08:58 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 27 21:45:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f88a84ae |
7 |
|
8 |
media-libs/libmediaart: Drop USE=qt4, fix build w/ Qt 5.7.0, EAPI 6. |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/590402 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/2605 |
14 |
|
15 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
16 |
|
17 |
media-libs/libmediaart/libmediaart-1.9.0-r1.ebuild | 77 ++++++++++++++++++++++ |
18 |
1 file changed, 77 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/libmediaart/libmediaart-1.9.0-r1.ebuild b/media-libs/libmediaart/libmediaart-1.9.0-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000..2103149 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/libmediaart/libmediaart-1.9.0-r1.ebuild |
25 |
@@ -0,0 +1,77 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI="6" |
31 |
+ |
32 |
+VALA_USE_DEPEND="vapigen" |
33 |
+VALA_MIN_API_VERSION="0.16" |
34 |
+ |
35 |
+inherit autotools flag-o-matic gnome2 vala virtualx |
36 |
+ |
37 |
+DESCRIPTION="Manages, extracts and handles media art caches" |
38 |
+HOMEPAGE="https://github.com/GNOME/libmediaart" |
39 |
+ |
40 |
+LICENSE="LGPL-2.1+" |
41 |
+SLOT="2.0" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
43 |
+IUSE="gtk +introspection qt5 vala" |
44 |
+REQUIRED_USE=" |
45 |
+ ?? ( gtk qt5 ) |
46 |
+ vala? ( introspection ) |
47 |
+" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-libs/glib-2.38.0:2 |
51 |
+ gtk? ( >=x11-libs/gdk-pixbuf-2.12:2 ) |
52 |
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= ) |
53 |
+ qt5? ( dev-qt/qtgui:5 ) |
54 |
+" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ dev-libs/gobject-introspection-common |
57 |
+ >=dev-util/gtk-doc-am-1.8 |
58 |
+ virtual/pkgconfig |
59 |
+ vala? ( $(vala_depend) ) |
60 |
+" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ # Fix QT automagic selection, bug #523122 |
64 |
+ eapply "${FILESDIR}"/${PN}-0.7.0-qt5.patch |
65 |
+ |
66 |
+ # Make doc parallel installable |
67 |
+ cd "${S}"/docs/reference/${PN} || die |
68 |
+ sed -e "s/\(DOC_MODULE.*=\).*/\1${PN}-${SLOT}/" \ |
69 |
+ -e "s/\(DOC_MAIN_SGML_FILE.*=\).*/\1${PN}-docs-${SLOT}.sgml/" \ |
70 |
+ -i Makefile.am Makefile.in || die |
71 |
+ sed -e "s/\(<book.*name=\"\)libmediaart/\1${PN}-${SLOT}/" \ |
72 |
+ -i html/libmediaart.devhelp2 || die |
73 |
+ mv libmediaart-docs{,-${SLOT}}.sgml || die |
74 |
+ mv libmediaart-overrides{,-${SLOT}}.txt || die |
75 |
+ mv libmediaart-sections{,-${SLOT}}.txt || die |
76 |
+ mv html/libmediaart{,-${SLOT}}.devhelp2 || die |
77 |
+ cd "${S}" || die |
78 |
+ |
79 |
+ eautoreconf |
80 |
+ |
81 |
+ use vala && vala_src_prepare |
82 |
+ gnome2_src_prepare |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ if use qt5 ; then |
87 |
+ local myconf="--with-qt-version=5" |
88 |
+ append-cxxflags -std=c++11 |
89 |
+ fi |
90 |
+ |
91 |
+ gnome2_src_configure \ |
92 |
+ --enable-unit-tests \ |
93 |
+ $(use_enable gtk gdkpixbuf) \ |
94 |
+ $(use_enable introspection) \ |
95 |
+ $(use_enable qt5 qt) \ |
96 |
+ $(use_enable vala) \ |
97 |
+ ${myconf} |
98 |
+} |
99 |
+ |
100 |
+src_test() { |
101 |
+ dbus-launch virtx emake check #513502 |
102 |
+} |