media-video/baka-mplayer: treeclean

Closes: https://bugs.gentoo.org/960817 (pkgremoved)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-08-26 22:32:47 +02:00
parent 1a74f9018f
commit e2b18ad21c
9 changed files with 0 additions and 324 deletions

View File

@@ -1 +0,0 @@
DIST baka-mplayer-2.0.4.tar.gz 988060 BLAKE2B 4d73e6626bab90b2ac818fdc1b0d8ab7758a924805ca8356c6fa94d25df9acbfd53d7e997b58e5c85b68e033f83ce89d6e3b0c3e30ecc23d7d75b4bf74ae0911 SHA512 7898d65e87540bcb528d429dc70daefc7d4c0711b2983326cf6fa3a14e566c2742334378befdb710b8cc59452f960bc17b290058ba9e6878e830de6dbafce55a

View File

@@ -1,71 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils xdg-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 ~arm64 ~ppc64 ~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"
"${FILESDIR}/${P}-playlist-regression.patch"
"${FILESDIR}/${P}-libmpv-api2.patch"
)
src_prepare() {
default
# don't install license, man.gz, install the latter manually
sed -e "/^INSTALLS/s:\sman\slicense::" \
-e '/^manual.path/s:'${PN}':'${PF}':' \
-i src/Baka-MPlayer.pro || die
gunzip DOCS/baka-mplayer.1.gz || die
}
src_configure() {
eqmake5 \
INSTROOT="${D}" \
CONFIG+=install_translations \
lrelease="$(qt5_get_bindir)"/lrelease \
lupdate="$(qt5_get_bindir)"/lupdate \
src/Baka-MPlayer.pro
}
src_install() {
default
doman DOCS/baka-mplayer.1
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}

View File

@@ -1,62 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils git-r3 xdg-utils
DESCRIPTION="Cross-platform libmpv-based multimedia player with uncluttered design"
HOMEPAGE="http://bakamplayer.u8sand.net/"
EGIT_REPO_URI="https://github.com/u8sand/Baka-MPlayer.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
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}"
src_prepare() {
default
# don't install license, man.gz, install the latter manually
sed -e "/^INSTALLS/s/\sman\slicense//" -i src/Baka-MPlayer.pro || die
gunzip DOCS/baka-mplayer.1.gz || die
}
src_configure() {
eqmake5 \
INSTROOT="${D}" \
CONFIG+=install_translations \
lrelease="$(qt5_get_bindir)"/lrelease \
lupdate="$(qt5_get_bindir)"/lupdate \
src/Baka-MPlayer.pro
}
src_install() {
default
doman DOCS/baka-mplayer.1
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}

View File

@@ -1,32 +0,0 @@
From 640cac8bab18cffca8258645c2b13b4defc01a8e Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
Date: Wed, 2 Dec 2015 02:38:44 +0000
Subject: [PATCH] Explicitly use <cmath> to unbreak build with libc++
src/ui/mainwindow.cpp:996:53: error: use of undeclared identifier 'ceil'
playlistRect.setLeft(playlistRect.right() - ceil(playlistRect.width()/7.0))
---
src/ui/mainwindow.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp
index 4f051ad..c3f5f92 100644
--- a/src/ui/mainwindow.cpp
+++ b/src/ui/mainwindow.cpp
@@ -1,6 +1,7 @@
#include "mainwindow.h"
#include "ui_mainwindow.h"
+#include <cmath>
#include <QLibraryInfo>
#include <QMimeData>
#include <QDesktopWidget>
@@ -993,7 +994,7 @@ void MainWindow::mouseMoveEvent(QMouseEvent *event)
ui->seekBar->setVisible(showPlayback || ui->outputTextEdit->isVisible());
QRect playlistRect = geometry();
- playlistRect.setLeft(playlistRect.right() - ceil(playlistRect.width()/7.0));
+ playlistRect.setLeft(playlistRect.right() - std::ceil(playlistRect.width()/7.0));
bool showPlaylist = playlistRect.contains(event->globalPos());
ShowPlaylist(showPlaylist);

View File

