# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="1" inherit qt4 versionator eutils MAJOR_PV="$(get_version_component_range 1-3)" FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)" DESCRIPTION="The X2Go cdmanager" HOMEPAGE="http://x2go.berlios.de" SRC_URI="http://x2go.obviously-nice.de/deb/pool/${PN}/${PN}_${MAJOR_PV}.orig.tar.gz http://x2go.obviously-nice.de/deb/pool/${PN}/${PN}_${FULL_PV}.diff.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="x11-libs/qt:4" S=${WORKDIR}/${PN}-${MAJOR_PV}.orig src_unpack(){ unpack ${A} epatch "${DISTDIR}/${PN}_${FULL_PV}.diff.gz" } src_compile() { qmake -project -o ${PN}.pro || die "Error: building project file" eqmake4 || die "Error: qmake failed" emake || die "emake failed" } src_instal(){ make DESTDIR="${D}" install || die "Error: Install failed" }