mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
It was fixed upstream in >=3.13.0. I do get the mysterious virtual issue w/ -fno-semantic-interposition and LTO but ignoring that and just filtering it in that case. Bug: https://bugs.gentoo.org/862702 Signed-off-by: Sam James <sam@gentoo.org>
46 lines
958 B
Bash
46 lines
958 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake flag-o-matic toolchain-funcs
|
|
|
|
DESCRIPTION="Geometry engine library for Geographic Information Systems"
|
|
HOMEPAGE="https://libgeos.org/"
|
|
SRC_URI="https://download.osgeo.org/geos/${P}.tar.bz2"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
IUSE="doc test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="doc? ( app-text/doxygen )"
|
|
|
|
src_configure() {
|
|
tc-is-lto && filter-flags -fno-semantic-interposition
|
|
|
|
local mycmakeargs=(
|
|
-DBUILD_DOCUMENTATION=$(usex doc)
|
|
-DBUILD_TESTING=$(usex test)
|
|
-DUSE_CCACHE=OFF
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_compile() {
|
|
cmake_src_compile
|
|
|
|
use doc && cmake_src_compile docs
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
|
|
if use doc ; then
|
|
HTML_DOCS=( "${BUILD_DIR}"/doxygen/doxygen_docs/html/. )
|
|
einstalldocs
|
|
fi
|
|
}
|