From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7BBA8138334 for ; Fri, 16 Aug 2019 08:24:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92067E0A44; Fri, 16 Aug 2019 08:24:57 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6933BE0A44 for ; Fri, 16 Aug 2019 08:24:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A25D349C39 for ; Fri, 16 Aug 2019 08:24:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDE4D622 for ; Fri, 16 Aug 2019 08:24:52 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1565943851.ff563e1f8767fc2308620932074af06bee16829b.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/kmplayer/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild X-VCS-Directories: media-video/kmplayer/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: ff563e1f8767fc2308620932074af06bee16829b X-VCS-Branch: master Date: Fri, 16 Aug 2019 08:24:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b0c127b3-b1b5-4e9a-9382-310d66232d61 X-Archives-Hash: 54b515244e584d721540b157d2083315 commit: ff563e1f8767fc2308620932074af06bee16829b Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Aug 16 07:35:50 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Aug 16 08:24:11 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff563e1f media-video/kmplayer: EAPI-7 bump, drop obsolete blocker Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner gentoo.org> media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild | 98 +++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild b/media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild new file mode 100644 index 00000000000..ddd10e09aab --- /dev/null +++ b/media-video/kmplayer/kmplayer-0.12.0b-r2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KDE_HANDBOOK="true" +inherit kde5 + +DESCRIPTION="Video player plugin for Konqueror and basic MPlayer frontend" +HOMEPAGE="https://kmplayer.kde.org" +SRC_URI="mirror://kde/stable/${PN}/${EGIT_BRANCH}/${P}.tar.bz2" + +LICENSE="GPL-2 FDL-1.2 LGPL-2.1" +KEYWORDS="amd64 x86" +IUSE="cairo npp" + +BDEPEND=" + sys-devel/gettext +" +DEPEND=" + $(add_frameworks_dep kbookmarks) + $(add_frameworks_dep kcompletion) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kdelibs4support) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep kmediaplayer) + $(add_frameworks_dep kparts) + $(add_frameworks_dep ktextwidgets) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kxmlgui) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtsvg) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtx11extras) + $(add_qt_dep qtxml) + media-libs/phonon[qt5(+)] + x11-libs/libX11 + x11-libs/libxcb + cairo? ( x11-libs/cairo[xcb] ) + npp? ( + dev-libs/dbus-glib + dev-libs/glib:2 + www-plugins/adobe-flash:* + >=x11-libs/gtk+-2.10.14:2 + ) +" +RDEPEND="${DEPEND} + media-video/mplayer +" + +PATCHES=( + "${FILESDIR}"/${P}-schedulerepaint.patch + "${FILESDIR}"/${P}-devpixelratio.patch + "${FILESDIR}"/${P}-qfile.patch + "${FILESDIR}"/${P}-cmake.patch + "${FILESDIR}"/${P}-desktop.patch + "${FILESDIR}"/${P}-qt-5.9.patch + "${FILESDIR}"/${P}-qt-5.11b3.patch +) + +src_prepare() { + # Prerequisite for ${P}-desktop.patch: + mv src/kmplayer.desktop src/org.kde.kmplayer.desktop || die + kde5_src_prepare + + if use npp; then + sed -i src/kmplayer_part.desktop \ + -e ":^MimeType: s:=:=application/x-shockwave-flash;:" || die + fi +} + +src_configure() { + # 0.12: expat build broken, check in later releases + local mycmakeargs=( + -DKMPLAYER_BUILT_WITH_EXPAT=OFF + -DKMPLAYER_BUILT_WITH_CAIRO=$(usex cairo) + -DKMPLAYER_BUILT_WITH_NPP=$(usex npp) + ) + + kde5_src_configure +} + +src_install() { + kde5_src_install + + if use npp; then + kwriteconfig5 --file "${ED}/usr/share/config/kmplayerrc" \ + --group "application/x-shockwave-flash" --key player npp + kwriteconfig5 --file "${ED}/usr/share/config/kmplayerrc" \ + --group "application/x-shockwave-flash" \ + --key plugin /usr/$(get_libdir)/nsbrowser/plugins/libflashplayer.so + fi +}