summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-gfx/qvv/Manifest1
-rw-r--r--media-gfx/qvv/files/qvv-4.04-toLatin1.patch22
-rw-r--r--media-gfx/qvv/qvv-4.04.ebuild37
3 files changed, 60 insertions, 0 deletions
diff --git a/media-gfx/qvv/Manifest b/media-gfx/qvv/Manifest
index 61c4029863e4..28493ef9aa10 100644
--- a/media-gfx/qvv/Manifest
+++ b/media-gfx/qvv/Manifest
@@ -1 +1,2 @@
DIST qvv-4.02.tar.gz 1837213 BLAKE2B 7cb780fbdfe8135e3c96057f8505248eb385daaaf71690b813b7e1822732e3987a4d3cd98f2229f7957803e387046a14fd21cafd1a67b1002bed084a6709c925 SHA512 2cd82b4c1a1664e2ab2df4b9de21c6504c44baa634e370a0365257f0b5c906d3588af371e754b2a26d86527568aded40112095f55141e159f54ce8d8b663bc6c
+DIST qvv-4.04.tar.gz 4580207 BLAKE2B 0f73f455ca5f7446312043c53322668a7824fdbcadb0eff1e98698f14bfbaac7c57a1ac1e7e42164ed1071e319f90d1aa5d57cf865c31d3242bdfd954875c12a SHA512 102c51f7eb146d4ddcbfee16fcf93bc08f874268c2838c1358d314daf466639c5506adc2ba99231cb5f2f7074a980545c1640241396964012e9991b946d7839d
diff --git a/media-gfx/qvv/files/qvv-4.04-toLatin1.patch b/media-gfx/qvv/files/qvv-4.04-toLatin1.patch
new file mode 100644
index 000000000000..3db2b32ad4bc
--- /dev/null
+++ b/media-gfx/qvv/files/qvv-4.04-toLatin1.patch
@@ -0,0 +1,22 @@
+From 61b243ccc907f34115a00572e2d8f2bfa2682e6c Mon Sep 17 00:00:00 2001
+From: Vladi Belperchinov-Shabanski <cade@datamax.bg>
+Date: Thu, 26 Feb 2015 16:08:51 +0200
+Subject: [PATCH] toascii-tolatin1-fix
+
+---
+ src/qvv_main_win.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/qvv_main_win.cpp b/src/qvv_main_win.cpp
+index 3516f87..0ade17c 100644
+--- a/src/qvv_main_win.cpp
++++ b/src/qvv_main_win.cpp
+@@ -783,7 +783,7 @@ int QvvMainWindow::deleteItems( int current_only )
+
+ //qDebug() << "DELETE YES: " << file_name << " RESBUTTON: " << QVariant( confirm->activated_button ).toString();
+
+- QString path_hash = QVariant( QCryptographicHash::hash( cdir.absolutePath().toAscii(), QCryptographicHash::Sha1 ).toHex() ).toString();
++ QString path_hash = QVariant( QCryptographicHash::hash( cdir.absolutePath().toLatin1(), QCryptographicHash::Sha1 ).toHex() ).toString();
+ QString trash_file_name = trash_can + "/" + path_hash + "." + item->text( 1 );
+
+ int moved_ok = 0;
diff --git a/media-gfx/qvv/qvv-4.04.ebuild b/media-gfx/qvv/qvv-4.04.ebuild
new file mode 100644
index 000000000000..bd8c0105b3bc
--- /dev/null
+++ b/media-gfx/qvv/qvv-4.04.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop qmake-utils
+
+DESCRIPTION="QVV Image Viewer and Browser"
+HOMEPAGE="http://cade.datamax.bg/qvv/"
+SRC_URI="https://github.com/cade-vs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( ANFSCD GPG_README HISTORY README todo.txt )
+
+PATCHES=( "${FILESDIR}"/${P}-toLatin1.patch )
+
+src_configure() {
+ eqmake5 src/${PN}.qt5.pro
+}
+
+src_install() {
+ einstalldocs
+ dobin qvv || die "dobin failed"
+ doicon images/qvv_icon_128x128.png || die "doicon failed"
+ make_desktop_entry qvv QVV qvv_icon_128x128
+}