summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2018-03-02 21:11:49 +0000
committerJames Le Cuirot <chewi@gentoo.org>2018-03-02 21:12:26 +0000
commit9391f29090a6db15cc5ce41a3cf5003af9d8d5df (patch)
tree6503a64376249a9a74744730718d18fb631216bf /app-misc/rbutil
parentdev-lang/nim: bump up to 0.18.0 (diff)
downloadgentoo-9391f29090a6db15cc5ce41a3cf5003af9d8d5df.tar.gz
gentoo-9391f29090a6db15cc5ce41a3cf5003af9d8d5df.tar.bz2
gentoo-9391f29090a6db15cc5ce41a3cf5003af9d8d5df.zip
app-misc/rbutil: New package
Closes: https://bugs.gentoo.org/411619 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-misc/rbutil')
-rw-r--r--app-misc/rbutil/Manifest1
-rw-r--r--app-misc/rbutil/files/quazip.patch88
-rw-r--r--app-misc/rbutil/metadata.xml8
-rw-r--r--app-misc/rbutil/rbutil-1.4.0.ebuild62
4 files changed, 159 insertions, 0 deletions
diff --git a/app-misc/rbutil/Manifest b/app-misc/rbutil/Manifest
new file mode 100644
index 000000000000..4103d5345824
--- /dev/null
+++ b/app-misc/rbutil/Manifest
@@ -0,0 +1 @@
+DIST RockboxUtility-v1.4.0-src.tar.bz2 1181116 BLAKE2B 64d0cbedb3917a8f3f79e2b47b8eb230bb5fd6627ffd0647d5fbb42973d07675ee8a8f0eb9ae6e3481a8bd4cb4a183fb463bf97a1edbb2a74076e7a595f09ade SHA512 705723d6ee2231c3b79d0c67cabc7c6c00d3f1a76a970c1bd15e028a98b4a25de987b0921ea932ca0098defbec0bc9bde9d9ed3a79dd46f81da18bb5472be9fe
diff --git a/app-misc/rbutil/files/quazip.patch b/app-misc/rbutil/files/quazip.patch
new file mode 100644
index 000000000000..9d803712209e
--- /dev/null
+++ b/app-misc/rbutil/files/quazip.patch
@@ -0,0 +1,88 @@
+This patch is a simplified version of a patch I have sent upstream.
+http://gerrit.rockbox.org/1825
+
+-- Chewi
+
+diff -Naur a/base/ziputil.cpp b/base/ziputil.cpp
+--- a/base/ziputil.cpp 2014-01-05 22:44:53.000000000 +0000
++++ b/base/ziputil.cpp 2018-02-25 10:55:36.994002648 +0000
+@@ -22,9 +22,9 @@
+ #include "progressloggerinterface.h"
+ #include "Logger.h"
+
+-#include "quazip/quazip.h"
+-#include "quazip/quazipfile.h"
+-#include "quazip/quazipfileinfo.h"
++#include <quazip5/quazip.h>
++#include <quazip5/quazipfile.h>
++#include <quazip5/quazipfileinfo.h>
+
+
+ ZipUtil::ZipUtil(QObject* parent) : ArchiveUtil(parent)
+diff -Naur a/base/ziputil.h b/base/ziputil.h
+--- a/base/ziputil.h 2014-01-05 22:44:54.000000000 +0000
++++ b/base/ziputil.h 2018-02-25 10:55:28.513838004 +0000
+@@ -21,9 +21,9 @@
+
+ #include <QtCore>
+ #include "archiveutil.h"
+-#include "quazip/quazip.h"
+-#include "quazip/quazipfile.h"
+-#include "quazip/quazipfileinfo.h"
++#include <quazip5/quazip.h>
++#include <quazip5/quazipfile.h>
++#include <quazip5/quazipfileinfo.h>
+
+ class ZipUtil : public ArchiveUtil
+ {
+diff -Naur a/rbutilqt.pri b/rbutilqt.pri
+--- a/rbutilqt.pri 2014-01-05 22:44:57.000000000 +0000
++++ b/rbutilqt.pri 2018-02-25 10:54:39.793852035 +0000
+@@ -69,12 +69,6 @@
+ base/rockboxinfo.cpp \
+ ../../tools/mkboot.c \
+ ../../tools/iriver.c \
+- quazip/quazip.cpp \
+- quazip/quazipfile.cpp \
+- quazip/quazipnewinfo.cpp \
+- quazip/unzip.c \
+- quazip/zip.c \
+- quazip/ioapi.c \
+ base/ziputil.cpp \
+ gui/comboboxviewdelegate.cpp \
+ gui/selectiveinstallwidget.cpp \
+@@ -156,14 +150,6 @@
+ base/rockboxinfo.h \
+ ../../tools/mkboot.h \
+ ../../tools/iriver.h \
+- quazip/crypt.h \
+- quazip/ioapi.h \
+- quazip/quazipfile.h \
+- quazip/quazipfileinfo.h \
+- quazip/quazip.h \
+- quazip/quazipnewinfo.h \
+- quazip/unzip.h \
+- quazip/zip.h \
+ base/ziputil.h \
+ lame/lame.h \
+ gui/comboboxviewdelegate.h \
+diff -Naur a/rbutilqt.pro b/rbutilqt.pro
+--- a/rbutilqt.pro 2014-01-05 22:45:00.000000000 +0000
++++ b/rbutilqt.pro 2018-02-25 10:55:04.577357613 +0000
+@@ -114,7 +114,7 @@
+
+ DEPENDPATH = $$INCLUDEPATH
+
+-LIBS += -L$$OUT_PWD -L$$MYLIBBUILDDIR
++LIBS += -L$$OUT_PWD -L$$MYLIBBUILDDIR -lquazip5
+ # append all RBLIBS to LIBS
+ for(rblib, RBLIBS) {
+ LIBS += -l$$rblib
+@@ -122,7 +122,6 @@
+
+ # on win32 libz is linked implicitly.
+ !win32 {
+- LIBS += -lz
+ }
+
+ # Add a (possibly found) libspeex now, don't do this before -lrbspeex!
diff --git a/app-misc/rbutil/metadata.xml b/app-misc/rbutil/metadata.xml
new file mode 100644
index 000000000000..54be7ff7e5d6
--- /dev/null
+++ b/app-misc/rbutil/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chewi@gentoo.org</email>
+ <name>James Le Cuirot</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/rbutil/rbutil-1.4.0.ebuild b/app-misc/rbutil/rbutil-1.4.0.ebuild
new file mode 100644
index 000000000000..0982dffdb4b5
--- /dev/null
+++ b/app-misc/rbutil/rbutil-1.4.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop gnome2-utils qmake-utils
+
+DESCRIPTION="Rockbox open source firmware manager for music players"
+HOMEPAGE="https://www.rockbox.org/wiki/RockboxUtility"
+SRC_URI="https://download.rockbox.org/${PN}/source/RockboxUtility-v${PV}-src.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+
+RDEPEND="dev-libs/quazip
+ dev-qt/qtcore:5=
+ dev-qt/qtgui:5=
+ dev-qt/qtnetwork:5=
+ dev-qt/qtwidgets:5=
+ media-libs/speex
+ media-libs/speexdsp
+ virtual/libusb:1"
+
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5"
+
+S="${WORKDIR}/RockboxUtility-v${PV}/${PN}/${PN}qt"
+
+PATCHES=(
+ "${FILESDIR}"/quazip.patch
+)
+
+src_prepare() {
+ default
+ rm -rv quazip/ zlib/ || die
+}
+
+src_configure() {
+ # Generate binary translations.
+ lrelease ${PN}qt.pro || die
+
+ # noccache is required to call the correct compiler.
+ eqmake5 CONFIG+="noccache $(use debug && echo dbg)"
+}
+
+src_install() {
+ local icon size
+ for icon in icons/rockbox-*.png; do
+ size=${icon##*-}
+ size=${size%%.*}
+ newicon -s "${size}" "${icon}" rockbox.png
+ done
+
+ dobin RockboxUtility
+ make_desktop_entry RockboxUtility "Rockbox Utility" rockbox
+ dodoc changelog.txt
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }