blob: 2c573efaccb650954981dfb6911b824ce5c8227c (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Modules provided by dev-cpp/eigen
CMAKE_REMOVE_MODULES_LIST=( FindEigen3 )
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"
RDEPEND="
dev-cpp/eigen
dev-libs/boost:=[threads(+)]
dev-libs/gmp:=[cxx]
dev-libs/mpfr:=
sys-libs/zlib
x11-libs/libX11:=
virtual/glu:=
virtual/opengl:=
"
DEPEND="${RDEPEND}"
BDEPEND="
app-arch/xz-utils
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-4.11.1-fix-buildsystem.patch
)
src_configure() {
local mycmakeargs=(
-DCGAL_INSTALL_LIB_DIR="$(get_libdir)"
-DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL"
)
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
}
|