cgal-4.3-r1.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. CMAKE_BUILD_TYPE=Release
  5. inherit multilib cmake-utils
  6. MY_P=CGAL-${PV}
  7. PID=32995
  8. DPID=33000
  9. DESCRIPTION="C++ library for geometric algorithms and data structures"
  10. HOMEPAGE="http://www.cgal.org/ https://gforge.inria.fr/projects/cgal/"
  11. SRC_URI="
  12. http://gforge.inria.fr/frs/download.php/${PID}/${MY_P}.tar.xz
  13. doc? ( http://gforge.inria.fr/frs/download.php/${DPID}/${MY_P}-doc_html.tar.xz )"
  14. LICENSE="LGPL-3 GPL-3 Boost-1.0"
  15. SLOT="0"
  16. KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
  17. IUSE="doc examples +gmp mpfi qt4"
  18. RDEPEND="
  19. dev-libs/boost
  20. dev-libs/mpfr:0
  21. sys-libs/zlib
  22. x11-libs/libX11
  23. virtual/glu
  24. virtual/opengl
  25. gmp? ( dev-libs/gmp[cxx] )
  26. qt4? (
  27. dev-qt/qtgui:4
  28. dev-qt/qtopengl:4
  29. )
  30. mpfi? ( sci-libs/mpfi )"
  31. DEPEND="${RDEPEND}
  32. app-arch/xz-utils
  33. virtual/pkgconfig"
  34. S="${WORKDIR}/${MY_P}"
  35. DOCS="AUTHORS CHANGES* README"
  36. src_prepare() {
  37. epatch "${FILESDIR}"/${P}-cmake-3.3.patch
  38. cmake-utils_src_prepare
  39. sed \
  40. -e '/install(FILES AUTHORS/d' \
  41. -i CMakeLists.txt || die
  42. }
  43. src_configure() {
  44. local mycmakeargs=(
  45. -DCGAL_INSTALL_LIB_DIR=$(get_libdir)
  46. -DWITH_CGAL_Qt3=OFF
  47. -DWITH_LEDA=OFF
  48. $(cmake-utils_use_with gmp)
  49. $(cmake-utils_use_with gmp GMPXX)
  50. $(cmake-utils_use_with qt4 CGAL_Qt4)
  51. $(cmake-utils_use_with mpfi)
  52. )
  53. cmake-utils_src_configure
  54. }
  55. src_install() {
  56. use doc && HTML_DOCS=( "${WORKDIR}"/doc_html/. )
  57. cmake-utils_src_install
  58. if use examples; then
  59. insinto /usr/share/doc/${PF}
  60. doins -r examples demo
  61. fi
  62. }