commit:     825db0d7f986a69ad55fd3cc26876c17aef1d583
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Nov 16 02:07:24 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 16 21:39:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=825db0d7

sci-mathematics/clipper2: update ebuild, add tests

Drop RESTRICT=mirror.
Enable tests.

Add metadata.xml.
Add myself as maintainer.
Adjust ebuild style to fit the rest my ebuilds.

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-mathematics/clipper2/clipper2-1.4.0.ebuild | 17 ++++++++++++-----
 sci-mathematics/clipper2/metadata.xml          | 15 +++++++++++++++
 2 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/sci-mathematics/clipper2/clipper2-1.4.0.ebuild 
b/sci-mathematics/clipper2/clipper2-1.4.0.ebuild
index 530396047bdf..ab2d3bf1ad9c 100644
--- a/sci-mathematics/clipper2/clipper2-1.4.0.ebuild
+++ b/sci-mathematics/clipper2/clipper2-1.4.0.ebuild
@@ -17,14 +17,21 @@ LICENSE="Boost-1.0"
 SLOT="0"
 KEYWORDS="~amd64"
 
-RESTRICT="mirror"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       test? ( dev-cpp/gtest )
+"
 
 src_configure() {
        local mycmakeargs=(
-               -DCLIPPER2_UTILS=OFF
-               -DCLIPPER2_EXAMPLES=OFF
-               -DCLIPPER2_TESTS=OFF
-               -DCLIPPER2_USINGZ=OFF  # manifold src/third_party/CMakeLists.txt
+               -DCLIPPER2_UTILS="no"
+               -DCLIPPER2_EXAMPLES="no"
+               -DCLIPPER2_TESTS="$(usex test)"
+               -DCLIPPER2_USINGZ="no"  # manifold 
src/third_party/CMakeLists.txt
+
+               -DUSE_EXTERNAL_GTEST="yes"
        )
        cmake_src_configure
 }

diff --git a/sci-mathematics/clipper2/metadata.xml 
b/sci-mathematics/clipper2/metadata.xml
new file mode 100644
index 000000000000..fda0c60d4c9e
--- /dev/null
+++ b/sci-mathematics/clipper2/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Paul Zander</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">AngusJohnson/Clipper2</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to