summaryrefslogtreecommitdiff
blob: 530396047bdf7f84f770d370dbbffcff83edf2ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="Clipper2"
MY_P=${MY_PN}_${PV}

inherit cmake

DESCRIPTION="Polygon Clipping and Offsetting"
HOMEPAGE="https://www.angusj.com/clipper2/Docs/Overview.htm"
SRC_URI="https://github.com/AngusJohnson/Clipper2/archive/refs/tags/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${MY_P}/CPP"

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64"

RESTRICT="mirror"

src_configure() {
	local mycmakeargs=(
		-DCLIPPER2_UTILS=OFF
		-DCLIPPER2_EXAMPLES=OFF
		-DCLIPPER2_TESTS=OFF
		-DCLIPPER2_USINGZ=OFF  # manifold src/third_party/CMakeLists.txt
	)
	cmake_src_configure
}