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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Aug 9 18:06:20 2012 UTC (2 years, 1 month ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
keyword amd64-linux x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

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-3.9.ebuild,v 1.3 2012/05/04 07:46:50 jdhore Exp $
4
5 EAPI=4
6 CMAKE_BUILD_TYPE=Release
7 inherit base multilib cmake-utils
8
9 MY_P=CGAL-${PV}
10 PID=29122
11 DPID=29120
12
13 DESCRIPTION="C++ library for geometric algorithms and data structures"
14 HOMEPAGE="http://www.cgal.org/"
15 SRC_URI="http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz
16 doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )"
17
18 LICENSE="LGPL-2.1 MIT QPL"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="+cxx doc examples +gmp lapack mpfi qt4"
22
23 RDEPEND="dev-libs/boost
24 dev-libs/mpfr
25 sys-libs/zlib
26 x11-libs/libX11
27 virtual/opengl
28 gmp? ( dev-libs/gmp[cxx=] )
29 lapack? ( virtual/lapack )
30 qt4? ( x11-libs/qt-gui:4
31 x11-libs/qt-opengl:4 )
32 mpfi? ( sci-libs/mpfi )"
33 DEPEND="${RDEPEND}
34 app-arch/xz-utils
35 virtual/pkgconfig"
36
37 S="${WORKDIR}/${MY_P}"
38
39 DOCS="AUTHORS CHANGES* README"
40
41 src_prepare() {
42 base_src_prepare
43 sed -i \
44 -e '/install(FILES AUTHORS/d' \
45 CMakeLists.txt || die
46 }
47
48 src_configure() {
49 local mycmakeargs
50 if use gmp; then
51 mycmakeargs+=( $(cmake-utils_use_with cxx GMPXX) )
52 else
53 mycmakeargs+=( "-DWITH_GMPXX=OFF" )
54 fi
55 mycmakeargs+=(
56 "-DCGAL_INSTALL_LIB_DIR=$(get_libdir)"
57 "-DWITH_CGAL_Qt3=OFF"
58 "-DWITH_LEDA=OFF"
59 $(cmake-utils_use_with examples)
60 $(cmake-utils_use_with examples DEMOS)
61 $(cmake-utils_use_with gmp)
62 $(cmake-utils_use_with lapack CPACK)
63 $(cmake-utils_use_with qt4 CGAL_Qt4)
64 $(cmake-utils_use_with mpfi)
65 )
66 cmake-utils_src_configure
67 }
68
69 src_install() {
70 cmake-utils_src_install
71 use doc && dohtml -r "${WORKDIR}"/doc_html/cgal_manual/*
72 if use examples; then
73 insinto /usr/share/doc/${PF}
74 doins -r examples
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20