summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2014-10-28 17:30:52 +0000
committerAlexis Ballier <aballier@gentoo.org>2014-10-28 17:30:52 +0000
commit71cb1beba67cca0a9be9876a13232d8e9a6ad1bf (patch)
treebd843cdd2e8d4e88c93c49c465085f6c7cf22ceb /x11-libs/libQGLViewer
parentrepoman fix, convert dependency on baselayout to a blocker against older vers... (diff)
downloadgentoo-2-71cb1beba67cca0a9be9876a13232d8e9a6ad1bf.tar.gz
gentoo-2-71cb1beba67cca0a9be9876a13232d8e9a6ad1bf.tar.bz2
gentoo-2-71cb1beba67cca0a9be9876a13232d8e9a6ad1bf.zip
Initial import, adapted from old sunrise ebuild by myself
Signed-off-by: aballier@gentoo.org (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'x11-libs/libQGLViewer')
-rw-r--r--x11-libs/libQGLViewer/ChangeLog10
-rw-r--r--x11-libs/libQGLViewer/libQGLViewer-2.5.3.ebuild50
-rw-r--r--x11-libs/libQGLViewer/metadata.xml11
3 files changed, 71 insertions, 0 deletions
diff --git a/x11-libs/libQGLViewer/ChangeLog b/x11-libs/libQGLViewer/ChangeLog
new file mode 100644
index 000000000000..0de98f3f0f88
--- /dev/null
+++ b/x11-libs/libQGLViewer/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for x11-libs/libQGLViewer
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libQGLViewer/ChangeLog,v 1.1 2014/10/28 17:30:52 aballier Exp $
+
+*libQGLViewer-2.5.3 (28 Oct 2014)
+
+ 28 Oct 2014; Alexis Ballier <aballier@gentoo.org> +libQGLViewer-2.5.3.ebuild,
+ +metadata.xml:
+ Initial import, adapted from old sunrise ebuild by myself
+
diff --git a/x11-libs/libQGLViewer/libQGLViewer-2.5.3.ebuild b/x11-libs/libQGLViewer/libQGLViewer-2.5.3.ebuild
new file mode 100644
index 000000000000..9a4bc4390f21
--- /dev/null
+++ b/x11-libs/libQGLViewer/libQGLViewer-2.5.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libQGLViewer/libQGLViewer-2.5.3.ebuild,v 1.1 2014/10/28 17:30:52 aballier Exp $
+
+EAPI="5"
+
+inherit qt4-r2 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"
+KEYWORDS="~amd64"
+IUSE="designer examples"
+
+DEPEND="virtual/opengl
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}
+ designer? ( dev-qt/designer:4 )"
+
+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
+ eqmake4 ${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"
+ eqmake4 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
+}
diff --git a/x11-libs/libQGLViewer/metadata.xml b/x11-libs/libQGLViewer/metadata.xml
new file mode 100644
index 000000000000..fca4f9d4a11e
--- /dev/null
+++ b/x11-libs/libQGLViewer/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>aballier@gentoo.org</email>
+<name>Alexis Ballier</name>
+</maintainer>
+ <use>
+ <flag name="designer">Installs <pkg>dev-qt/designer</pkg> plugin.</flag>
+ </use>
+</pkgmetadata>