diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /app-misc/rbutil/rbutil-1.4.1.ebuild | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'app-misc/rbutil/rbutil-1.4.1.ebuild')
-rw-r--r-- | app-misc/rbutil/rbutil-1.4.1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/app-misc/rbutil/rbutil-1.4.1.ebuild b/app-misc/rbutil/rbutil-1.4.1.ebuild new file mode 100644 index 000000000000..88610ad3d9bc --- /dev/null +++ b/app-misc/rbutil/rbutil-1.4.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop qmake-utils xdg + +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/crypto++:= + 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}" +BDEPEND="dev-qt/linguist-tools:5" + +S="${WORKDIR}/RockboxUtility-v${PV}/${PN}/${PN}qt" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.1-quazip.patch +) + +src_prepare() { + xdg_src_prepare + 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 +} |