diff options
author | Alexis Ballier <aballier@gentoo.org> | 2018-01-13 10:32:32 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2018-01-13 13:16:22 +0100 |
commit | ec27e5cea163c80799955953dc031682b666e698 (patch) | |
tree | f2d6673445323fe68652665b74af14f87c4b9eaa /x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild | |
parent | dev-libs/libelf: mark -*-fbsd (diff) | |
download | gentoo-ec27e5cea163c80799955953dc031682b666e698.tar.gz gentoo-ec27e5cea163c80799955953dc031682b666e698.tar.bz2 gentoo-ec27e5cea163c80799955953dc031682b666e698.zip |
x11-libs/libQGLViewer: bump to 2.7.1.
Closes: https://bugs.gentoo.org/644430
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild')
-rw-r--r-- | x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild b/x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild new file mode 100644 index 000000000000..19eae03cf769 --- /dev/null +++ b/x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit qmake-utils multilib flag-o-matic + +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="virtual/opengl + virtual/glu + dev-qt/qtopengl:5 + dev-qt/qtcore:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + dev-qt/qtgui:5" +RDEPEND="${DEPEND} + designer? ( dev-qt/designer:5 )" + +src_configure() { + append-ldflags "-L${S}/QGLViewer" + 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 "${S}/designerPlugin" + eqmake5 designerPlugin.pro + fi +} + +src_install() { + emake INSTALL_ROOT="${D}" install + dodoc README + + if use designer ; then + cd "${S}/designerPlugin" + 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 +} |