summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2015-08-05 15:32:21 +0000
committerJustin Bronder <jsbronder@gentoo.org>2015-08-05 15:32:21 +0000
commit8840f708e63b6735aed05439f93fcea898b281d3 (patch)
tree10b55c5560ec3f03540f443edde522074fc1d707 /media-gfx
parentDrop old (diff)
downloadgentoo-2-8840f708e63b6735aed05439f93fcea898b281d3.tar.gz
gentoo-2-8840f708e63b6735aed05439f93fcea898b281d3.tar.bz2
gentoo-2-8840f708e63b6735aed05439f93fcea898b281d3.zip
Bump. Enable unit tests and disable python bindings until someone asks for them
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/openmesh/ChangeLog8
-rw-r--r--media-gfx/openmesh/openmesh-3.3.ebuild72
2 files changed, 79 insertions, 1 deletions
diff --git a/media-gfx/openmesh/ChangeLog b/media-gfx/openmesh/ChangeLog
index 4827e5d15791..7af488db0908 100644
--- a/media-gfx/openmesh/ChangeLog
+++ b/media-gfx/openmesh/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/openmesh
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.37 2015/07/17 16:27:08 zlogene Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.38 2015/08/05 15:32:21 jsbronder Exp $
+
+*openmesh-3.3 (05 Aug 2015)
+
+ 05 Aug 2015; Justin Bronder <jsbronder@gentoo.org> +openmesh-3.3.ebuild:
+ Bump. Enable unit tests and disable python bindings until someone asks for
+ them
17 Jul 2015; Mikle Kolyada <zlogene@gentoo.org> openmesh-3.2.ebuild:
ia64 stable wrt bug #526374
diff --git a/media-gfx/openmesh/openmesh-3.3.ebuild b/media-gfx/openmesh/openmesh-3.3.ebuild
new file mode 100644
index 000000000000..e683b54b1f2e
--- /dev/null
+++ b/media-gfx/openmesh/openmesh-3.3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-3.3.ebuild,v 1.1 2015/08/05 15:32:21 jsbronder Exp $
+
+EAPI="5"
+inherit eutils cmake-utils
+
+MY_PN="OpenMesh"
+MY_PV="${PV/_rc/-RC}"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes"
+HOMEPAGE="http://www.openmesh.org/"
+SRC_URI="http://openmesh.org/media/Releases/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2"
+
+LICENSE="LGPL-3-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~x86"
+IUSE="qt4 qt5 static-libs test"
+
+RDEPEND="
+ qt4? ( dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ media-libs/freeglut )
+ qt5? ( dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ media-libs/freeglut )"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )"
+
+src_prepare() {
+ # Fix libdir and remove rpath.
+ sed -i \
+ -e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
+ -e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \
+ -e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
+ -e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
+ -e '/^ *INSTALL_RPATH/d' \
+ cmake/ACGCommon.cmake || die
+
+ if ! use static-libs; then
+ sed -i "s|\(SHARED\)ANDSTATIC|\1|" \
+ src/${MY_PN}/{Core,Tools}/CMakeLists.txt || die
+ sed -i '/OpenMeshCoreStatic/d' \
+ src/${MY_PN}/Tools/CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ mycmakeargs=""
+
+ mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_UNIT_TESTS=TRUE"
+
+ # Disable python bindings until someone wants them.
+ mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_BINDINGS=FALSE"
+ mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=FALSE"
+
+ if ! use qt4 && ! use qt5; then
+ mycmakeargs="${mycmakeargs} -DBUILD_APPS=OFF"
+ fi
+
+ if use qt4 && ! use qt5; then
+ mycmakeargs="${mycmakeargs} -DFORCE_QT4=ON"
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc LICENSE/* README CHANGELOG
+}