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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jul 9 15:47:06 2013 UTC (16 months, 2 weeks ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.2.01.22120-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 bicatali 1.1 # Copyright 1999-2013 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.1.ebuild,v 1.2 2013/03/02 23:24:32 hwoarang Exp $
4    
5     EAPI=5
6    
7     CMAKE_BUILD_TYPE=Release
8    
9     inherit base multilib cmake-utils
10    
11     MY_P=CGAL-${PV}
12     PID=32361
13     DPID=32365
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     dev-qt/qtgui:4
36     dev-qt/qtopengl: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