commit:     1d34fcb512042c3c5ee00b340311bd30dd8b3201
Author:     Chris Mayo <aklhfex <AT> gmail <DOT> com>
AuthorDate: Tue Oct 29 19:57:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 24 20:24:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d34fcb5

media-gfx/freecad: Add bim, cam and mesh USE flags

Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/freecad/freecad-1.0.0-r1.ebuild | 21 ++++++++++++---------
 media-gfx/freecad/metadata.xml            | 11 ++++++++++-
 2 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/media-gfx/freecad/freecad-1.0.0-r1.ebuild 
b/media-gfx/freecad/freecad-1.0.0-r1.ebuild
index b4206d964e4e..72f3fd680123 100644
--- a/media-gfx/freecad/freecad-1.0.0-r1.ebuild
+++ b/media-gfx/freecad/freecad-1.0.0-r1.ebuild
@@ -26,19 +26,22 @@ fi
 # examples are licensed CC-BY-SA (without note of specific version)
 LICENSE="LGPL-2 CC-BY-SA-4.0"
 SLOT="0"
-IUSE="debug designer +gui pcl qt5 smesh spacenav test X"
+IUSE="debug designer +gui netgen pcl qt5 smesh spacenav test X"
 # Modules are found in src/Mod/ and their options defined in:
 # cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake
 # To get their dependencies:
 # 'grep REQUIRES_MODS cMake/FreeCAD_Helpers/CheckInterModuleDependencies.cmake'
-IUSE+=" addonmgr cloud fem idf inspection netgen openscad points reverse robot 
surface +techdraw"
+IUSE+=" addonmgr bim cam cloud fem idf inspection mesh openscad points reverse 
robot surface +techdraw"
 
 REQUIRED_USE="
        ${PYTHON_REQUIRED_USE}
+       bim? ( mesh )
+       cam? ( mesh )
        designer? ( gui )
        fem? ( smesh )
        inspection? ( points )
-       openscad? ( smesh )
+       mesh? ( smesh )
+       openscad? ( mesh )
        python_single_target_python3_12? ( gui? ( !qt5 ) )
        reverse? ( mesh points )
        test? ( techdraw )
@@ -184,14 +187,14 @@ src_configure() {
                # Modules
                -DBUILD_ADDONMGR=$(usex addonmgr)
                -DBUILD_ASSEMBLY=OFF                                    # 
Requires OndselSolver
-               -DBUILD_BIM=ON
-               -DBUILD_CAM=ON
+               -DBUILD_BIM=$(usex bim)
+               -DBUILD_CAM=$(usex cam)
                -DBUILD_CLOUD=$(usex cloud)
                -DBUILD_DRAFT=ON
                # see below for DRAWING
                -DBUILD_FEM=$(usex fem)
-               -DBUILD_FEM_NETGEN=$(usex netgen)
-               -DBUILD_FLAT_MESH=ON                                    # a 
submodule of MeshPart
+               -DBUILD_FEM_NETGEN=$(usex fem $(usex netgen))
+               -DBUILD_FLAT_MESH=$(usex mesh)                  # a submodule 
of MeshPart
                -DBUILD_HELP=ON
                -DBUILD_IDF=$(usex idf)
                -DBUILD_IMPORT=ON                                               
# import module for various file formats
@@ -199,8 +202,8 @@ src_configure() {
                -DBUILD_JTREADER=OFF                                    # uses 
an old proprietary library
                -DBUILD_MATERIAL=ON
                -DBUILD_MEASURE=ON
-               -DBUILD_MESH=ON
-               -DBUILD_MESH_PART=ON
+               -DBUILD_MESH=$(usex mesh)
+               -DBUILD_MESH_PART=$(usex mesh)
                -DBUILD_OPENSCAD=$(usex openscad)
                -DBUILD_PART=ON
                -DBUILD_PART_DESIGN=ON

diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml
index 08aa25ba8b41..5d5e1aeb6daa 100644
--- a/media-gfx/freecad/metadata.xml
+++ b/media-gfx/freecad/metadata.xml
@@ -14,6 +14,12 @@
                        Build the addon manager module for automatic handling 
of 3rd 
                        party addons
                </flag>
+               <flag name="bim">
+                       Build the BIM module and workbench
+               </flag>
+               <flag name="cam">
+                       Build the CAM module and workbench
+               </flag>
                <flag name="cloud">
                        Build the Cloud workbench, to access cloud providers 
(mostly
                        Amazon S3).
@@ -48,6 +54,9 @@
                <flag name="material">
                        Build the material module and workbench to work with 
materials
                </flag>
+               <flag name="mesh">
+                       Build the mesh module and workbench
+               </flag>
                <flag name="netgen">
                        Build support for the netgen mesher through 
<pkg>media-gfx/netgen</pkg>.
                </flag>
@@ -82,7 +91,7 @@
                        Build the show module, a helper module for visibility 
automation
                </flag>
                <flag name="smesh">
-                       Build the Salome SMESH module
+                       Build Salome SMESH
                </flag>
                <flag name="spacenav">
                        Add support for space navigator devices through

Reply via email to