From patchwork Fri Jan 28 10:11:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 36853 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 41F4827BBE9; Fri, 28 Jan 2022 10:12:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5EC6527BBEA for ; Fri, 28 Jan 2022 10:12:25 +0000 (GMT) Received: from localhost ([::1]:33004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDOEy-0002QW-Io for patchwork@mira.cbaines.net; Fri, 28 Jan 2022 05:12:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDOEc-0002QK-MG for guix-patches@gnu.org; Fri, 28 Jan 2022 05:12:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDOEc-0005YO-8g for guix-patches@gnu.org; Fri, 28 Jan 2022 05:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nDOEc-00039o-4H for guix-patches@gnu.org; Fri, 28 Jan 2022 05:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53149] [PATCH v2 1/3] gnu: opencascade-occt: Update to 7.6.0. References: <19pc1sQZe7q77dBcvmMFNJ3D1N3AZxoRrMmkEg03_fFRK_E67EDc8aCaJNmfvr1pAjyQ8uxVyJugXe3SZFFBD5367YWTYLnqvoSGCRVs9mw=@protonmail.com> In-Reply-To: <19pc1sQZe7q77dBcvmMFNJ3D1N3AZxoRrMmkEg03_fFRK_E67EDc8aCaJNmfvr1pAjyQ8uxVyJugXe3SZFFBD5367YWTYLnqvoSGCRVs9mw=@protonmail.com> Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Jan 2022 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "53149@debbugs.gnu.org" <53149@debbugs.gnu.org> Received: via spool by 53149-submit@debbugs.gnu.org id=B53149.164336470212101 (code B ref 53149); Fri, 28 Jan 2022 10:12:02 +0000 Received: (at 53149) by debbugs.gnu.org; 28 Jan 2022 10:11:42 +0000 Received: from localhost ([127.0.0.1]:57497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDOEH-000397-Db for submit@debbugs.gnu.org; Fri, 28 Jan 2022 05:11:42 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:15659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDOEF-00038p-1c for 53149@debbugs.gnu.org; Fri, 28 Jan 2022 05:11:40 -0500 Date: Fri, 28 Jan 2022 10:11:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643364691; bh=qqHvs0KJW+9raHBq/HiYkZrdb4e0snzePxEqCpocXqk=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=uf3MqkGsUjj1NZW+4pbTruDtXVkN74FQ6VhglF9Y8Lt/5/P+Op7fpq8g1bZUMwoIh v6tqeqLc/RsdmPOjEMoQYBrDPNC1AZRsGDn6bhzN2dzkV/tF5AcrtIoDl5XHuWpvdq vP9KbtcRy/QaLiLq3wnigASUwmLCUPSPb9k7Xlx5wE7KhUYGxu6Qyzn+qEOZvjya1B V8z+nmq4KslmpvTMdsHm30yB9feKSBUiV+bJMrTXA9QyAJARcTn3Gnf49TfsEyTCwm BP3qBEucV5TzRhaokITv7XMb4EqbO/Wqat8/ybtwUsT8OU34pbLIe0Nr9UXbZhGxkV TNocrRNZm33Bg== Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi Leo, My apology for late reply. Yes, here are the updated patches. Kicad is updated to 6.0.1 and I ran also guix style on the package. ---- Petr From 64195144def5a3dfdd593494523dd44df39be6f0 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 9 Jan 2022 23:04:57 +0100 Subject: [PATCH v2 2/3] gnu: kicad: Update to 6.0.1. * gnu/packages/engineering.scm (kicad): Update to 6.0.1. Applied guix style command. [native-inputs]: Remove kicad-i18n. Use new syntax. [inputs]: Add bash-minimal, gtk+ and use opencascade-occt instead of opencascade-oce. Use new syntax. [arguments]: Remove phase install-translations. diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 23133a50eb..e51d16c0ab 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -25,7 +25,7 @@ ;;; Copyright © 2021 Gerd Heber ;;; Copyright © 2021, 2022 Guillaume Le Vaillant ;;; Copyright © 2021 Ivan Gankevich -;;; Copyright © 2021 Petr Hodina +;;; Copyright © 2021, 2022 Petr Hodina ;;; Copyright © 2021 Foo Chuan Wei ;;; ;;; This file is part of GNU Guix. @@ -64,6 +64,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages bdw-gc) #:use-module (gnu packages bison) #:use-module (gnu packages boost) @@ -925,37 +926,41 @@ (define-public inspekt3d (define-public kicad (package (name "kicad") - (version "5.1.12") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://gitlab.com/kicad/code/kicad.git") - (commit version))) - (sha256 - (base32 "0kgikchqxds3mp71nkg307mr4c1dgv8akbmksz4w9x8jg4i1mfqq")) - (file-name (git-file-name name version)))) + (version "6.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/kicad/code/kicad.git") + (commit version))) + (sha256 + (base32 + "1vpcbhhw8844hm6vpk3kk405wak531pvcvcpc66z0b48iprk3imr")) + (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments `(#:out-of-source? #t - #:tests? #f ; no tests - #:build-type "Release" + #:tests? + #f ;no tests + #:build-type + "Release" #:configure-flags - ,#~(list - "-DKICAD_SCRIPTING_PYTHON3=ON" - "-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON" - "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE" - (string-append "-DOCC_INCLUDE_DIR=" - #$(this-package-input "opencascade-occt") "/include/opencascade")) + (list "-DKICAD_SCRIPTING_PYTHON3=ON" + (string-append "-DOCC_INCLUDE_DIR=" + (assoc-ref %build-inputs "opencascade-occt") + "/include/opencascade") + "-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON" + "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-ngspice-detection (lambda* (#:key inputs #:allow-other-keys) (substitute* "eeschema/CMakeLists.txt" - (("NGSPICE_DLL_FILE=\"\\$\\{NGSPICE_DLL_FILE\\}\"") - (string-append "NGSPICE_DLL_FILE=\"" - (assoc-ref inputs "libngspice") - "/lib/libngspice.so\""))))) + (("NGSPICE_DLL_FILE=\"\\$\\{NGSPICE_DLL_FILE\\}\"") (string-append + "NGSPICE_DLL_FILE=\"" + (assoc-ref + inputs + "libngspice") + "/lib/libngspice.so\""))))) (add-after 'unpack 'fix-python-detection (lambda _ (substitute* "CMakeModules/FindPythonLibs.cmake" @@ -964,72 +969,67 @@ (define-public kicad (add-after 'unpack 'add-missing-include (lambda _ (substitute* "common/lib_tree_model.cpp" - (("#include " all) - (string-append "#include \n" all))))) - (add-after 'install 'install-translations - (lambda* (#:key inputs outputs #:allow-other-keys) - (copy-recursively (assoc-ref inputs "kicad-i18n") - (assoc-ref outputs "out")) - #t)) + (("#include " all) (string-append + "#include +" + all))))) (add-after 'install 'wrap-program ;; Ensure correct Python at runtime. (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (python (assoc-ref inputs "python")) + (let* ((out (assoc-ref outputs "out")) (python (assoc-ref inputs + "python")) (file (string-append out "/bin/kicad")) - (path (string-append - out - "/lib/python" - ,(version-major+minor - (package-version python)) - "/site-packages:" - (getenv "GUIX_PYTHONPATH")))) + (path (string-append out "/lib/python" + ,(version-major+minor (package-version + python)) + "/site-packages:" + (getenv "GUIX_PYTHONPATH")))) (wrap-program file - `("GUIX_PYTHONPATH" ":" prefix (,path)) - `("PATH" ":" prefix - (,(string-append python "/bin:"))))) - #t))))) + `("GUIX_PYTHONPATH" ":" prefix + (,path)) + `("PATH" ":" prefix + (,(string-append python "/bin:"))))) #t))))) (native-search-paths (list (search-path-specification - (variable "KICAD") ; to find kicad-doc + (variable "KICAD") ;to find kicad-doc (files '(""))) (search-path-specification (variable "KICAD_TEMPLATE_DIR") (files '("share/kicad/template"))) (search-path-specification - (variable "KICAD_SYMBOL_DIR") ; symbol path + (variable "KICAD_SYMBOL_DIR") ;symbol path (files '("share/kicad/library"))) (search-path-specification - (variable "KISYSMOD") ; footprint path + (variable "KISYSMOD") ;footprint path (files '("share/kicad/modules"))) (search-path-specification - (variable "KISYS3DMOD") ; 3D model path + (variable "KISYS3DMOD") ;3D model path (files '("share/kicad/modules/packages3d"))))) - (native-inputs - `(("boost" ,boost) - ("desktop-file-utils" ,desktop-file-utils) - ("gettext" ,gettext-minimal) - ("kicad-i18n" ,kicad-i18n) - ("pkg-config" ,pkg-config) - ("swig" ,swig) - ("zlib" ,zlib))) - (inputs - `(("cairo" ,cairo) - ("curl" ,curl) - ("glew" ,glew) - ("glm" ,glm) - ("hicolor-icon-theme" ,hicolor-icon-theme) - ("libngspice" ,libngspice) - ("libsm" ,libsm) - ("mesa" ,mesa) - ("opencascade-occt" ,opencascade-occt) - ("openssl" ,openssl) - ("python" ,python-wrapper) - ("wxwidgets" ,wxwidgets) - ("wxpython" ,python-wxpython))) + (native-inputs (list boost + desktop-file-utils + gettext-minimal + pkg-config + swig + zlib)) + (inputs (list bash-minimal + cairo + curl + glew + glm + hicolor-icon-theme + libngspice + libsm + mesa + opencascade-occt + openssl + python-wrapper + gtk+ + wxwidgets + python-wxpython)) (home-page "https://www.kicad.org/") (synopsis "Electronics Design Automation Suite") - (description "Kicad is a program for the formation of printed circuit + (description + "Kicad is a program for the formation of printed circuit boards and electrical circuits. The software has a number of programs that perform specific functions, for example, pcbnew (Editing PCB), eeschema (editing electrical diagrams), gerbview (viewing Gerber files) and others.") -- 2.34.0