# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils kde-functions DESCRIPTION="A QT front-end for SopCast P2P Internet TV" HOMEPAGE="http://qsopcast.googlecode.com/" SRC_URI="http://qsopcast.googlecode.com/files/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">=media-tv/sopcast-bin-1.0.2 net-misc/curl media-libs/alsa-lib" RDEPEND="${DEPEND}" # append suitable QT libs to dependencies via automagic kde-functions need-qt 3 S=${WORKDIR}/${P}/src/ src_unpack() { unpack ${A} || die "Failed to unpack ${A}" # patch some QT and other file locations to more Gentooish ones sed -e s+/usr/local+/usr+ -i ${S}/${PN}.pro } src_compile() { qmake || die "qmake failed" emake || die "emake failed" } src_install() { INSTALL_ROOT=${D} emake install || die "emake install failed" }