/[gentoo-x86]/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
Gentoo

Contents of /media-sound/qtscrobbler/qtscrobbler-0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Mar 2 22:02:39 2013 UTC (7 years, 8 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Move Qt dependencies to the new category

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild,v 1.6 2012/05/24 03:02:06 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils gnome2-utils qt4-r2 toolchain-funcs
7
8 MY_PN=qtscrob
9 MY_P=${MY_PN}-${PV}
10
11 DESCRIPTION="Updates a last.fm profile using information from a supported portable music player"
12 HOMEPAGE="http://qtscrob.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE="cli +qt4"
19
20 RDEPEND=">=media-libs/libmtp-1.1.0
21 net-misc/curl
22 dev-qt/qtgui:4"
23 DEPEND="${RDEPEND}
24 virtual/pkgconfig"
25
26 S=${WORKDIR}/${MY_P}
27
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${P}-Makefile.patch \
31 "${FILESDIR}"/${P}-free.patch
32 }
33
34 src_configure() {
35 if use qt4; then
36 pushd src/qt >/dev/null
37 eqmake4 ${MY_PN}.pro
38 popd >/dev/null
39 fi
40 }
41
42 src_compile() {
43 if use cli; then
44 tc-export CXX
45 emake -C src/cli
46 fi
47
48 if use qt4; then
49 emake -C src/qt
50 fi
51 }
52
53 src_install() {
54 if use cli; then
55 newbin src/cli/scrobble-cli qtscrobbler-cli
56 fi
57
58 if use qt4; then
59 pushd src/qt >/dev/null
60 newbin qtscrob qtscrobbler
61 insinto /usr/share/icons/hicolor/128x128/apps
62 newins resources/icons/128.png qtscrobbler.png
63 make_desktop_entry qtscrobbler QtScrobbler
64 popd >/dev/null
65 fi
66
67 dodoc AUTHORS CHANGELOG README
68 }
69
70 pkg_preinst() { gnome2_icon_savelist; }
71 pkg_postinst() { gnome2_icon_cache_update; }
72 pkg_postrm() { gnome2_icon_cache_update; }

  ViewVC Help
Powered by ViewVC 1.1.20