summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2018-01-13 10:32:32 +0100
committerAlexis Ballier <aballier@gentoo.org>2018-01-13 13:16:22 +0100
commitec27e5cea163c80799955953dc031682b666e698 (patch)
treef2d6673445323fe68652665b74af14f87c4b9eaa
parentdev-libs/libelf: mark -*-fbsd (diff)
downloadgentoo-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
-rw-r--r--x11-libs/libQGLViewer/Manifest1
-rw-r--r--x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/x11-libs/libQGLViewer/Manifest b/x11-libs/libQGLViewer/Manifest
index 7df901ec267..274244e6eff 100644
--- a/x11-libs/libQGLViewer/Manifest
+++ b/x11-libs/libQGLViewer/Manifest
@@ -1 +1,2 @@
DIST libQGLViewer-2.6.4.tar.gz 2996712 BLAKE2B c57df2a538d74a3cb9f919e572f02ce0cb8093e95e117202b2b12503cd3423552244edf3ee79fda17581fa3c7dfa7192d2303117eef097c97d5f983d3e33d6c1 SHA512 fae9caa7fe049b13ba970c971a9454700631cac18d46b6154ae4e155fabe64dc3b8eacf968dce69292743ade6c8c2772e236505ee8099bbf9ed291382dbd65f0
+DIST libQGLViewer-2.7.1.tar.gz 3078737 BLAKE2B 0374c60374af0f4594ee79fafd53440654e9bb5114cef38e50deba86584cc55eef03d2177b5d54829f5b111d4d029384fff19f8a5bebf750cac1ab8cfe6afaa5 SHA512 1f597d737614f07682bde0d886c9c2eee57f478607a4caeac40922f66a6310ff30ea32e8ab44de0b23e0d1e5db2e6deea8c4fe3bc2cddc78ed5b971f638b09bd
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 00000000000..19eae03cf76
--- /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
+}