summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Lamm <expeditioneer@gentoo.org>2020-12-13 13:56:32 +0100
committerDennis Lamm <expeditioneer@gentoo.org>2020-12-13 15:22:15 +0100
commit4dbe7d850b96fd5329f4be4e9fb195e9bd8fedb5 (patch)
tree2c9f818f37b9392f3e3e89eb76cc25f3d3096d49 /sci-libs/libigl
parentsys-libs/libcap: Removed old (diff)
downloadgentoo-4dbe7d850b96fd5329f4be4e9fb195e9bd8fedb5.tar.gz
gentoo-4dbe7d850b96fd5329f4be4e9fb195e9bd8fedb5.tar.bz2
gentoo-4dbe7d850b96fd5329f4be4e9fb195e9bd8fedb5.zip
sci-libs/libigl: new ebuild
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/18638 Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Diffstat (limited to 'sci-libs/libigl')
-rw-r--r--sci-libs/libigl/Manifest1
-rw-r--r--sci-libs/libigl/libigl-2.2.0.ebuild51
-rw-r--r--sci-libs/libigl/metadata.xml17
3 files changed, 69 insertions, 0 deletions
diff --git a/sci-libs/libigl/Manifest b/sci-libs/libigl/Manifest
new file mode 100644
index 000000000000..78a9977ee983
--- /dev/null
+++ b/sci-libs/libigl/Manifest
@@ -0,0 +1 @@
+DIST libigl-2.2.0.tar.gz 976859 BLAKE2B c32f3352735af631efc1a1c3eb598d94d845de61519346f91e9d3bbed3cc267c8b3fc70071b5a13bdc5d35624c8b271c056d3202dd6c8ec65dd24c4ea78885d9 SHA512 d2b091ccbad7b1e4305ac75b82d7bcb12d22e0c6f356ae21c2cc3006fc6404f0b738d394d6b008612e12a473698997c605db91a9b042bb4ec3c5ed18fea50029
diff --git a/sci-libs/libigl/libigl-2.2.0.ebuild b/sci-libs/libigl/libigl-2.2.0.ebuild
new file mode 100644
index 000000000000..45dadd22bed9
--- /dev/null
+++ b/sci-libs/libigl/libigl-2.2.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+DEPEND="dev-cpp/eigen:3"
+
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIBIGL_BUILD_TESTS=OFF
+ -DLIBIGL_BUILD_TUTORIALS=OFF
+ -DLIBIGL_SKIP_DOWNLOAD=ON
+ -DLIBIGL_USE_STATIC_LIBRARY=$(usex static-libs)
+ -DLIBIGL_WITH_CGAL=OFF
+ -DLIBIGL_WITH_COMISO=OFF
+ -DLIBIGL_WITH_EMBREE=OFF
+ -DLIBIGL_WITH_MATLAB=OFF
+ -DLIBIGL_WITH_MOSEK=OFF
+ -DLIBIGL_WITH_OPENGL=OFF
+ -DLIBIGL_WITH_OPENGL_GLFW=OFF
+ -DLIBIGL_WITH_OPENGL_GLFW_IMGUI=OFF
+ -DLIBIGL_WITH_PNG=OFF
+ -DLIBIGL_WITH_PREDICATES=OFF
+ -DLIBIGL_WITH_PYTHON=OFF
+ -DLIBIGL_WITH_TETGEN=OFF
+ -DLIBIGL_WITH_TRIANGLE=OFF
+ -DLIBIGL_WITH_XML=OFF
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # Install won't install all headers
+ insinto /usr/include/
+ doins -r include/igl
+}
diff --git a/sci-libs/libigl/metadata.xml b/sci-libs/libigl/metadata.xml
new file mode 100644
index 000000000000..970568e68005
--- /dev/null
+++ b/sci-libs/libigl/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <longdescription>
+ ibigl is a simple C++ geometry processing library with a wide functionality including construction of sparse
+ discrete differential geometry operators and finite-elements matrices such as the cotangent Laplacian and
+ diagonalized mass matrix, simple facet and edge-based topology data structures, mesh-viewing utilities for
+ OpenGL and GLSL, and many core functions for matrix manipulation which make Eigen feel a lot more like MATLAB.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">libigl/libigl</remote-id>
+ </upstream>
+</pkgmetadata>