minitube: clean deps

Add patches via OpenBSD to fix a problem with minitube GUI not having
icons when executed outside of a desktop environment.
This commit is contained in:
Alessio Sergi 2014-11-04 16:24:11 +01:00
parent 7010541cd2
commit 447e0afcb9
3 changed files with 44 additions and 4 deletions

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-src_iconutils_cpp,v 1.1 2014/10/29 08:18:23 dcoppa Exp $
Use the Adwaita icon theme unconditionally: fixes a problem with
minitube GUI not having icons when executed outside of a Desktop
Environment
Do not use symbolic icons
--- src/iconutils.cpp.orig Thu Oct 23 12:47:15 2014
+++ src/iconutils.cpp Sat Oct 25 19:55:31 2014
@@ -21,12 +21,8 @@ $END_LICENSE */
#include "iconutils.h"
QIcon IconUtils::fromTheme(const QString &name) {
- const QLatin1String symbolic("-symbolic");
- if (name.endsWith(symbolic)) return QIcon::fromTheme(name);
- QIcon icon;
- icon = QIcon::fromTheme(name + symbolic);
- if (icon.isNull()) return QIcon::fromTheme(name);
- return icon;
+ QIcon::setThemeName("Adwaita");
+ return QIcon::fromTheme(name);
}
QIcon IconUtils::fromResources(const QString &name) {

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_mainwindow_cpp,v 1.3 2014/10/30 13:59:44 dcoppa Exp $
Do not use symbolic icons
--- src/mainwindow.cpp.orig Thu Dec 19 00:37:27 2013
+++ src/mainwindow.cpp Fri Feb 7 16:50:08 2014
@@ -565,7 +565,7 @@ void MainWindow::createActions() {
action = new QAction(tr("More..."), this);
actions->insert("more-region", action);
- action = new QAction(IconUtils::icon("view-list"), tr("&Related Videos"), this);
+ action = new QAction(IconUtils::icon("format-justify-fill"), tr("&Related Videos"), this);
action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_R));
action->setStatusTip(tr("Watch videos related to the current one"));
action->setEnabled(false);

View File

@ -1,13 +1,13 @@
# Template file for 'minitube'
pkgname=minitube
version=2.3
revision=1
revision=2
wrksrc=$pkgname
makedepends="qt-devel phonon-devel desktop-file-utils hicolor-icon-theme phonon-backend-gstreamer"
makedepends="qt-devel phonon-devel"
depends="virtual?phonon-backend desktop-file-utils hicolor-icon-theme"
short_desc="A native YouTube client in QT"
short_desc="A native YouTube client in Qt4"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
license="GPL-3"
homepage="http://flavio.tordini.org/minitube"
distfiles="http://flavio.tordini.org/files/$pkgname/${pkgname}-${version}.tar.gz"
checksum=7fb24e295dc3e2f4ce41add1ef71c7b1fef57383578f46af8e271710c86c2247