summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2023-06-04 10:18:18 +0300
committerMarc Schiffbauer <mschiff@gentoo.org>2023-06-04 10:20:07 +0300
commit79b17984ef7ab9bb98b25d97cf642869ec96658b (patch)
tree1e82a02c40a5b8eb808945febac78924364c023a /sci-geosciences
parentdev-python/griffe: Enable py3.12 (diff)
downloadgentoo-79b17984ef7ab9bb98b25d97cf642869ec96658b.tar.gz
gentoo-79b17984ef7ab9bb98b25d97cf642869ec96658b.tar.bz2
gentoo-79b17984ef7ab9bb98b25d97cf642869ec96658b.zip
sci-geosciences/opencpn: fix -native-symlinks built
Closes: https://bugs.gentoo.org/907759 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/opencpn/opencpn-5.8.2-r2.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/sci-geosciences/opencpn/opencpn-5.8.2-r2.ebuild b/sci-geosciences/opencpn/opencpn-5.8.2-r2.ebuild
index 7d5e879a5b06..e4f4e223eb15 100644
--- a/sci-geosciences/opencpn/opencpn-5.8.2-r2.ebuild
+++ b/sci-geosciences/opencpn/opencpn-5.8.2-r2.ebuild
@@ -4,7 +4,7 @@
EAPI=8
WX_GTK_VER="3.2-gtk3"
-inherit wxwidgets xdg cmake
+inherit wxwidgets xdg cmake toolchain-funcs
DOC_VERSION="4.8.2.0"
@@ -44,6 +44,13 @@ BDEPEND="
sys-devel/gettext
"
+src_prepare() {
+ default
+ # see bug #907759
+ sed -i "s/ cc / $(tc-getBUILD_CC) /" "${S}"/CMakeLists.txt
+ cmake_src_prepare
+}
+
src_configure() {
use doc && HTML_DOCS=( "${S}"/../${PN}/doc/. )