diff options
author | 2020-06-10 22:10:18 +0200 | |
---|---|---|
committer | 2020-07-15 18:44:51 +0200 | |
commit | 01483fa92e603583e5e2474a13cb38c9084621ec (patch) | |
tree | ea7415b87c26124c448a444f870112321b7454a4 /x11-libs/libQGLViewer/libQGLViewer-2.7.2.ebuild | |
parent | media-plugins/audacious-plugins: 4.0.5 version bump (diff) | |
download | gentoo-01483fa92e603583e5e2474a13cb38c9084621ec.tar.gz gentoo-01483fa92e603583e5e2474a13cb38c9084621ec.tar.bz2 gentoo-01483fa92e603583e5e2474a13cb38c9084621ec.zip |
x11-libs/libQGLViewer: version bump 2.7.2
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/16173
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Diffstat (limited to 'x11-libs/libQGLViewer/libQGLViewer-2.7.2.ebuild')
-rw-r--r-- | x11-libs/libQGLViewer/libQGLViewer-2.7.2.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/x11-libs/libQGLViewer/libQGLViewer-2.7.2.ebuild b/x11-libs/libQGLViewer/libQGLViewer-2.7.2.ebuild new file mode 100644 index 000000000000..ac6ea56e5114 --- /dev/null +++ b/x11-libs/libQGLViewer/libQGLViewer-2.7.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic qmake-utils + +DESCRIPTION="C++ library based on Qt that eases the creation of OpenGL 3D viewers" +HOMEPAGE="http://www.libqglviewer.com" +SRC_URI="http://www.libqglviewer.com/src/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/qt5" +KEYWORDS="~amd64 ~arm" +IUSE="designer examples" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + virtual/glu + virtual/opengl +" +RDEPEND="${DEPEND} + designer? ( dev-qt/designer:5 ) +" + +src_configure() { + append-ldflags "-LQGLViewer" + sed -e 's#designerPlugin##' -i ${P}.pro || die + use examples || sed -e 's#examples examples/contribs##' -i ${P}.pro || die + eqmake5 ${P}.pro \ + PREFIX="${EPREFIX}/usr" \ + LIB_DIR="${EPREFIX}/usr/$(get_libdir)" \ + DOC_DIR="${EPREFIX}/usr/share/doc/${PF}/html" + if use designer ; then + cd "designerPlugin" || die + eqmake5 designerPlugin.pro + fi +} + +src_install() { + emake INSTALL_ROOT="${D}" install + dodoc README + + if use designer ; then + cd "${S}/designerPlugin" || die + emake INSTALL_ROOT="${D}" install + fi + + if use examples ; then + exeinto /usr/bin/${PN}-examples + doexe $(find "${S}/examples" -type f -executable ! -name '*.vcproj') + fi +} |