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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Dec 17 18:40:35 2009 UTC (10 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix old style Qt4 depend
(Portage version: 2.2_rc59/cvs/Linux x86_64)

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-r1.ebuild,v 1.2 2008/08/08 20:59:32 beandog 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="~amd64 ~x86"
18 IUSE="cli +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 if use cli; then
36 cd "${S}/src/cli"
37 emake || die "emake cli failed"
38 fi
39 if use qt4; then
40 cd "${S}/src/qt"
41 qmake "${MY_PN}.pro" || die "qmake qt4 gui failed"
42 emake || die "emake qt4 gui failed"
43 fi
44 }
45
46 src_install() {
47 if use cli; then
48 cd "${S}/src/cli"
49 newbin scrobble-cli qtscrobbler-cli
50 fi
51 if use qt4; then
52 cd "${S}/src/qt"
53 newbin qtscrob qtscrobbler
54 newicon resources/icons/128.png qtscrobbler.png
55 make_desktop_entry qtscrobbler QtScrobbler
56 fi
57 cd "${S}"
58 dodoc AUTHORS CHANGELOG README
59 }

  ViewVC Help
Powered by ViewVC 1.1.20