/[gentoo-x86]/media-sound/qmpdclient/qmpdclient-1.0.8.ebuild
Gentoo

Contents of /media-sound/qmpdclient/qmpdclient-1.0.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Jun 3 00:56:09 2009 UTC (11 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.13/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/qmpdclient/qmpdclient-1.0.8.ebuild,v 1.12 2008/07/26 21:28:46 carlo Exp $
4
5 EAPI=1
6 inherit eutils multilib qt4 toolchain-funcs
7
8 DESCRIPTION="An easy-to-use Qt4 client for MPD"
9 HOMEPAGE="http://havtknut.tihlde.org/qmpdclient"
10 SRC_URI="http://havtknut.tihlde.org/${PN}/files/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 hppa ppc x86"
15 IUSE=""
16
17 DEPEND="|| ( x11-libs/qt-gui:4 =x11-libs/qt-4.3* )"
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22
23 # Fix a crasher for amd64 and possibly others. Bug #183593.
24 epatch "${FILESDIR}"/${PV}-argc-ref-fix.patch
25
26 # Fix the install path
27 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" qmpdclient.pro \
28 || die "sed failed"
29 }
30
31 src_compile() {
32 # Use our C(XX)FLAGS
33 qmake qmpdclient.pro \
34 QTDIR=/usr/$(get_libdir) \
35 QMAKE=/usr/bin/qmake \
36 QMAKE_CC=$(tc-getCC) \
37 QMAKE_CXX=$(tc-getCXX) \
38 QMAKE_LINK=$(tc-getCXX) \
39 QMAKE_TARGET=release \
40 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
41 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
42 QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \
43 || die "qmake failed"
44
45 emake || die "make failed"
46 }
47
48 src_install() {
49 dodoc README AUTHORS THANKSTO Changelog
50 for res in 16 22 32 64 128 ; do
51 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
52 newins icons/qmpdclient${res}.png ${PN}.png
53 done
54
55 dobin qmpdclient || die "dobin failed"
56 make_desktop_entry qmpdclient "QMPDClient" ${PN} "Qt;AudioVideo;Audio"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20