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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu May 10 17:48:10 2012 UTC (2 years, 7 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
examples are not configured, only installed (fixing bug #415349) together with demos. lapack dependency is removed, only used for examples.

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 jdhore 1.4 # Copyright 1999-2012 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 bicatali 1.5 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/cgal-3.7.ebuild,v 1.4 2012/05/04 07:46:50 jdhore Exp $
4 bicatali 1.1
5     EAPI=3
6     CMAKE_BUILD_TYPE=Release
7     inherit base multilib cmake-utils
8    
9     MY_P=CGAL-${PV}
10     PID=27640
11     DPID=27644
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 qt4"
22    
23     RDEPEND="dev-libs/boost
24     dev-libs/mpfr
25     sys-libs/zlib
26     x11-libs/libX11
27     virtual/opengl
28 flameeyes 1.3 gmp? ( dev-libs/gmp[cxx=] )
29 bicatali 1.1 lapack? ( virtual/lapack )
30     qt4? ( x11-libs/qt-gui:4
31     x11-libs/qt-opengl:4 )"
32     DEPEND="${RDEPEND}
33     app-arch/xz-utils
34 jdhore 1.4 virtual/pkgconfig"
35 bicatali 1.1
36     S="${WORKDIR}/${MY_P}"
37    
38     DOCS="AUTHORS CHANGES* README"
39    
40     src_prepare() {
41     base_src_prepare
42     sed -i \
43     -e '/install(FILES AUTHORS/d' \
44     CMakeLists.txt || die
45     }
46    
47     src_configure() {
48     local mycmakeargs
49     if use gmp; then
50     mycmakeargs+=( $(cmake-utils_use_with cxx GMPXX) )
51     else
52     mycmakeargs+=( "-DWITH_GMPXX=OFF" )
53     fi
54     mycmakeargs+=(
55     "-DCGAL_INSTALL_LIB_DIR=$(get_libdir)"
56     "-DWITH_CGAL_Qt3=OFF"
57     "-DWITH_LEDA=OFF"
58     $(cmake-utils_use_with examples)
59     $(cmake-utils_use_with examples DEMOS)
60     $(cmake-utils_use_with gmp)
61     $(cmake-utils_use_with lapack CPACK)
62     $(cmake-utils_use_with qt4 CGAL_Qt4)
63     )
64     cmake-utils_src_configure
65     }
66    
67     src_install() {
68     cmake-utils_src_install
69     if use doc; then
70     dohtml -r "${WORKDIR}"/doc_html/cgal_manual/*
71     fi
72     if use examples; then
73     insinto /usr/share/doc/${PF}
74     doins -r examples || die
75     fi
76     }

  ViewVC Help
Powered by ViewVC 1.1.20