DIST CGAL-3.8-doc_html.tar.xz 17238908 RMD160 f978fc8c4deb7c1d2fe95e4dbe401f59735e6fbd SHA1 2f45c864864af8f7054ae8d4adb9651d27a09eab SHA256 2ba764fee4d907f8553454378db103ede87b99bfa6ab45a8c080d66513ba32d7
DIST CGAL-3.8.tar.xz 9754596 RMD160 41b00fdbdd1d9378a13d05f91e88c5afdc721031 SHA1 5cd165d3a99a5741606e9138a3363e5a16f049f4 SHA256 a631283ccd35092ff6a1999d7e6f02aff26efd82384e1c192b41b7eb9e44bfe4
+DIST CGAL-3.9-doc_html.tar.xz 17943040 RMD160 d7ad3d7e1ed0a3a21ff2c5a326a3f40c95ef5fae SHA1 47fbb255f117075634b885c1ab9dce1e83639ac9 SHA256 5f22c62365540a036fa66e18a3abe55fc4f5cb36a60717711c54029c032f8120
+DIST CGAL-3.9.tar.xz 9853500 RMD160 0340837bb57824dbf08361e25bfbb91bd01a1668 SHA1 48bff87ab26e013b583ee34f021a6025c4b81cdf SHA256 a5d50f3788b1acd34a20ef84c071f8eb66eeacc5e12760292d6f7c0ff041022c
EBUILD cgal-3.8.ebuild 1818 RMD160 cb33810b43af658381406ba1871778f94de4dbc5 SHA1 e26670102082b975ebfe918895efe4b8b24168b9 SHA256 5ddef0ededcd55ad15475ab66749969cb33c2468b3551e5fff9d2e3c52a6855e
+EBUILD cgal-3.9.ebuild 1597 RMD160 310fb8c7d51fee035a1c5efd3368c588192e7538 SHA1 285f601dee137e0a0061f6dc5f411522e4d7e160 SHA256 602f6365da244e00c6e851411c976a3113e2281884acbe2e05d54c28b64795b2
--- /dev/null
+EAPI=3
+CMAKE_BUILD_TYPE=Release
+inherit base multilib cmake-utils
+
+MY_P=CGAL-${PV}
+PID=29122
+DPID=29120
+
+DESCRIPTION="C++ library for geometric algorithms and data structures"
+HOMEPAGE="http://www.cgal.org/"
+SRC_URI="http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz
+ doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )"
+
+LICENSE="LGPL-2.1 MIT QPL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror"
+IUSE="+cxx doc examples +gmp lapack qt4"
+
+RDEPEND="dev-libs/boost
+ dev-libs/mpfr
+ sys-libs/zlib
+ x11-libs/libX11
+ virtual/opengl
+ gmp? ( dev-libs/gmp
+ cxx? ( dev-libs/gmp[-nocxx] ) )
+ lapack? ( virtual/lapack )
+ qt4? ( x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4 )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS CHANGES* README"
+
+src_prepare() {
+ base_src_prepare
+ sed -i \
+ -e '/install(FILES AUTHORS/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs
+ if use gmp; then
+ mycmakeargs+=( $(cmake-utils_use_with cxx GMPXX) )
+ else
+ mycmakeargs+=( "-DWITH_GMPXX=OFF" )
+ fi
+ mycmakeargs+=(
+ "-DCGAL_INSTALL_LIB_DIR=$(get_libdir)"
+ "-DWITH_CGAL_Qt3=OFF"
+ "-DWITH_LEDA=OFF"
+ $(cmake-utils_use_with examples)
+ $(cmake-utils_use_with examples DEMOS)
+ $(cmake-utils_use_with gmp)
+ $(cmake-utils_use_with lapack CPACK)
+ $(cmake-utils_use_with qt4 CGAL_Qt4)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc; then
+ dohtml -r "${WORKDIR}"/doc_html/cgal_manual/*
+ fi
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples || die
+ fi
+}