From d68b06ae1e4c01d1bcd6e093da0a654df69d21f7 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Wed, 18 Apr 2012 23:46:24 +0000 Subject: Version bump (Portage version: 2.1.10.49/cvs/Linux x86_64) --- sci-mathematics/cgal/ChangeLog | 9 ++++- sci-mathematics/cgal/cgal-4.0.ebuild | 75 ++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 sci-mathematics/cgal/cgal-4.0.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/cgal/ChangeLog b/sci-mathematics/cgal/ChangeLog index cb08f4f2fc77..b556388ada2b 100644 --- a/sci-mathematics/cgal/ChangeLog +++ b/sci-mathematics/cgal/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/cgal -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/ChangeLog,v 1.12 2011/12/17 03:31:49 bicatali Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/ChangeLog,v 1.13 2012/04/18 23:46:24 bicatali Exp $ + +*cgal-4.0 (18 Apr 2012) + + 18 Apr 2012; Sébastien Fabbro +cgal-4.0.ebuild: + Version bump 17 Dec 2011; Sébastien Fabbro cgal-3.9.ebuild: Added mpfi support, thanks Martin von Gagern, bug #393651. Switched to EAPI4 diff --git a/sci-mathematics/cgal/cgal-4.0.ebuild b/sci-mathematics/cgal/cgal-4.0.ebuild new file mode 100644 index 000000000000..364e59316143 --- /dev/null +++ b/sci-mathematics/cgal/cgal-4.0.ebuild @@ -0,0 +1,75 @@ +# 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.ebuild,v 1.1 2012/04/18 23:46:24 bicatali Exp $ + +EAPI=4 +CMAKE_BUILD_TYPE=Release +inherit base multilib cmake-utils + +MY_P=CGAL-${PV} +PID=30385 +DPID=30389 + +DESCRIPTION="C++ library for geometric algorithms and data structures" +HOMEPAGE="http://www.cgal.org/" +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" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+cxx doc examples +gmp lapack mpfi qt4" + +RDEPEND="dev-libs/boost + dev-libs/mpfr + sys-libs/zlib + x11-libs/libX11 + virtual/opengl + gmp? ( dev-libs/gmp[cxx=] ) + lapack? ( virtual/lapack ) + qt4? ( x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 ) + mpfi? ( sci-libs/mpfi )" +DEPEND="${RDEPEND} + app-arch/xz-utils + dev-util/pkgconfig" + +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 + if use gmp; then + mycmakeargs+=( $(cmake-utils_use_with cxx GMPXX) ) + else + mycmakeargs+=( "-DWITH_GMPXX=OFF" ) + fi + mycmakeargs+=( + "-DCGAL_INSTALL_LIB_DIR=$(get_libdir)" + "-DWITH_CGAL_Qt3=OFF" + "-DWITH_LEDA=OFF" + $(cmake-utils_use_with examples) + $(cmake-utils_use_with examples demos) + $(cmake-utils_use_with gmp) + $(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 + fi +} -- cgit v1.2.3-65-gdbad