You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.4 KiB
72 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
4 years ago
|
inherit desktop qmake-utils xdg
|
||
6 years ago
|
|
||
|
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"
|
||
|
|
||
4 years ago
|
RDEPEND="
|
||
|
dev-libs/crypto++:=
|
||
3 years ago
|
dev-libs/quazip:0
|
||
4 years ago
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5
|
||
|
dev-qt/qtnetwork:5
|
||
|
dev-qt/qtwidgets:5
|
||
6 years ago
|
media-libs/speex
|
||
|
media-libs/speexdsp
|
||
4 years ago
|
virtual/libusb:1
|
||
|
"
|
||
6 years ago
|
|
||
4 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="dev-qt/linguist-tools:5"
|
||
6 years ago
|
|
||
3 years ago
|
S="${WORKDIR}/RockboxUtility-v${PV}"
|
||
|
QTDIR="${PN}/${PN}qt"
|
||
6 years ago
|
|
||
|
PATCHES=(
|
||
4 years ago
|
"${FILESDIR}"/${PN}-1.4.1-quazip.patch
|
||
3 years ago
|
"${FILESDIR}"/0001-imxtools-sbtools-fix-compilation-with-gcc-10.patch
|
||
6 years ago
|
)
|
||
|
|
||
|
src_prepare() {
|
||
4 years ago
|
xdg_src_prepare
|
||
3 years ago
|
rm -rv "${QTDIR}"/{quazip,zlib}/ || die
|
||
6 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
3 years ago
|
cd "${QTDIR}" || die
|
||
|
|
||
6 years ago
|
# Generate binary translations.
|
||
3 years ago
|
"$(qt5_get_bindir)"/lrelease ${PN}qt.pro || die
|
||
6 years ago
|
|
||
|
# noccache is required to call the correct compiler.
|
||
|
eqmake5 CONFIG+="noccache $(use debug && echo dbg)"
|
||
|
}
|
||
|
|
||
3 years ago
|
src_compile() {
|
||
|
emake -C "${QTDIR}"
|
||
|
}
|
||
|
|
||
6 years ago
|
src_install() {
|
||
3 years ago
|
cd "${QTDIR}" || die
|
||
|
|
||
6 years ago
|
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
|
||
|
}
|