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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat May 31 11:17:16 2008 UTC (12 years, 5 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Make qtscrobbler commandline client optional with USE=cli
(Portage version: 2.1.5.2)

1 # Copyright 1999-2008 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.8.ebuild,v 1.2 2008/05/31 04:52:17 mr_bones_ Exp $
4
5 EAPI=1
6 inherit eutils qt4
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="~x86"
18 IUSE="qt4"
19
20 DEPEND="net-misc/curl
21 qt4? ( || ( x11-libs/qt-gui:4 >=x11-libs/qt-4.3:4 ) )"
22 RDEPEND="${DEPEND}"
23
24 S="${WORKDIR}/${MY_P}"
25
26 src_unpack() {
27 unpack ${A}
28 # Makefile for cli prog does not read CFLAGS env var.
29 # This sed fixes this.
30 cd "${S}/src/cli"
31 sed -i -e "s:CFLAGS =.*:CFLAGS = \$(INCLUDE) `curl-config --cflags` ${CFLAGS}:" Makefile
32 }
33
34 src_compile() {
35 cd "${S}/src/cli"
36 emake || die "emake qtscrob cli failed"
37 if use qt4; then
38 cd "${S}/src/qt"
39 qmake "${MY_PN}.pro" || die "qmake qtscrob gui failed"
40 emake || die "emake qtscrob gui failed"
41 fi
42 }
43
44 src_install() {
45 cd "${S}/src/cli"
46 newbin scrobble-cli qtscrobbler-cli
47 if use qt4; then
48 cd "${S}/src/qt"
49 newbin qtscrob qtscrobbler
50 newicon resources/icons/128.png qtscrobbler.png
51 make_desktop_entry qtscrobbler QtScrobbler
52 fi
53 cd "${S}"
54 dodoc AUTHORS CHANGELOG README
55 }

  ViewVC Help
Powered by ViewVC 1.1.20