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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Nov 1 21:43:15 2010 UTC (4 years ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bump

(Portage version: 2.2.0_alpha2/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20