blob: 37a39c433f9abd6f2b851636d0272a28ef022589 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild,v 1.4 2010/11/04 10:48:10 phajdan.jr Exp $
EAPI=2
inherit eutils qt4-r2 toolchain-funcs
MY_PN=qtscrob
MY_P=${MY_PN}-${PV}
DESCRIPTION="Updates a last.fm profile using information from a supported portable music player"
HOMEPAGE="http://qtscrob.sourceforge.net/"
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="cli +qt4"
RDEPEND="media-libs/libmtp
net-misc/curl
x11-libs/qt-gui:4"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-Makefile.patch
}
src_configure() {
if use qt4; then
pushd src/qt >/dev/null
eqmake4 ${MY_PN}.pro
popd >/dev/null
fi
}
src_compile() {
if use cli; then
tc-export CXX
emake -C src/cli || die
fi
if use qt4; then
emake -C src/qt || die
fi
}
src_install() {
if use cli; then
newbin src/cli/scrobble-cli qtscrobbler-cli || die
fi
if use qt4; then
pushd src/qt >/dev/null
newbin qtscrob qtscrobbler
newicon resources/icons/128.png qtscrobbler.png
make_desktop_entry qtscrobbler QtScrobbler
popd >/dev/null
fi
dodoc AUTHORS CHANGELOG README
}
|