From: | "Ben de Groot (yngwin)" <yngwin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-sound/qtscrobbler: ChangeLog qtscrobbler-0.8-r1.ebuild qtscrobbler-0.8.ebuild |
Date: | Sat, 31 May 2008 11:17:22 |
Message-Id: | E1K2P5I-00040d-Se@stork.gentoo.org |
1 | yngwin 08/05/31 11:17:16 |
2 | |
3 | Modified: ChangeLog |
4 | Added: qtscrobbler-0.8-r1.ebuild |
5 | Removed: qtscrobbler-0.8.ebuild |
6 | Log: |
7 | Make qtscrobbler commandline client optional with USE=cli |
8 | (Portage version: 2.1.5.2) |
9 | |
10 | Revision Changes Path |
11 | 1.2 media-sound/qtscrobbler/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qtscrobbler/ChangeLog?rev=1.2&view=markup |
14 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qtscrobbler/ChangeLog?rev=1.2&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qtscrobbler/ChangeLog?r1=1.1&r2=1.2 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/ChangeLog,v |
20 | retrieving revision 1.1 |
21 | retrieving revision 1.2 |
22 | diff -u -r1.1 -r1.2 |
23 | --- ChangeLog 31 May 2008 01:04:34 -0000 1.1 |
24 | +++ ChangeLog 31 May 2008 11:17:16 -0000 1.2 |
25 | @@ -1,10 +1,16 @@ |
26 | # ChangeLog for media-sound/qtscrobbler |
27 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/ChangeLog,v 1.1 2008/05/31 01:04:34 yngwin Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/ChangeLog,v 1.2 2008/05/31 11:17:16 yngwin Exp $ |
30 | + |
31 | +*qtscrobbler-0.8-r1 (31 May 2008) |
32 | + |
33 | + 31 May 2008; Ben de Groot <yngwin@g.o> -qtscrobbler-0.8.ebuild, |
34 | + +qtscrobbler-0.8-r1.ebuild: |
35 | + Make commandline client optional with USE=cli |
36 | |
37 | *qtscrobbler-0.8 (31 May 2008) |
38 | |
39 | 31 May 2008; Ben de Groot <yngwin@g.o> +qtscrobbler-0.8.ebuild: |
40 | Initial import. Ebuild based on the one in ephemeral overlay. Fixes bug |
41 | - 140738. |
42 | + 182135. |
43 | |
44 | |
45 | |
46 | |
47 | 1.1 media-sound/qtscrobbler/qtscrobbler-0.8-r1.ebuild |
48 | |
49 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.8-r1.ebuild?rev=1.1&view=markup |
50 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.8-r1.ebuild?rev=1.1&content-type=text/plain |
51 | |
52 | Index: qtscrobbler-0.8-r1.ebuild |
53 | =================================================================== |
54 | # Copyright 1999-2008 Gentoo Foundation |
55 | # Distributed under the terms of the GNU General Public License v2 |
56 | # $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.8-r1.ebuild,v 1.1 2008/05/31 11:17:16 yngwin Exp $ |
57 | |
58 | EAPI=1 |
59 | inherit eutils qt4 |
60 | |
61 | MY_PN="qtscrob" |
62 | MY_P="${MY_PN}-${PV}" |
63 | |
64 | DESCRIPTION="Updates a last.fm profile using information from a supported portable music player" |
65 | HOMEPAGE="http://qtscrob.sourceforge.net/" |
66 | SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2" |
67 | |
68 | LICENSE="GPL-2" |
69 | SLOT="0" |
70 | KEYWORDS="~x86" |
71 | IUSE="cli +qt4" |
72 | |
73 | DEPEND="net-misc/curl |
74 | qt4? ( || ( x11-libs/qt-gui:4 >=x11-libs/qt-4.3:4 ) )" |
75 | RDEPEND="${DEPEND}" |
76 | |
77 | S="${WORKDIR}/${MY_P}" |
78 | |
79 | src_unpack() { |
80 | unpack ${A} |
81 | # Makefile for cli prog does not read CFLAGS env var. |
82 | # This sed fixes this. |
83 | cd "${S}/src/cli" |
84 | sed -i -e "s:CFLAGS =.*:CFLAGS = \$(INCLUDE) `curl-config --cflags` ${CFLAGS}:" Makefile |
85 | } |
86 | |
87 | src_compile() { |
88 | if use cli; then |
89 | cd "${S}/src/cli" |
90 | emake || die "emake cli failed" |
91 | fi |
92 | if use qt4; then |
93 | cd "${S}/src/qt" |
94 | qmake "${MY_PN}.pro" || die "qmake qt4 gui failed" |
95 | emake || die "emake qt4 gui failed" |
96 | fi |
97 | } |
98 | |
99 | src_install() { |
100 | if use cli; then |
101 | cd "${S}/src/cli" |
102 | newbin scrobble-cli qtscrobbler-cli |
103 | fi |
104 | if use qt4; then |
105 | cd "${S}/src/qt" |
106 | newbin qtscrob qtscrobbler |
107 | newicon resources/icons/128.png qtscrobbler.png |
108 | make_desktop_entry qtscrobbler QtScrobbler |
109 | fi |
110 | cd "${S}" |
111 | dodoc AUTHORS CHANGELOG README |
112 | } |
113 | |
114 | |
115 | |
116 | -- |
117 | gentoo-commits@l.g.o mailing list |