commit:     e0a107e8830ad417961531a67731e5ab6562849f
Author:     David Moreno <ydmorenoc <AT> unal <DOT> edu <DOT> co>
AuthorDate: Tue Dec 24 20:53:49 2024 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Fri Jan 10 16:43:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0a107e8

media-gfx/freecad: new revision 1.0.0-r3

assembly use flag and dependencies added

Signed-off-by: David Moreno <ydmorenoc <AT> unal.edu.co>
Closes: https://github.com/gentoo/gentoo/pull/39744
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 .../{freecad-9999.ebuild => freecad-1.0.0-r3.ebuild}     | 16 +++++++++++-----
 media-gfx/freecad/freecad-9999.ebuild                    | 14 ++++++++++----
 media-gfx/freecad/metadata.xml                           |  4 ++++
 3 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/media-gfx/freecad/freecad-9999.ebuild 
b/media-gfx/freecad/freecad-1.0.0-r3.ebuild
similarity index 94%
copy from media-gfx/freecad/freecad-9999.ebuild
copy to media-gfx/freecad/freecad-1.0.0-r3.ebuild
index 62ffcbe957a1..d90bcdea5bf9 100644
--- a/media-gfx/freecad/freecad-9999.ebuild
+++ b/media-gfx/freecad/freecad-1.0.0-r3.ebuild
@@ -26,17 +26,18 @@ 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 netgen pcl smesh spacenav test X"
+IUSE="debug designer +gui netgen pcl +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 bim cam cloud fem idf inspection mesh openscad points reverse 
robot surface +techdraw"
+IUSE+=" addonmgr assembly +bim cam cloud fem idf inspection +mesh openscad 
points reverse robot surface +techdraw"
 
 REQUIRED_USE="
        ${PYTHON_REQUIRED_USE}
        bim? ( mesh )
        cam? ( mesh )
+       gui? ( bim )
        designer? ( gui )
        fem? ( smesh )
        inspection? ( points )
@@ -45,6 +46,7 @@ REQUIRED_USE="
        reverse? ( mesh points )
        test? ( techdraw )
 "
+# Draft Workbench needs BIM
 
 RESTRICT="!test? ( test )"
 
@@ -64,6 +66,7 @@ RDEPEND="
                dev-python/pybind11[${PYTHON_USEDEP}]
                dev-python/pyyaml[${PYTHON_USEDEP}]
        ')
+       assembly? ( sci-libs/ondselsolver )
        cloud? (
                dev-libs/openssl:=
                net-misc/curl
@@ -106,7 +109,7 @@ BDEPEND="
 "
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-9999-Gentoo-specific-don-t-check-vcs.patch
+       "${FILESDIR}"/${PN}-1.0.0-r1-Gentoo-specific-don-t-check-vcs.patch
        
"${FILESDIR}"/${PN}-0.21.0-0001-Gentoo-specific-disable-ccache-usage.patch
        
"${FILESDIR}"/${PN}-9999-tests-src-Qt-only-build-test-for-BUILD_GUI-ON.patch
 )
