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

Contents of /sci-mathematics/cgal/cgal-4.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Aug 8 10:42:39 2015 UTC (3 years, 3 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Revbump to cmakeargs variable name, adjust policy for cmake-3.3 and fix subdir walking (bugs 556258, 556130). Add slot on mpfr.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2015 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.3.ebuild,v 1.4 2015/02/22 11:15:16 pacho Exp $
4
5 EAPI=5
6
7 CMAKE_BUILD_TYPE=Release
8
9 inherit multilib cmake-utils
10
11 MY_P=CGAL-${PV}
12 PID=32995
13 DPID=33000
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:0
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 )
38 mpfi? ( sci-libs/mpfi )"
39 DEPEND="${RDEPEND}
40 app-arch/xz-utils
41 virtual/pkgconfig"
42
43 S="${WORKDIR}/${MY_P}"
44
45 DOCS="AUTHORS CHANGES* README"
46
47 src_prepare() {
48 epatch "${FILESDIR}"/${P}-cmake-3.3.patch
49
50 cmake-utils_src_prepare
51 sed \
52 -e '/install(FILES AUTHORS/d' \
53 -i CMakeLists.txt || die
54 }
55
56 src_configure() {
57 local mycmakeargs=(
58 -DCGAL_INSTALL_LIB_DIR=$(get_libdir)
59 -DWITH_CGAL_Qt3=OFF
60 -DWITH_LEDA=OFF
61 $(cmake-utils_use_with gmp)
62 $(cmake-utils_use_with gmp GMPXX)
63 $(cmake-utils_use_with qt4 CGAL_Qt4)
64 $(cmake-utils_use_with mpfi)
65 )
66 cmake-utils_src_configure
67 }
68
69 src_install() {
70 use doc && HTML_DOCS=( "${WORKDIR}"/doc_html/. )
71 cmake-utils_src_install
72 if use examples; then
73 insinto /usr/share/doc/${PF}
74 doins -r examples demo
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20