diff options
author | Bernd Waibel <waebbl-gentoo@posteo.net> | 2022-04-05 11:52:51 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-04-14 11:54:34 +0300 |
commit | 423e0819a86884988c9355e93ed9bd1d5813e267 (patch) | |
tree | 424cce1f3f4a7acdc8cacb8bb23c7d649eb1812d /media-gfx | |
parent | x11-misc/albert: add dev-qt/qtgraphicaleffects:5 to RDEPEND (diff) | |
download | gentoo-423e0819a86884988c9355e93ed9bd1d5813e267.tar.gz gentoo-423e0819a86884988c9355e93ed9bd1d5813e267.tar.bz2 gentoo-423e0819a86884988c9355e93ed9bd1d5813e267.zip |
media-gfx/freecad: add option to build designer plugin
Add a USE flag to build and install the designer plugin of FreeCAD,
to be used from within the Qt designer application. The widgets are
prefixed with Gui:: within designer.
See https://forum.freecadweb.org/viewtopic.php?f=10&t=67706 and
https://github.com/FreeCAD/FreeCAD/pull/6711
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/24918
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/freecad/freecad-9999.ebuild | 8 | ||||
-rw-r--r-- | media-gfx/freecad/metadata.xml | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild index f977510288c5..d10e47f1f6e1 100644 --- a/media-gfx/freecad/freecad-9999.ebuild +++ b/media-gfx/freecad/freecad-9999.ebuild @@ -29,10 +29,9 @@ fi # examples are licensed CC-BY-SA (without note of specific version) LICENSE="LGPL-2 CC-BY-SA-4.0" SLOT="0" -IUSE="debug headless pcl test" -RESTRICT="!test? ( test )" +IUSE="debug designer headless test" -FREECAD_EXPERIMENTAL_MODULES="cloud plot ship" +FREECAD_EXPERIMENTAL_MODULES="cloud pcl plot ship" FREECAD_STABLE_MODULES="addonmgr fem idf image inspection material openscad part-design path points raytracing robot show surface techdraw tux" @@ -45,6 +44,8 @@ for module in ${FREECAD_EXPERIMENTAL_MODULES}; do done unset module +RESTRICT="!test? ( test )" + RDEPEND=" ${PYTHON_DEPS} dev-libs/OpenNI2[opengl(+)] @@ -156,6 +157,7 @@ src_configure() { -DBUILD_CLOUD=$(usex cloud) -DBUILD_COMPLETE=OFF # deprecated -DBUILD_DRAFT=ON + -DBUILD_DESIGNER_PLUGIN=$(usex designer) -DBUILD_DRAWING=ON -DBUILD_ENABLE_CXX_STD:STRING="C++17" # needed for current git master -DBUILD_FEM=$(usex fem) diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml index 44899f008bc0..0cb44cbdecb5 100644 --- a/media-gfx/freecad/metadata.xml +++ b/media-gfx/freecad/metadata.xml @@ -18,6 +18,10 @@ Build the Cloud workbench, to access cloud providers (mostly Amazon S3). </flag> + <flag name="designer"> + Build and install the Qt designer plugin, so the FreeCAD widgets + can be used from within designer. + </flag> <flag name="drawing"> Build the Drawing workbench, a predecessor to the TechDraw workbench. Users are encouraged to learn how to use the TechDraw workbench and |