diff options
author | Justin Bronder <jsbronder@gentoo.org> | 2010-06-16 21:46:30 +0000 |
---|---|---|
committer | Justin Bronder <jsbronder@gentoo.org> | 2010-06-16 21:46:30 +0000 |
commit | 55b70d404eea523fab4423c2381c207745abeea1 (patch) | |
tree | 2d6a741fcdba75053e9cf0efab9a6af86f678aa6 /media-gfx/openmesh | |
parent | Drop -ggdb3 from CFLAGS, bug #324367, thank Samuli Suominen for report. (diff) | |
download | gentoo-2-55b70d404eea523fab4423c2381c207745abeea1.tar.gz gentoo-2-55b70d404eea523fab4423c2381c207745abeea1.tar.bz2 gentoo-2-55b70d404eea523fab4423c2381c207745abeea1.zip |
Bump media-gfx/openmesh-2.0_rc5
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/openmesh')
-rw-r--r-- | media-gfx/openmesh/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/openmesh/openmesh-2.0_rc5.ebuild | 60 |
2 files changed, 68 insertions, 2 deletions
diff --git a/media-gfx/openmesh/ChangeLog b/media-gfx/openmesh/ChangeLog index 101c44056e39..5ae6cca3aadb 100644 --- a/media-gfx/openmesh/ChangeLog +++ b/media-gfx/openmesh/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/openmesh -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.15 2009/06/25 18:04:10 yngwin Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/ChangeLog,v 1.16 2010/06/16 21:46:30 jsbronder Exp $ + +*openmesh-2.0_rc5 (16 Jun 2010) + + 16 Jun 2010; Justin Bronder <jsbronder@gentoo.org> + +openmesh-2.0_rc5.ebuild: + Bump media-gfx/openmesh-2.0_rc5 25 Jun 2009; Ben de Groot <yngwin@gentoo.org> openmesh-1.0.0.ebuild, -openmesh-1.9.5.ebuild, -openmesh-1.9.6-r1.ebuild, diff --git a/media-gfx/openmesh/openmesh-2.0_rc5.ebuild b/media-gfx/openmesh/openmesh-2.0_rc5.ebuild new file mode 100644 index 000000000000..02b83b5582dc --- /dev/null +++ b/media-gfx/openmesh/openmesh-2.0_rc5.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-2.0_rc5.ebuild,v 1.1 2010/06/16 21:46:30 jsbronder Exp $ + +EAPI="3" +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/fileadmin/${PN}-files/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2" + +# See COPYING.EXCEPTIONS +LICENSE="LGPL-3 as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="qt4 debug static" + +RDEPEND="qt4? ( x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + virtual/glut )" +DEPEND="${RDEPEND}" + +src_prepare() { + # Fix libdir and remove rpath. + cd "${S}" + 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 +} + +src_configure() { + if use debug; then + CMAKE_BUILD_TYPE=Debug + else + CMAKE_BUILD_TYPE=Release + append-cppflags -DNDEBUG + fi + mycmakeargs="$(cmake-utils_use_build "qt4" "APPS")" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if ! use static; then + # No way to set this in the build system as of 2.0_rc5 + rm -f "${D}"/usr/$(get_libdir)/*.a \ + || die "Failed to remove static libraries." + fi + cd "${S}" + dodoc LICENSE/* README CHANGELOG || die +} |