1 |
commit: ff563e1f8767fc2308620932074af06bee16829b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 16 07:35:50 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 16 08:24:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff563e1f |
7 |
|
8 |
media-video/kmplayer: EAPI-7 bump, drop obsolete blocker |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild | 98 +++++++++++++++++++++++++ |
14 |
1 file changed, 98 insertions(+) |
15 |
|
16 |
diff --git a/media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild b/media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..ddd10e09aab |
19 |
--- /dev/null |
20 |
+++ b/media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild |
21 |
@@ -0,0 +1,98 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+KDE_HANDBOOK="true" |
28 |
+inherit kde5 |
29 |
+ |
30 |
+DESCRIPTION="Video player plugin for Konqueror and basic MPlayer frontend" |
31 |
+HOMEPAGE="https://kmplayer.kde.org" |
32 |
+SRC_URI="mirror://kde/stable/${PN}/${EGIT_BRANCH}/${P}.tar.bz2" |
33 |
+ |
34 |
+LICENSE="GPL-2 FDL-1.2 LGPL-2.1" |
35 |
+KEYWORDS="amd64 x86" |
36 |
+IUSE="cairo npp" |
37 |
+ |
38 |
+BDEPEND=" |
39 |
+ sys-devel/gettext |
40 |
+" |
41 |
+DEPEND=" |
42 |
+ $(add_frameworks_dep kbookmarks) |
43 |
+ $(add_frameworks_dep kcompletion) |
44 |
+ $(add_frameworks_dep kconfig) |
45 |
+ $(add_frameworks_dep kconfigwidgets) |
46 |
+ $(add_frameworks_dep kcoreaddons) |
47 |
+ $(add_frameworks_dep kdelibs4support) |
48 |
+ $(add_frameworks_dep ki18n) |
49 |
+ $(add_frameworks_dep kiconthemes) |
50 |
+ $(add_frameworks_dep kio) |
51 |
+ $(add_frameworks_dep kmediaplayer) |
52 |
+ $(add_frameworks_dep kparts) |
53 |
+ $(add_frameworks_dep ktextwidgets) |
54 |
+ $(add_frameworks_dep kwidgetsaddons) |
55 |
+ $(add_frameworks_dep kxmlgui) |
56 |
+ $(add_qt_dep qtdbus) |
57 |
+ $(add_qt_dep qtgui) |
58 |
+ $(add_qt_dep qtsvg) |
59 |
+ $(add_qt_dep qtwidgets) |
60 |
+ $(add_qt_dep qtx11extras) |
61 |
+ $(add_qt_dep qtxml) |
62 |
+ media-libs/phonon[qt5(+)] |
63 |
+ x11-libs/libX11 |
64 |
+ x11-libs/libxcb |
65 |
+ cairo? ( x11-libs/cairo[xcb] ) |
66 |
+ npp? ( |
67 |
+ dev-libs/dbus-glib |
68 |
+ dev-libs/glib:2 |
69 |
+ www-plugins/adobe-flash:* |
70 |
+ >=x11-libs/gtk+-2.10.14:2 |
71 |
+ ) |
72 |
+" |
73 |
+RDEPEND="${DEPEND} |
74 |
+ media-video/mplayer |
75 |
+" |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}"/${P}-schedulerepaint.patch |
79 |
+ "${FILESDIR}"/${P}-devpixelratio.patch |
80 |
+ "${FILESDIR}"/${P}-qfile.patch |
81 |
+ "${FILESDIR}"/${P}-cmake.patch |
82 |
+ "${FILESDIR}"/${P}-desktop.patch |
83 |
+ "${FILESDIR}"/${P}-qt-5.9.patch |
84 |
+ "${FILESDIR}"/${P}-qt-5.11b3.patch |
85 |
+) |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ # Prerequisite for ${P}-desktop.patch: |
89 |
+ mv src/kmplayer.desktop src/org.kde.kmplayer.desktop || die |
90 |
+ kde5_src_prepare |
91 |
+ |
92 |
+ if use npp; then |
93 |
+ sed -i src/kmplayer_part.desktop \ |
94 |
+ -e ":^MimeType: s:=:=application/x-shockwave-flash;:" || die |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ # 0.12: expat build broken, check in later releases |
100 |
+ local mycmakeargs=( |
101 |
+ -DKMPLAYER_BUILT_WITH_EXPAT=OFF |
102 |
+ -DKMPLAYER_BUILT_WITH_CAIRO=$(usex cairo) |
103 |
+ -DKMPLAYER_BUILT_WITH_NPP=$(usex npp) |
104 |
+ ) |
105 |
+ |
106 |
+ kde5_src_configure |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ kde5_src_install |
111 |
+ |
112 |
+ if use npp; then |
113 |
+ kwriteconfig5 --file "${ED}/usr/share/config/kmplayerrc" \ |
114 |
+ --group "application/x-shockwave-flash" --key player npp |
115 |
+ kwriteconfig5 --file "${ED}/usr/share/config/kmplayerrc" \ |
116 |
+ --group "application/x-shockwave-flash" \ |
117 |
+ --key plugin /usr/$(get_libdir)/nsbrowser/plugins/libflashplayer.so |
118 |
+ fi |
119 |
+} |