1 # Distributed under the terms of the GNU General Public License v2
5 CMAKE_BUILD_TYPE=Release
7 inherit base multilib cmake-utils
13 DESCRIPTION="C++ library for geometric algorithms and data structures"
14 HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/"
16 http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz
17 doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )"
19 LICENSE="LGPL-3 GPL-3 Boost-1.0"
21 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22 IUSE="doc examples +gmp mpfi qt4"
31 gmp? ( dev-libs/gmp[cxx] )
35 mpfi? ( sci-libs/mpfi )"
39 S="${WORKDIR}/${MY_P}"
41 DOCS="AUTHORS CHANGES* README"
46 -e '/install(FILES AUTHORS/d' \
47 -i CMakeLists.txt || die
52 -DCGAL_INSTALL_LIB_DIR=$(get_libdir)
55 $(cmake-utils_use_with gmp)
56 $(cmake-utils_use_with gmp GMPXX)
57 $(cmake-utils_use_with qt4 CGAL_Qt4)
58 $(cmake-utils_use_with mpfi)
60 cmake-utils_src_configure
64 cmake-utils_src_install
65 use doc && dohtml -r "${WORKDIR}"/doc_html/cgal_manual/*
67 insinto /usr/share/doc/${PF}
68 doins -r examples demo