all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38052] Update kicad
@ 2019-11-03 22:34 Arun Isaac
  2019-11-04 11:24 ` [bug#38052] [PATCH 1/3] gnu: Add python-wxpython Arun Isaac
  2019-11-05 10:03 ` [bug#38052] Update kicad Danny Milosavljevic
  0 siblings, 2 replies; 6+ messages in thread
From: Arun Isaac @ 2019-11-03 22:34 UTC (permalink / raw)
  To: 38052

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]


This patchset updates KiCad and moves it to the new "Phoenix" version of
wxpython.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#38052] [PATCH 1/3] gnu: Add python-wxpython.
  2019-11-03 22:34 [bug#38052] Update kicad Arun Isaac
@ 2019-11-04 11:24 ` Arun Isaac
  2019-11-04 11:24   ` [bug#38052] [PATCH 2/3] gnu: kicad: Update to 5.1.4 Arun Isaac
  2019-11-04 11:24   ` [bug#38052] [PATCH 3/3] gnu: kicad-symbols: " Arun Isaac
  2019-11-05 10:03 ` [bug#38052] Update kicad Danny Milosavljevic
  1 sibling, 2 replies; 6+ messages in thread
From: Arun Isaac @ 2019-11-04 11:24 UTC (permalink / raw)
  To: 38052; +Cc: Arun Isaac

* gnu/packages/wxwidgets.scm (python-wxpython): New variable.
---
 gnu/packages/wxwidgets.scm | 62 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/gnu/packages/wxwidgets.scm b/gnu/packages/wxwidgets.scm
index caa0ad2372..48e6c31f6c 100644
--- a/gnu/packages/wxwidgets.scm
+++ b/gnu/packages/wxwidgets.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -42,6 +43,7 @@
   #:use-module (gnu packages video)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages webkit)
   #:use-module (gnu packages xorg)
@@ -165,6 +167,66 @@ and many other languages.")
                         (package-inputs wxwidgets-3.1))))
            (name "wxwidgets-gtk2")))
 
