/[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.2 - (hide annotations) (download)
Thu Aug 9 18:06:20 2012 UTC (2 years, 1 month ago) by bicatali
Branch: MAIN
Changes since 1.1: +2 -2 lines
keyword amd64-linux x86-linux

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

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

  ViewVC Help
Powered by ViewVC 1.1.20