/[gentoo-x86]/sci-mathematics/cgal/cgal-4.0.2.ebuild
Gentoo

Contents of /sci-mathematics/cgal/cgal-4.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Nov 9 14:01:53 2012 UTC (22 months, 3 weeks ago) by jlec
Branch: MAIN
Changes since 1.2: +12 -6 lines
sci-mathematics/cgal: Addmissing dep on virtual/glu, #438504

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/cgal-4.0.2.ebuild,v 1.2 2012/08/09 18:06:20 bicatali Exp $
4
5 EAPI=4
6
7 CMAKE_BUILD_TYPE=Release
8
9 inherit base multilib cmake-utils
10
11 MY_P=CGAL-${PV}
12 PID=31176
13 DPID=31181
14
15 DESCRIPTION="C++ library for geometric algorithms and data structures"
16 HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/"
17 SRC_URI="
18 http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz
19 doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )"
20
21 LICENSE="LGPL-3 GPL-3 Boost-1.0"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
24 IUSE="doc examples +gmp mpfi qt4"
25
26 RDEPEND="
27 dev-libs/boost
28 dev-libs/mpfr
29 sys-libs/zlib
30 x11-libs/libX11
31 virtual/glu
32 virtual/opengl
33 gmp? ( dev-libs/gmp[cxx] )
34 qt4? (
35 x11-libs/qt-gui:4
36 x11-libs/qt-opengl:4 )
37 mpfi? ( sci-libs/mpfi )"
38 DEPEND="${RDEPEND}
39 app-arch/xz-utils"
40
41 S="${WORKDIR}/${MY_P}"
42
43 DOCS="AUTHORS CHANGES* README"
44
45 src_prepare() {
46 base_src_prepare
47 sed \
48 -e '/install(FILES AUTHORS/d' \
49 -i CMakeLists.txt || die
50 }
51
52 src_configure() {
53 local mycmakeargs+=(
54 -DCGAL_INSTALL_LIB_DIR=$(get_libdir)
55 -DWITH_CGAL_Qt3=OFF
56 -DWITH_LEDA=OFF
57 $(cmake-utils_use_with gmp)
58 $(cmake-utils_use_with gmp GMPXX)
59 $(cmake-utils_use_with qt4 CGAL_Qt4)
60 $(cmake-utils_use_with mpfi)
61 )
62 cmake-utils_src_configure
63 }
64
65 src_install() {
66 cmake-utils_src_install
67 use doc && dohtml -r "${WORKDIR}"/doc_html/cgal_manual/*
68 if use examples; then
69 insinto /usr/share/doc/${PF}
70 doins -r examples demo
71 fi
72 }

  ViewVC Help
Powered by ViewVC 1.1.20