summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2022-06-08 17:03:02 -0500
committerMatthias Maier <tamiko@gentoo.org>2022-06-08 17:11:11 -0500
commit135a1bc7d3df814aa92db8ea5df955c00a689fc0 (patch)
tree5f863b15677d35eac09257e139f09d8ee3e5f044 /sci-mathematics/cgal
parentdev-lang/python-exec: Stabilize 2.4.9 ppc, #850601 (diff)
downloadgentoo-135a1bc7d3df814aa92db8ea5df955c00a689fc0.tar.gz
gentoo-135a1bc7d3df814aa92db8ea5df955c00a689fc0.tar.bz2
gentoo-135a1bc7d3df814aa92db8ea5df955c00a689fc0.zip
sci-mathematics/cgal: add 5.4.1
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-mathematics/cgal')
-rw-r--r--sci-mathematics/cgal/Manifest2
-rw-r--r--sci-mathematics/cgal/cgal-5.4.1.ebuild77
2 files changed, 79 insertions, 0 deletions
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest
index 1858d561e21a..9f1171384c43 100644
--- a/sci-mathematics/cgal/Manifest
+++ b/sci-mathematics/cgal/Manifest
@@ -6,3 +6,5 @@ DIST CGAL-5.2.1.tar.xz 23256952 BLAKE2B a6a720011dde4df80a6ec74e2ee4658cf3239aef
DIST CGAL-5.2.2-doc_html.tar.xz 47748668 BLAKE2B 063c46cd3277411ccda7121cb181b9e9534e5f463404df5d4c9848e31ef0c1ae1739885b4eb6ecfcf63088ad57cd3601a2765a18c64204eaf808759be9bdc791 SHA512 2f763698fdf99156636e02c95fd677360daca5c0b51e6a2f92b7a226583760e9eb19ba8adb0451709407bb4582edaee4a2b529f60bd2c467324e9ce222f78647
DIST CGAL-5.2.2.tar.xz 23260652 BLAKE2B b615d74e8fb9f93dece8d7e88051d6f7f010b8d93de92c540d7c7f4f10a9b99d3ab42ccffebf3ee4b92dcdef443b1a75008d7261ab1e8caa7514fe373a44f053 SHA512 e51a0c82dc39f3c1c5245570f6f5d443ee9056e8aa58d0aeccbe6419323be52528477c9b339a8a071336da432eeca2bbf5322c06a7d0e27ef31c7aeded68c7ec
DIST CGAL-5.2.tar.xz 23250240 BLAKE2B eb80a81dd01b2b2e30fe72f45cceee0861b36f47e395d1c905f8551e23d57c36dd9a7c66e32f6c2a0a2cfbd4c780fd5d5ae098709bfc1072e7ac7f761d328fd3 SHA512 8dddec18bd7e375ea3b18c636ddb2ca4f3a318e177305058f702206b830e2605837024e4b1265789f1bdc46dda80133d6fa8d61a036cda3c93a227f4c244cc1a
+DIST CGAL-5.4.1-doc_html.tar.xz 50436088 BLAKE2B 9f293349f054094ecdce7a04ca1f276c56e824b4c9edd7ef82b9c450e3bde5ae26c9e6d06c5feea370c345d2b419cd426427ce34f329ea9a88ad5fa5931a0446 SHA512 5167a0fb0e390ab72c7d6106bc7d34e4a6c927f9634b02f71b675f8456d17cdcbc4a5d944c5ebf5ba1d6b635f469ee474c484913b768bff8a7c8ba52669373e8
+DIST CGAL-5.4.1.tar.xz 24110884 BLAKE2B 2d01404333fdaa00d66028decbaa522d6767290e2f5be5c2b7d0323d16b9b44cd00fe58fb7d20cb02b2731893bc251bcdd4de7013107bc1d4c086e999bbf240d SHA512 751871952173c31b356284e12f3cd0840863dad51c8dad5eb8894f8285470d0e23b6b09d97d60c4ffe6eb93b14ff141a18e381eab07ea29cb48923e90f9b657b
diff --git a/sci-mathematics/cgal/cgal-5.4.1.ebuild b/sci-mathematics/cgal/cgal-5.4.1.ebuild
new file mode 100644
index 000000000000..100c964916d0
--- /dev/null
+++ b/sci-mathematics/cgal/cgal-5.4.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples +gmp mpfi ntl qt5 +shared"
+
+RDEPEND="
+ dev-cpp/eigen
+ dev-libs/boost:=[threads(+)]
+ dev-libs/mpfr:=
+ sys-libs/zlib
+ x11-libs/libX11:=
+ virtual/glu:=
+ virtual/opengl:=
+ gmp? ( dev-libs/gmp:=[cxx] )
+ mpfi? ( sci-libs/mpfi )
+ ntl? ( dev-libs/ntl )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.11.1-fix-buildsystem.patch )
+
+src_prepare() {
+ cmake_src_prepare
+ # modules provided by dev-cpp/eigen
+ rm cmake/modules/FindEigen3.cmake || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCGAL_INSTALL_LIB_DIR="$(get_libdir)"
+ -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL"
+ -DCGAL_HEADER_ONLY=$(usex shared OFF ON)
+ -DWITH_LEDA=OFF
+ -DWITH_Eigen3=ON
+ -DWITH_ZLIB=ON
+ -DWITH_GMP=$(usex gmp)
+ -DWITH_GMPXX=$(usex gmp)
+ -DWITH_MPFI=$(usex mpfi)
+ -DWITH_NTL=$(usex ntl)
+ -DWITH_CGAL_Qt5=$(usex qt5)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( "${WORKDIR}"/doc_html/. )
+ cmake_src_install
+ if use examples; then
+ dodoc -r examples demo
+ fi
+}