diff options
author | Oliver Borm (oli) <oli.borm@web.de> | 2008-11-13 13:37:54 +0000 |
---|---|---|
committer | Oliver Borm (oli) <oli.borm@web.de> | 2008-11-13 13:37:54 +0000 |
commit | 51b384474e7c85035479576111f8c0305ca0ea4d (patch) | |
tree | 28a2105a26886d279978360d479fd0a119433598 /x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild | |
parent | Automatic update to use.local.desc (diff) | |
download | sunrise-51b384474e7c85035479576111f8c0305ca0ea4d.tar.gz sunrise-51b384474e7c85035479576111f8c0305ca0ea4d.tar.bz2 sunrise-51b384474e7c85035479576111f8c0305ca0ea4d.zip |
x11-libs/libqglviewer: New ebuild for bug 53167, thanks to scarabeus
svn path=/sunrise/; revision=7343
Diffstat (limited to 'x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild')
-rw-r--r-- | x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild b/x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild new file mode 100644 index 000000000..210c79492 --- /dev/null +++ b/x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit kde-functions qt4 + +MY_P="libQGLViewer-"${PV} + +DESCRIPTION="Simple 3D viewer class for Qt OpenGL applications" +HOMEPAGE="http://www.libqglviewer.com" +SRC_URI="http://www.libqglviewer.com/src/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="virtual/opengl + >=x11-libs/qt-4.3" + +S="${WORKDIR}"/${MY_P} + +src_compile() { + set-qtdir 4 + cd QGLViewer + eqmake4 QGLViewer.pro -o Makefile \ + PREFIX=/usr || die "qmake QGLViewer failed" + emake || die "emake QGLViewer failed" + + cd ../designerPlugin + eqmake4 designerPlugin.pro -o Makefile \ + INCLUDE_DIR=.. \ + LIB_DIR=../QGLViewer || die "qmake designerPlugin failed" + emake || die "emake designerPlugin failed" +} + +src_install() { + cd QGLViewer + INSTALL_ROOT="${D}" emake install_target install_include || die "install QGLViewer failed" + + cd ../designerPlugin + INSTALL_ROOT="${D}" emake install_target || die "install QGLViewer failed" + + dodoc ../README + + if use doc ; then + dohtml -r ../doc/* + insinto /usr/share/doc/${PF} + doins -r ../examples + fi +} |