mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
app-misc/rbutil: New package
Closes: https://bugs.gentoo.org/411619 Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
1
app-misc/rbutil/Manifest
Normal file
1
app-misc/rbutil/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST RockboxUtility-v1.4.0-src.tar.bz2 1181116 BLAKE2B 64d0cbedb3917a8f3f79e2b47b8eb230bb5fd6627ffd0647d5fbb42973d07675ee8a8f0eb9ae6e3481a8bd4cb4a183fb463bf97a1edbb2a74076e7a595f09ade SHA512 705723d6ee2231c3b79d0c67cabc7c6c00d3f1a76a970c1bd15e028a98b4a25de987b0921ea932ca0098defbec0bc9bde9d9ed3a79dd46f81da18bb5472be9fe
|
||||
88
app-misc/rbutil/files/quazip.patch
Normal file
88
app-misc/rbutil/files/quazip.patch
Normal file
@@ -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!
|
||||
8
app-misc/rbutil/metadata.xml
Normal file
8
app-misc/rbutil/metadata.xml
Normal file
@@ -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>
|
||||
62
app-misc/rbutil/rbutil-1.4.0.ebuild
Normal file
62
app-misc/rbutil/rbutil-1.4.0.ebuild
Normal file
@@ -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; }
|
||||
Reference in New Issue
Block a user