@@ -146,12 +149,12 @@ src_configure() {
 
                # Modules
                -DBUILD_ADDONMGR=$(usex addonmgr)
-               -DBUILD_ASSEMBLY=OFF                                    # 
Requires OndselSolver
+               -DBUILD_ASSEMBLY=$(usex assembly)
                -DBUILD_BIM=$(usex bim)
                -DBUILD_CAM=$(usex cam)
                -DBUILD_CLOUD=$(usex cloud)
                -DBUILD_DRAFT=ON
-               -DBUILD_DRAWING=OFF                                             
# Unmaintained and not ported to Qt 6
+               # see below for DRAWING
                -DBUILD_FEM=$(usex fem)
                -DBUILD_FEM_NETGEN=$(usex fem $(usex netgen))
                -DBUILD_FLAT_MESH=$(usex mesh)                  # a submodule 
of MeshPart
@@ -189,6 +192,7 @@ src_configure() {
 
                -DFREECAD_BUILD_DEBIAN=OFF
 
+               -DFREECAD_USE_EXTERNAL_ONDSELSOLVER=$(usex assembly)
                -DFREECAD_USE_EXTERNAL_SMESH=OFF                # no package in 
Gentoo
                -DFREECAD_USE_EXTERNAL_ZIPIOS=OFF               # doesn't work 
yet, also no package in Gentoo tree
                -DFREECAD_USE_FREETYPE=ON
@@ -228,6 +232,8 @@ src_configure() {
                        -DQt6Core_MOC_EXECUTABLE="$(qt6_get_bindir)/moc"
                        -DQt6Core_RCC_EXECUTABLE="$(qt6_get_bindir)/rcc"
                        -DBUILD_QT5=OFF
+                       # Drawing module unmaintained and not ported to qt6
+                       -DBUILD_DRAWING=OFF
                )
        fi
 

diff --git a/media-gfx/freecad/freecad-9999.ebuild 
b/media-gfx/freecad/freecad-9999.ebuild
index 62ffcbe957a1..ed5c07ceb995 100644
--- a/media-gfx/freecad/freecad-9999.ebuild
+++ b/media-gfx/freecad/freecad-9999.ebuild
@@ -26,17 +26,18 @@ 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 netgen pcl smesh spacenav test X"
+IUSE="debug designer +gui netgen pcl +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 bim cam cloud fem idf inspection mesh openscad points reverse 
robot surface +techdraw"
+IUSE+=" addonmgr assembly +bim cam cloud fem idf inspection +mesh openscad 
points reverse robot surface +techdraw"
 
 REQUIRED_USE="
        ${PYTHON_REQUIRED_USE}
        bim? ( mesh )
        cam? ( mesh )
+       gui? ( bim )
        designer? ( gui )
        fem? ( smesh )
        inspection? ( points )
@@ -45,6 +46,7 @@ REQUIRED_USE="
        reverse? ( mesh points )
        test? ( techdraw )
 "
+# Draft Workbench needs BIM
 
 RESTRICT="!test? ( test )"
 
@@ -64,6 +66,7 @@ RDEPEND="
                dev-python/pybind11[${PYTHON_USEDEP}]
                dev-python/pyyaml[${PYTHON_USEDEP}]
        ')
+       assembly? ( sci-libs/ondselsolver )
        cloud? (
                dev-libs/openssl:=
                net-misc/curl
@@ -146,12 +149,12 @@ src_configure() {
 
                # Modules
                -DBUILD_ADDONMGR=$(usex addonmgr)
-               -DBUILD_ASSEMBLY=OFF                                    # 
Requires OndselSolver
+               -DBUILD_ASSEMBLY=$(usex assembly)
                -DBUILD_BIM=$(usex bim)
                -DBUILD_CAM=$(usex cam)
                -DBUILD_CLOUD=$(usex cloud)
                -DBUILD_DRAFT=ON
-               -DBUILD_DRAWING=OFF                                             
# Unmaintained and not ported to Qt 6
+               # see below for DRAWING
                -DBUILD_FEM=$(usex fem)
                -DBUILD_FEM_NETGEN=$(usex fem $(usex netgen))
                -DBUILD_FLAT_MESH=$(usex mesh)                  # a submodule 
of MeshPart
@@ -189,6 +192,7 @@ src_configure() {
 
                -DFREECAD_BUILD_DEBIAN=OFF
 
+               -DFREECAD_USE_EXTERNAL_ONDSELSOLVER=$(usex assembly)
                -DFREECAD_USE_EXTERNAL_SMESH=OFF                # no package in 
Gentoo
                -DFREECAD_USE_EXTERNAL_ZIPIOS=OFF               # doesn't work 
yet, also no package in Gentoo tree
                -DFREECAD_USE_FREETYPE=ON
@@ -228,6 +232,8 @@ src_configure() {
                        -DQt6Core_MOC_EXECUTABLE="$(qt6_get_bindir)/moc"
                        -DQt6Core_RCC_EXECUTABLE="$(qt6_get_bindir)/rcc"
                        -DBUILD_QT5=OFF
+                       # Drawing module unmaintained and not ported to qt6
+                       -DBUILD_DRAWING=OFF
                )
        fi
 

diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml
index 35a605b4e6ef..7cc8bc2a327b 100644
--- a/media-gfx/freecad/metadata.xml
+++ b/media-gfx/freecad/metadata.xml
@@ -14,6 +14,10 @@
                        Build the addon manager module for automatic handling 
of 3rd 
                        party addons
                </flag>
+               <flag name="assembly">
+                       Build the assembly module to create 3D models composed 
of several
+                       distinguishable parts as a conformed machine.
+               </flag>
                <flag name="bim">
                        Build the BIM module and workbench
                </flag>

Reply via email to