blob: 350de0bc1aa8e664db5f056e34ce495f7dcf94d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
LANGS="cs de"
inherit qt4-r2 fdo-mime
DESCRIPTION="Qt4 MPD client with experimental UI"
HOMEPAGE="http://qt-apps.org/content/show.php?content=137091"
SRC_URI="http://qt-apps.org/CONTENT/content-files/137091-${P}.txz -> ${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/libmpdclient
>=dev-qt/qtcore-4.6:4
>=dev-qt/qtgui-4.6:4"
RDEPEND="${DEPEND}"
src_prepare() {
local INSTALLED_LANGS= LANG=
# Install on live fs should be done by portage itself
sed -ie 's/postinstall/#postinstall/g' be.mpc.pro
# Install only chosen locales
for LANG in ${LINGUAS}; do
if has ${LANG} ${LANGS}; then
INSTALLED_LANGS="${INSTALLED_LANGS} be.mpc_${LANG}.qm"
fi
done
sed -ie "s/i18n.files += be.mpc_cs.qm be.mpc_de.qm/i18n.files += ${INSTALLED_LANGS}/" be.mpc.pro
# Fix invalid desktop file
sed -ie 's/Categories=Application;Qt;Audio;/Categories=Qt;AudioVideo;Audio;/' be.mpc.desktop
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|