# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils cmake-utils DESCRIPTION="QShaderEdit allows you to edit shaders and tweak shader parameters while previewing the results in real-time" HOMEPAGE="http://code.google.com/p/qshaderedit" SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="cg-toolkit debug examples" DEPEND=">=dev-util/cmake-2.4.0 >=x11-libs/qt-core-4.2.0 >=x11-libs/qt-gui-4.2.0 >=x11-libs/qt-opengl-4.2.0 >=media-libs/glew-1.3.0 cg-toolkit? ( >=media-gfx/nvidia-cg-toolkit-1.4.0 )" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}" src_configure() { if use debug ; then econf --debug else econf --release fi } src_install() { dodoc AUTHORS ChangeLog README make_desktop_entry ${EPREFIX}/usr/bin/${PN} QShaderEdit application-x-executable "Qt;KDE;Graphics" emake DESTDIR=${D} install if use examples ; then docinto examples dodoc -r ${S}/meshes ${S}/shaders ${S}/textures elog "Examples has been installed in /usr/share/doc/${P} directory" fi }