summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Steward <cstew764@gmail.com>2019-12-11 09:27:07 -0500
committerAndreas Sturmlechner <asturm@gentoo.org>2020-01-21 20:10:49 +0100
commitdea05089bb72d9ac4d591b38c4ba5554a73a56f7 (patch)
tree8ff0aa50c3f0dfbf5a59b50b0593450bc52c9d62 /media-video
parentmedia-video/baka-mplayer: New live ebuild (diff)
downloadgentoo-dea05089bb72d9ac4d591b38c4ba5554a73a56f7.tar.gz
gentoo-dea05089bb72d9ac4d591b38c4ba5554a73a56f7.tar.bz2
gentoo-dea05089bb72d9ac4d591b38c4ba5554a73a56f7.zip
media-video/baka-mplayer: fix mpv >=0.23.0 support
Signed-off-by: Christopher Steward <cstew764@gmail.com> Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/baka-mplayer/baka-mplayer-2.0.4-r1.ebuild51
-rw-r--r--media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch13
2 files changed, 64 insertions, 0 deletions
diff --git a/media-video/baka-mplayer/baka-mplayer-2.0.4-r1.ebuild b/media-video/baka-mplayer/baka-mplayer-2.0.4-r1.ebuild
new file mode 100644
index 000000000000..e13186333ae3
--- /dev/null
+++ b/media-video/baka-mplayer/baka-mplayer-2.0.4-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils
+
+DESCRIPTION="Cross-platform libmpv-based multimedia player with uncluttered design"
+HOMEPAGE="http://bakamplayer.u8sand.net/"
+SRC_URI="https://github.com/u8sand/Baka-MPlayer/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+BDEPEND="
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ media-video/mpv[libmpv]
+ x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/Baka-MPlayer-${PV}"
+
+PATCHES=( "${FILESDIR}/${P}-gcc5.patch" "${FILESDIR}/${P}-mpv23.patch" )
+
+src_prepare() {
+ default
+ # no need to install license
+ sed -e '/^INSTALLS/s:license::' -i src/Baka-MPlayer.pro || die
+ # put manual in our docdir
+ sed -e '/^manual.path/s:'${PN}':'${PF}':' -i src/Baka-MPlayer.pro || die
+}
+
+src_configure() {
+ eqmake5 \
+ INSTROOT="${D}" \
+ CONFIG+=install_translations \
+ lrelease="$(qt5_get_bindir)"/lrelease \
+ lupdate="$(qt5_get_bindir)"/lupdate \
+ src/Baka-MPlayer.pro
+}
diff --git a/media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch b/media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch
new file mode 100644
index 000000000000..ef5551cef81b
--- /dev/null
+++ b/media-video/baka-mplayer/files/baka-mplayer-2.0.4-mpv23.patch
@@ -0,0 +1,13 @@
+diff --git a/src/mpvhandler.cpp b/src/mpvhandler.cpp
+index 7ba06e4..b9ccbeb 100644
+--- a/src/mpvhandler.cpp
++++ b/src/mpvhandler.cpp
+@@ -675,7 +675,7 @@ void MpvHandler::LoadFileInfo()
+ fileInfo.media_title = mpv_get_property_string(mpv, "media-title");
+ // get length
+ double len;
+- mpv_get_property(mpv, "length", MPV_FORMAT_DOUBLE, &len);
++ mpv_get_property(mpv, "duration", MPV_FORMAT_DOUBLE, &len);
+ fileInfo.length = (int)len;
+
+ LoadTracks();