# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/amarokfs/amarokfs-0.5.ebuild,v 1.8 2008/01/13 20:25:23 flameeyes Exp $ inherit qt3 kde-functions MY_PN="${PN/fs/FS}" MY_P="${MY_PN}-${PV}" DESCRIPTION="A full screen frontend for Amarok." HOMEPAGE="http://www.kde-apps.org/content/show.php?content=52641" SRC_URI="http://www.kde-apps.org/CONTENT/content-files/52641-${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86 ~x86-fbsd" IUSE="" RDEPEND="media-sound/amarok" DEPEND="" need-kde 3.5 S="${WORKDIR}/${MY_P}" src_unpack() { unpack ${A} sed -i -e 's:/usr/local/:/usr/:' "${S}"/*.{pro,cpp} || die "sed for /usr/local failed." sed -i -e "s:Icon=.*:Icon=${MY_PN}:" "${S}/${MY_PN}.desktop" || die "fix desktop file failed." sed -i -e 's:/usr/share/icons/:\0hicolor/128x128/apps/:' "${S}/${MY_PN}-xml.pro" || die "fix icon installation failed" sed -i -e '/qDebug/s:" + \(func\|query\):%s", \1.data():' "${S}"/*.cpp || die "fix for qDebug() calls failed." epatch "${FILESDIR}/${P}-FixMountPointIdQuery.patch" } src_compile() { eqmake3 amarokFS-xml.pro sed -i -e '/strip/d' Makefile || die "fix stripping failed." emake || die "emake failed" } src_install() { emake -j1 INSTALL_ROOT="${D}" install || die "emake install failed" }