diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-01-05 11:22:53 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-01-05 11:23:37 +0100 |
commit | a0c575c52de9730980683c2f458bceda127be3eb (patch) | |
tree | 85e64b84dd109004a4b9a7e50755102f443946ff /media-gfx/freecad/freecad-9999.ebuild | |
parent | sci-libs/pcl: add 1.14.0, add USE=qt6 (diff) | |
download | gentoo-a0c575c52de9730980683c2f458bceda127be3eb.tar.gz gentoo-a0c575c52de9730980683c2f458bceda127be3eb.tar.bz2 gentoo-a0c575c52de9730980683c2f458bceda127be3eb.zip |
media-gfx/freecad: fix qt5 build, fix designer dep
Closes: https://bugs.gentoo.org/919492
Closes: https://bugs.gentoo.org/921298
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-gfx/freecad/freecad-9999.ebuild')
-rw-r--r-- | media-gfx/freecad/freecad-9999.ebuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild index 37978aa661a6..afcff7e93e63 100644 --- a/media-gfx/freecad/freecad-9999.ebuild +++ b/media-gfx/freecad/freecad-9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit check-reqs cmake optfeature python-single-r1 xdg +inherit check-reqs cmake optfeature python-single-r1 qmake-utils xdg DESCRIPTION="QT based Computer Aided Design application" HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" @@ -81,7 +81,7 @@ RDEPEND=" virtual/glu virtual/opengl !qt6? ( - designer? ( dev-qt/designer:5 ) + dev-qt/designer:5 dev-qt/qtgui:5 dev-qt/qtopengl:5 dev-qt/qtprintsupport:5 @@ -89,6 +89,7 @@ RDEPEND=" dev-qt/qtwebengine:5[widgets] dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 + pcl? ( sci-libs/pcl[qt5] ) $(python_gen_cond_dep ' dev-python/matplotlib[${PYTHON_USEDEP}] >=dev-python/pivy-0.6.5[${PYTHON_USEDEP}] @@ -97,10 +98,11 @@ RDEPEND=" ' python3_{10..11} ) ) qt6? ( - designer? ( dev-qt/qttools:6[designer] ) + dev-qt/qttools:6[designer] dev-qt/qtbase:6[gui,opengl,widgets] dev-qt/qtsvg:6 dev-qt/qtwebengine:6[widgets] + pcl? ( sci-libs/pcl[-qt5,qt6(-)] ) $(python_gen_cond_dep ' dev-python/matplotlib[${PYTHON_USEDEP}] >=dev-python/pivy-0.6.5[${PYTHON_USEDEP}] @@ -111,7 +113,7 @@ RDEPEND=" ) netgen? ( media-gfx/netgen[opencascade] ) openscad? ( media-gfx/openscad ) - pcl? ( sci-libs/pcl:=[opengl,openni2,qt5,vtk] ) + pcl? ( sci-libs/pcl:=[opengl,openni2,vtk] ) $(python_gen_cond_dep ' dev-python/numpy[${PYTHON_USEDEP}] dev-python/pybind11[${PYTHON_USEDEP}] @@ -271,14 +273,20 @@ src_configure() { if use qt6; then mycmakeargs+=( + -DFREECAD_QT_MAJOR_VERSION=6 -DFREECAD_QT_VERSION=6 -DQT_DEFAULT_MAJOR_VERSION=6 + -DQt6Core_MOC_EXECUTABLE="$(qt6_get_bindir)/moc" + -DQt6Core_RCC_EXECUTABLE="$(qt6_get_bindir)/rcc" -DBUILD_QT5=OFF ) else mycmakeargs+=( + -DFREECAD_QT_MAJOR_VERSION=5 -DFREECAD_QT_VERSION=5 -DQT_DEFAULT_MAJOR_VERSION=5 + -DQt5Core_MOC_EXECUTABLE="$(qt5_get_bindir)/moc" + -DQt5Core_RCC_EXECUTABLE="$(qt5_get_bindir)/rcc" -DBUILD_QT5=ON ) fi |