/[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.5 - (hide annotations) (download)
Mon Jan 6 14:11:39 2014 UTC (11 months, 1 week ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
sci-mathematics/cgal: Drop old; punt base.eclass

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 hwoarang 1.4 # Copyright 1999-2013 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.5 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/cgal-4.0.2.ebuild,v 1.4 2013/03/02 23:24:32 hwoarang Exp $
4 bicatali 1.1
5     EAPI=4
6 jlec 1.3
7 bicatali 1.1 CMAKE_BUILD_TYPE=Release
8 jlec 1.3
9 bicatali 1.1 inherit base multilib cmake-utils
10    
11     MY_P=CGAL-${PV}
12     PID=31176
13     DPID=31181
14    
15     DESCRIPTION="C++ library for geometric algorithms and data structures"
16     HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/"
17 jlec 1.3 SRC_URI="
18     http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz
19 bicatali 1.1 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 bicatali 1.2 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
24 bicatali 1.1 IUSE="doc examples +gmp mpfi qt4"
25    
26 jlec 1.3 RDEPEND="
27     dev-libs/boost
28 bicatali 1.1 dev-libs/mpfr
29     sys-libs/zlib
30     x11-libs/libX11
31 jlec 1.3 virtual/glu
32 bicatali 1.1 virtual/opengl
33     gmp? ( dev-libs/gmp[cxx] )
34 jlec 1.3 qt4? (
35 hwoarang 1.4 dev-qt/qtgui:4
36     dev-qt/qtopengl:4 )
37 bicatali 1.1 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 jlec 1.3 sed \
48 bicatali 1.1 -e '/install(FILES AUTHORS/d' \
49 jlec 1.3 -i CMakeLists.txt || die
50 bicatali 1.1 }
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