From f4a86b531e350390837913d2a7207bfd0e652ae7 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Sat, 7 Jul 2012 12:44:10 +0000 Subject: Version bump (Portage version: 2.2.0_alpha116/cvs/Linux x86_64) --- sci-mathematics/cgal/ChangeLog | 8 +++-- sci-mathematics/cgal/cgal-4.0.2.ebuild | 66 ++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 sci-mathematics/cgal/cgal-4.0.2.ebuild diff --git a/sci-mathematics/cgal/ChangeLog b/sci-mathematics/cgal/ChangeLog index 4cb1d8b5beb3..baca9df38b9b 100644 --- a/sci-mathematics/cgal/ChangeLog +++ b/sci-mathematics/cgal/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/cgal # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/ChangeLog,v 1.16 2012/05/10 17:48:10 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/ChangeLog,v 1.17 2012/07/07 12:44:10 bicatali Exp $ + +*cgal-4.0.2 (07 Jul 2012) + + 07 Jul 2012; Sébastien Fabbro +cgal-4.0.2.ebuild: + Version bump 10 May 2012; Sébastien Fabbro -cgal-3.7.ebuild, cgal-4.0.ebuild: @@ -75,4 +80,3 @@ +files/cgal-3.3.1-qt.patch, +files/cgal-3.3.1-rpath.patch, +metadata.xml, +cgal-3.3.1.ebuild: Initial import. Closing bug #167944. - diff --git a/sci-mathematics/cgal/cgal-4.0.2.ebuild b/sci-mathematics/cgal/cgal-4.0.2.ebuild new file mode 100644 index 000000000000..846be0a8e0d8 --- /dev/null +++ b/sci-mathematics/cgal/cgal-4.0.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/cgal-4.0.2.ebuild,v 1.1 2012/07/07 12:44:10 bicatali Exp $ + +EAPI=4 +CMAKE_BUILD_TYPE=Release +inherit base multilib cmake-utils + +MY_P=CGAL-${PV} +PID=31176 +DPID=31181 + +DESCRIPTION="C++ library for geometric algorithms and data structures" +HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/" +SRC_URI="http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz + doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )" + +LICENSE="LGPL-3 GPL-3 Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +gmp mpfi qt4" + +RDEPEND="dev-libs/boost + dev-libs/mpfr + sys-libs/zlib + x11-libs/libX11 + virtual/opengl + gmp? ( dev-libs/gmp[cxx] ) + qt4? ( x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 ) + mpfi? ( sci-libs/mpfi )" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +S="${WORKDIR}/${MY_P}" + +DOCS="AUTHORS CHANGES* README" + +src_prepare() { + base_src_prepare + sed -i \ + -e '/install(FILES AUTHORS/d' \ + CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs+=( + -DCGAL_INSTALL_LIB_DIR=$(get_libdir) + -DWITH_CGAL_Qt3=OFF + -DWITH_LEDA=OFF + $(cmake-utils_use_with gmp) + $(cmake-utils_use_with gmp GMPXX) + $(cmake-utils_use_with qt4 CGAL_Qt4) + $(cmake-utils_use_with mpfi) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + use doc && dohtml -r "${WORKDIR}"/doc_html/cgal_manual/* + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples demo + fi +} -- cgit v1.2.3-65-gdbad