From e1e59a8a15908747305b629005d63116a1c34f34 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 31 Dec 2020 19:36:14 +0100 Subject: [PATCH 4/4] gnu: freecad correct runtime errors * gnu/packages/engineering.scm (freecad): Update package [inputs]: Move python-pyside-2-tools to native-inputs [inputs]: Add pivy [inputs]: Add qtxmlpatterns [inputs]: Add qtwebkit --- gnu/packages/engineering.scm | 50 ++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index e436994492..f8563085ac 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -36,7 +36,6 @@ ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . - (define-module (gnu packages engineering) #:use-module (guix packages) #:use-module (guix download) @@ -2431,35 +2430,30 @@ full programmatic control over your models.") (home-page "https://www.openscad.org/") (license license:gpl2+))) + (define-public freecad - (package - (name "freecad") - (version "0.18.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/FreeCAD/FreeCAD") - (commit version))) - (modules '((guix build utils))) - (snippet - '(begin - ;; Fix build with Python 3.8, see - ;; . - (substitute* "src/Base/swigpyrun.inl" - (("PyObject \\*modules = interp->modules;") - "PyObject *modules = PyEval_GetBuiltins();")) - #t)) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0r31jzzkamf76l19fb175hhv48irk06fpi8ldxdlr31w8c1ix4aa")))) + (let ((commit-ref "7616153b3c31ace006169cdc2fdafab484498858") + (revision "1")) + (package + (name "freecad") + (version (git-version "0.18.5" revision commit-ref)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/FreeCAD/FreeCAD") + (commit commit-ref))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16965yxnp2pq7nm8z3p0pjkzjdyq62vfrj8j3nk26bwc898czyn2")))) (build-system qt-build-system) (native-inputs `(("doxygen" ,doxygen) ("graphviz" ,graphviz) ("qttools" ,qttools) ("pkg-config" ,pkg-config) + ("python-pyside-2-tools" ,python-pyside-2-tools) ("swig" ,swig))) (inputs `(("boost" ,boost) @@ -2477,16 +2471,15 @@ full programmatic control over your models.") ("opencascade-occt" ,opencascade-occt) ("python-matplotlib" ,python-matplotlib) ("python-pyside-2" ,python-pyside-2) - ("python-pyside-2-tools" ,python-pyside-2-tools) ("python-shiboken-2" ,python-shiboken-2) + ("python-pivy" ,python-pivy) ("python-wrapper" ,python-wrapper) ("qtbase" ,qtbase) ("qtsvg" ,qtsvg) ("qtx11extras" ,qtx11extras) ("qtxmlpatterns" ,qtxmlpatterns) - ;; qtwebkit is optional. We remove it currently, because it takes - ;; much time to compile and substitutes are often unavailable - ;;("qtwebkit" ,qtwebkit) + ("qtwebkit" ,qtwebkit) + ("qtxmlpatterns" ,qtxmlpatterns) ("tbb" ,tbb) ("vtk" ,vtk) ("xerces-c" ,xerces-c) @@ -2546,7 +2539,8 @@ customization.") license:lgpl2.1+ license:lgpl2.0+ license:gpl3+ - license:bsd-3)))) + license:bsd-3))))) + (define-public libmedfile (package -- 2.29.2