--- qtnx-0.9.ebuild +++ qtnx-0.9.ebuild @@ -2,10 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/qtnx/qtnx-0.9.ebuild,v 1.5 2009/10/06 17:25:09 ayoy Exp $ -EAPI="1" -inherit qt4 +EAPI="4" +inherit qt4-r2 MY_P="freenx-client-${PV}" + DESCRIPTION="A Qt-based NX client using nxcl" HOMEPAGE="http://developer.berlios.de/projects/freenx/" SRC_URI="mirror://berlios/freenx/${MY_P}.tar.bz2" @@ -19,19 +20,13 @@ x11-libs/qt-core:4 x11-libs/qt-gui:4" RDEPEND="${DEPEND}" + S="${WORKDIR}/${MY_P}/${PN}" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { sed -i -e "s#id\.key#/usr/share/${PN}/id.key#" qtnxwindow.cpp || die "sed failed" } -src_compile() { - eqmake4 - emake || die "Make failed" -} - src_install() { dobin ${PN} dodoc README