@@ -1,78 +0,0 @@
https://github.com/u8sand/Baka-MPlayer/commit/7864f248c3f
From: Fushan Wen <qydwhotmail@gmail.com>
Date: Mon, 21 Feb 2022 18:50:46 +0800
Subject: [PATCH] Port away from deprecated/removed APIs in mpv 2.0
Register observers as MPV_EVENT_IDLE is deprecated and
MPV_EVENT_PAUSE/MPV_EVENT_UNPAUSE have been removed.
--- a/src/mpvhandler.cpp
+++ b/src/mpvhandler.cpp
@@ -41,6 +41,8 @@ MpvHandler::MpvHandler(int64_t wid, QObject *parent):
mpv_observe_property(mpv, 0, "sub-visibility", MPV_FORMAT_FLAG);
mpv_observe_property(mpv, 0, "mute", MPV_FORMAT_FLAG);
mpv_observe_property(mpv, 0, "core-idle", MPV_FORMAT_FLAG);
+ mpv_observe_property(mpv, 0, "idle-active", MPV_FORMAT_FLAG);
+ mpv_observe_property(mpv, 0, "pause", MPV_FORMAT_FLAG);
mpv_observe_property(mpv, 0, "paused-for-cache", MPV_FORMAT_FLAG);
// setup callback event handling
@@ -191,6 +193,31 @@ bool MpvHandler::event(QEvent *event)
ShowText(QString(), 0);
}
}
+ else if(QString(prop->name) == "idle-active")
+ {
+ if(prop->format == MPV_FORMAT_FLAG)
+ {
+ if((bool)*(unsigned*)prop->data)
+ {
+ fileInfo.length = 0;
+ setTime(0);
+ setPlayState(Mpv::Idle);
+ }
+ }
+ }
+ else if(QString(prop->name) == "pause")
+ {
+ if(prop->format == MPV_FORMAT_FLAG)
+ {
+ if((bool)*(unsigned*)prop->data)
+ {
+ setPlayState(Mpv::Paused);
+ ShowText(QString(), 0);
+ }
+ else
+ setPlayState(Mpv::Playing);
+ }
+ }
else if(QString(prop->name) == "paused-for-cache")
{
if(prop->format == MPV_FORMAT_FLAG)
@@ -203,12 +230,7 @@ bool MpvHandler::event(QEvent *event)
}
break;
}
- case MPV_EVENT_IDLE:
- fileInfo.length = 0;
- setTime(0);
- setPlayState(Mpv::Idle);
- break;
- // these two look like they're reversed but they aren't. the names are misleading.
+ // these two look like they're reversed but they aren't. the names are misleading.
case MPV_EVENT_START_FILE:
setPlayState(Mpv::Loaded);
break;
@@ -216,13 +238,6 @@ bool MpvHandler::event(QEvent *event)
setPlayState(Mpv::Started);
LoadFileInfo();
SetProperties();
- case MPV_EVENT_UNPAUSE:
- setPlayState(Mpv::Playing);
- break;
- case MPV_EVENT_PAUSE:
- setPlayState(Mpv::Paused);
- ShowText(QString(), 0);
- break;
case MPV_EVENT_END_FILE:
if(playState == Mpv::Loaded)
ShowText(tr("File couldn't be opened"));

View File

@@ -1,22 +0,0 @@
From 72325037151893f1ac17e0babae8826cd1382388 Mon Sep 17 00:00:00 2001
From: Daniel Clarke <u8sand@gmail.com>
Date: Mon, 2 Jan 2017 15:38:39 -0500
Subject: [PATCH] Replaced length with duration Fixes #239
---
src/mpvhandler.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mpvhandler.cpp b/src/mpvhandler.cpp
index 77b40408..5a900983 100644
--- a/src/mpvhandler.cpp
+++ b/src/mpvhandler.cpp
@@ -679,7 +680,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();

View File

@@ -1,33 +0,0 @@
From cb42b7654c07426f36f765d1be7faf5ed3a3e591 Mon Sep 17 00:00:00 2001
From: godly-devotion <azian.otaku@live.com>
Date: Tue, 1 Dec 2015 18:15:32 -0500
Subject: [PATCH] Fix playlist regression from 01ec5a7
---
src/ui/mainwindow.ui | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui
index 2430322c..a1b30779 100644
--- a/src/ui/mainwindow.ui
+++ b/src/ui/mainwindow.ui
@@ -121,6 +121,10 @@ QListView {
#playlistWidget::item:selected {
background: #383838;
}
+#playlistWidget:item:selected:active,
+#playlistWidget:item:selected:!active {
+ color: whitesmoke;
+}
/* QScrollBar */
@@ -1059,7 +1063,7 @@ QSlider::handle:horizontal {
<x>0</x>
<y>0</y>
<width>646</width>
- <height>24</height>
+ <height>23</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">

View File

@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>cstew764@gmail.com</email>
<name>Christopher Steward</name>
</maintainer>
<maintainer type="project">
<email>media-video@gentoo.org</email>
<name>Gentoo Video project</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">u8sand/Baka-MPlayer</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -200,12 +200,6 @@ dev-debug/edb-debugger
# Removal on 2025-08-27.
app-office/texmacs
# Andreas Sturmlechner <asturm@gentoo.org> (2025-07-28)
# Last release in 2015, last commit more than 2 years ago, still Qt5-based,
# EAPI-7, no signs of work towards Qt6 upstream. Bug #960817
# Removal on 2025-08-27.
media-video/baka-mplayer
# Hans de Graaff <graaff@gentoo.org> (2025-07-28)
# Obsolete slots of cucumber components. These slots are no longer used
# by dev-util/cucumber. Removal on 2025-08-28.