+(define-public python-wxpython
+  (package
+    (name "python-wxpython")
+    (version "4.0.7.post1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "wxPython" version))
+       (sha256
+        (base32
+         "1jppcr3n428m8pgwb9q3g0iiqydxd451ncri4njk8b53xsiflhys"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Remove bundled wxwidgets
+           (delete-file-recursively "ext/wxWidgets")
+           #t))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "WXWIN" (assoc-ref inputs "wxwidgets"))
+             ;; Copy the waf executable to the source directory since it needs
+             ;; to be in a writable directory.
+             (copy-file (string-append (assoc-ref inputs "python-waf") "/bin/waf")
+                        "bin/waf")
+             (setenv "WAF" "bin/waf")
+             ;; The build script tries to copy license files from the
+             ;; wxwidgets source tree. Prevent it.
+             (substitute* "wscript"
+               (("updateLicenseFiles\\(cfg\\)" all)
+                (string-append "#" all)))
+             ;; The build script tries to write to demo/version.py. So, we set
+             ;; correct write permissions.
+             (chmod "demo/version.py" #o644)
+             ;; Build only the python bindings, not wxwidgets also.
+             (substitute* "setup.py"
+               (("'build']") "'build_py', '--use_syswx']"))
+             #t)))))
+    (inputs
+     `(("gtk+" ,gtk+)
+       ("wxwidgets" ,wxwidgets)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("python-waf" ,python-waf)))
+    (propagated-inputs
+     `(("python-numpy" ,python-numpy)
+       ("python-pillow" ,python-pillow)
+       ("python-six" ,python-six)))
+    (home-page "http://wxPython.org/")
+    (synopsis "Cross platform GUI toolkit for Python")
+    (description "wxPython is a cross-platform GUI toolkit for the Python
+programming language.  It is implemented as a set of Python extension modules
+that wrap the GUI components of the popular wxWidgets cross platform C++
+library.  In most cases, wxPython uses the native widgets on each platform to
+provide a 100% native look and feel for the application.")
+    (license l:wxwindows3.1+)))
+
 (define-public python2-wxpython
   (package
     (name "python2-wxpython")
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#38052] [PATCH 2/3] gnu: kicad: Update to 5.1.4.
  2019-11-04 11:24 ` [bug#38052] [PATCH 1/3] gnu: Add python-wxpython Arun Isaac
@ 2019-11-04 11:24   ` Arun Isaac
  2019-11-04 11:24   ` [bug#38052] [PATCH 3/3] gnu: kicad-symbols: " Arun Isaac
  1 sibling, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2019-11-04 11:24 UTC (permalink / raw)
  To: 38052; +Cc: Arun Isaac

* gnu/packages/engineering.scm (kicad): Update to 5.1.4.
[arguments]: Remove unrecognized flags and flags that are redundant because
they specify default values. Use python 3 and the "Phoenix" version of
wxPython. Enable the GitHub plugin for pcbnew. Remove adjust-boost-include
phase.
[inputs]: Replace python-2 with python, wxwidgets-gtk2 with wxwidgets and
python2-wxpython with python-wxpython.
---
 gnu/packages/engineering.scm | 41 +++++++++---------------------------
 1 file changed, 10 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index d1626f0342..2c5ae53317 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -767,48 +767,27 @@ language.")
 (define-public kicad
     (package
       (name "kicad")
-      (version "5.0.2")
+      (version "5.1.4")
       (source
        (origin
          (method url-fetch)
          (file-name (string-append name "-" version ".tar.xz"))
          (uri (string-append
-                "https://launchpad.net/kicad/" (version-major+minor version)
-                "/" version "/+download/kicad-" version ".tar.xz"))
+                "https://launchpad.net/kicad/" (version-major version)
+                ".0/" version "/+download/kicad-" version ".tar.xz"))
          (sha256
-          (base32 "10605rr10x0353n6yk2z095ydnkd1i6j1ncbq64pfxdn5vkhcd1g"))))
+          (base32 "1r60dgh6aalbpq1wsmpyxkz0nn4ck8ydfdjcrblpl69k5rks5k2j"))))
       (build-system cmake-build-system)
       (arguments
        `(#:out-of-source? #t
          #:tests? #f ; no tests
          #:build-type "Release"
          #:configure-flags
-         (list "-DKICAD_STABLE_VERSION=ON"
-               "-DKICAD_REPO_NAME=stable"
-               "-DKICAD_SKIP_BOOST=ON"; Use our system's boost library.
-               "-DKICAD_SCRIPTING=ON"
-               "-DKICAD_SCRIPTING_MODULES=ON"
-               "-DKICAD_SCRIPTING_WXPYTHON=ON"
-               ;; Has to be set explicitly, as we don't have the wxPython
-               ;; headers in the wxwidgets store item, but in wxPython.
-               (string-append "-DCMAKE_CXX_FLAGS=-I"
-                              (assoc-ref %build-inputs "wxpython")
-                              "/include/wx-"
-                             ,(version-major+minor
-                                (package-version python2-wxpython)))
-               "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
-               "-DKICAD_SPICE=TRUE"
-               ;; TODO: Enable this when CA certs are working with curl.
-               "-DBUILD_GITHUB_PLUGIN=OFF")
+         (list "-DKICAD_SCRIPTING_PYTHON3=ON"
+               "-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON"
+               "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
          #:phases
          (modify-phases %standard-phases
-           (add-after 'unpack 'adjust-boost-include
-             (lambda _
-               ;; The location of this header changed in Boost 1.66.
-               (substitute* "3d-viewer/3d_cache/3d_cache.cpp"
-                 (("boost/uuid/sha1\\.hpp")
-                  "boost/uuid/detail/sha1.hpp"))
-               #t))
            (add-after 'install 'wrap-program
              ;; Ensure correct Python at runtime.
              (lambda* (#:key inputs outputs #:allow-other-keys)
@@ -845,9 +824,9 @@ language.")
          ("mesa" ,mesa)
          ("opencascade-oce" ,opencascade-oce)
          ("openssl" ,openssl)
-         ("python" ,python-2)
-         ("wxwidgets" ,wxwidgets-gtk2)
-         ("wxpython" ,python2-wxpython)))
+         ("python" ,python)
+         ("wxwidgets" ,wxwidgets)
+         ("wxpython" ,python-wxpython)))
       (home-page "http://kicad-pcb.org/")
       (synopsis "Electronics Design Automation Suite")
       (description "Kicad is a program for the formation of printed circuit
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#38052] [PATCH 3/3] gnu: kicad-symbols: Update to 5.1.4.
  2019-11-04 11:24 ` [bug#38052] [PATCH 1/3] gnu: Add python-wxpython Arun Isaac
  2019-11-04 11:24   ` [bug#38052] [PATCH 2/3] gnu: kicad: Update to 5.1.4 Arun Isaac
@ 2019-11-04 11:24   ` Arun Isaac
  1 sibling, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2019-11-04 11:24 UTC (permalink / raw)
  To: 38052; +Cc: Arun Isaac

* gnu/packages/engineering.scm (kicad-symbols): Update to 5.1.4.
---
 gnu/packages/engineering.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 2c5ae53317..17d959b870 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -900,7 +900,7 @@ render model libraries.")
 (define-public kicad-symbols
   (package
     (name "kicad-symbols")
-    (version "5.0.2")
+    (version "5.1.4")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -909,7 +909,7 @@ render model libraries.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1rjh2pjcrc3bhcgyyskj5pssm7vffrjk0ymwr70fb7sjpmk96yjk"))))
+                "1lna4xlvzrxif3569pkp6mrg7fj62z3a3ri5j97lnmnnzhiddnh3"))))
     (build-system cmake-build-system)
     (arguments
      `(#:tests? #f)) ; No tests exist
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#38052] Update kicad
  2019-11-03 22:34 [bug#38052] Update kicad Arun Isaac
  2019-11-04 11:24 ` [bug#38052] [PATCH 1/3] gnu: Add python-wxpython Arun Isaac
@ 2019-11-05 10:03 ` Danny Milosavljevic
  2019-11-18 18:20   ` Arun Isaac
  1 sibling, 1 reply; 6+ messages in thread
From: Danny Milosavljevic @ 2019-11-05 10:03 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 38052

[-- Attachment #1: Type: text/plain, Size: 7 bytes --]

LGTM!

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#38052] Update kicad
  2019-11-05 10:03 ` [bug#38052] Update kicad Danny Milosavljevic
@ 2019-11-18 18:20   ` Arun Isaac
  0 siblings, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2019-11-18 18:20 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 38052, ludo

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]


> LGTM!

I pushed these patches long back (on November 5). Sorry I forgot to
reply back and close this bug report.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-11-18 18:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-03 22:34 [bug#38052] Update kicad Arun Isaac
2019-11-04 11:24 ` [bug#38052] [PATCH 1/3] gnu: Add python-wxpython Arun Isaac
2019-11-04 11:24   ` [bug#38052] [PATCH 2/3] gnu: kicad: Update to 5.1.4 Arun Isaac
2019-11-04 11:24   ` [bug#38052] [PATCH 3/3] gnu: kicad-symbols: " Arun Isaac
2019-11-05 10:03 ` [bug#38052] Update kicad Danny Milosavljevic
2019-11-18 18:20   ` Arun Isaac

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.