-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit qt4
+EAPI="2"
-MY_P="libQGLViewer-"${PV}
+inherit qt4-r2
+
+MY_P="libQGLViewer-${PV}"
DESCRIPTION="Simple 3D viewer class for Qt OpenGL applications"
HOMEPAGE="http://www.libqglviewer.com"
IUSE="doc"
DEPEND="virtual/opengl
- >=x11-libs/qt-4.3"
+ dev-libs/qtgui:4"
+RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}/QGLViewer
+src_configure() {
+ true
+}
+
src_compile() {
eqmake4 QGLViewer.pro -o Makefile PREFIX=/usr
emake || die "emake QGLViewer failed"
if use doc ; then
dohtml -r ../doc/* || die "installing html files failed"
- insinto /usr/share/doc/${PF}
- doins -r ../examples || die "installing examples failed"
+ docinto examples
+ dodoc ../examples/* || die "installing examples failed"
fi
}