summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-01-03 16:16:19 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-01-03 16:21:54 +0100
commitf4653d899e5408348f6462d05f8c4605f3de9066 (patch)
tree8600e5c63b690ce7642f78bad15266b51742573f /sci-mathematics/cgal/cgal-5.6.ebuild
parentnet-ftp/ncftp: add 3.2.7 (diff)
downloadgentoo-f4653d899e5408348f6462d05f8c4605f3de9066.tar.gz
gentoo-f4653d899e5408348f6462d05f8c4605f3de9066.tar.bz2
gentoo-f4653d899e5408348f6462d05f8c4605f3de9066.zip
sci-mathematics/cgal: add 5.6
Closes: https://bugs.gentoo.org/921180 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-mathematics/cgal/cgal-5.6.ebuild')
-rw-r--r--sci-mathematics/cgal/cgal-5.6.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-mathematics/cgal/cgal-5.6.ebuild b/sci-mathematics/cgal/cgal-5.6.ebuild
new file mode 100644
index 000000000000..1ef2b2dbf76e
--- /dev/null
+++ b/sci-mathematics/cgal/cgal-5.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Modules provided by dev-cpp/eigen
+CMAKE_REMOVE_MODULES_LIST=( FindEigen3 )
+inherit cmake
+
+MY_P=CGAL-${PV}
+DESCRIPTION="C++ library for geometric algorithms and data structures"
+HOMEPAGE="https://www.cgal.org/"
+SRC_URI="
+ https://github.com/CGAL/cgal/releases/download/v${PV}/${MY_P}.tar.xz
+ doc? ( https://github.com/CGAL/cgal/releases/download/v${PV}/${MY_P}-doc_html.tar.xz )"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-3 GPL-3 Boost-1.0"
+SLOT="0/14"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-cpp/eigen
+ dev-libs/boost:=
+ dev-libs/gmp:=[cxx]
+ dev-libs/mpfr:=
+ sys-libs/zlib
+ x11-libs/libX11:=
+ virtual/glu:=
+ virtual/opengl:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.11.1-fix-buildsystem.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DCGAL_INSTALL_LIB_DIR="$(get_libdir)"
+ -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( "${WORKDIR}"/CGAL-${PV}-doc_html/. )
+
+ cmake_src_install
+
+ if use examples; then
+ dodoc -r examples demo
+ fi
+}