summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-12-22 14:21:29 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-12-22 14:21:53 +0200
commitfe4154c4fc986018740abc3a6973e57108bffb51 (patch)
tree2cd55a28af0ea45d1f50f02afacf4a51c23c6854 /sci-libs/libigl
parentdev-python/ifaddr: Stabilize 0.2.0 arm64, #920402 (diff)
downloadgentoo-fe4154c4fc986018740abc3a6973e57108bffb51.tar.gz
gentoo-fe4154c4fc986018740abc3a6973e57108bffb51.tar.bz2
gentoo-fe4154c4fc986018740abc3a6973e57108bffb51.zip
sci-libs/libigl: add 2.5.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'sci-libs/libigl')
-rw-r--r--sci-libs/libigl/Manifest1
-rw-r--r--sci-libs/libigl/libigl-2.5.0.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/sci-libs/libigl/Manifest b/sci-libs/libigl/Manifest
index 810b7df6b33c..afc9fb90d7d1 100644
--- a/sci-libs/libigl/Manifest
+++ b/sci-libs/libigl/Manifest
@@ -1 +1,2 @@
DIST libigl-2.4.0.tar.gz 1124759 BLAKE2B c2ba37192f2603a3ab0052aeb14f7706322364183c297af38ea88af8937bc7d76f0e3cc248a8e88c6bf2ad7ce2d9568d6e446a60c5da905fd4a235a706c4289c SHA512 f9e19c6d9a7fa2afe12c0a4042c3cc46606413d7f79b20e2464021fc0c5d9730e0ab2c192e5b4f161f3bc3a42a654929a2e77baac44c3eddad486f709cf909a1
+DIST libigl-2.5.0.tar.gz 1230536 BLAKE2B c92df589a6e114c33151256945786aa7357d89f32bf4b0dedb3d523e3beef85beed67e926875066c05b899b3dfc70d9f64aeb7674449a2487acaf0f67e9217b3 SHA512 39b92ec4c2479a3c0a8e99b2890643c9d76a7e5b61b485c1a3a5f5abff1da4e62b67b879dbcf6e18a43f98172fc9f87f0a6c92b99e2a1900e6f1d2e809899b11
diff --git a/sci-libs/libigl/libigl-2.5.0.ebuild b/sci-libs/libigl/libigl-2.5.0.ebuild
new file mode 100644
index 000000000000..e7bdc06f5635
--- /dev/null
+++ b/sci-libs/libigl/libigl-2.5.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A simple C++ geometry processing library"
+HOMEPAGE="https://libigl.github.io/"
+SRC_URI="https://github.com/libigl/libigl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+ MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="static-libs"
+
+DEPEND="dev-cpp/eigen:3"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DFETCHCONTENT_FULLY_DISCONNECTED=ON
+ -DLIBIGL_BUILD_TESTS=OFF
+ -DLIBIGL_BUILD_TUTORIALS=OFF
+ -DLIBIGL_USE_STATIC_LIBRARY=$(usex static-libs)
+ -DLIBIGL_COPYLEFT_CGAL=OFF
+ -DLIBIGL_COPYLEFT_COMISO=OFF
+ -DLIBIGL_EMBREE=OFF
+ -DLIBIGL_DEFAULT_MATLAB=OFF
+ -DLIBIGL_DEFAULT_MOSEK=OFF
+ -DLIBIGL_OPENGL=OFF
+ -DLIBIGL_GLFW=OFF
+ -DLIBIGL_IMGUI=OFF
+ -DLIBIGL_STB=OFF
+ -DLIBIGL_PREDICATES=OFF
+ -DLIBIGL_SPECTRA=OFF
+ -DLIBIGL_COPYLEFT_TETGEN=OFF
+ -DLIBIGL_RESTRICTED_TRIANGLE=OFF
+ -DLIBIGL_XML=OFF
+ )
+ cmake_src_configure
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ # Tries to copy eigen headers into /usr/include
+ sed -e '/install(DIRECTORY/d' -i cmake/recipes/external/eigen.cmake || die
+}
+
+src_install() {
+ cmake_src_install
+
+ # Install won't install all headers
+ insinto /usr/include/
+ doins -r include/igl
+}