mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: kicad: Add translations and search paths.
* gnu/packages/engineering.scm (kicad)[arguments]<#:phases>[install-translations]: New phase. [native-search-paths]: Add specification for KICAD_TEMPLATE_DIR, KICAD_SYMBOL_DIR, KISYSMOD and KISYS3DMOD. [native-inputs]: Add desktop-file-utils and kicad-i18l. [inputs]: Remove desktop-file-utils. Replace python by python-wrapper. (kicad-i18l): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
badc3c6783
commit
e7075353e0
1 changed files with 113 additions and 66 deletions
|
@ -794,6 +794,7 @@ language.")
|
||||||
(define-public ao
|
(define-public ao
|
||||||
(deprecated-package "ao-cad" libfive))
|
(deprecated-package "ao-cad" libfive))
|
||||||
|
|
||||||
|
;; TODO Add doc https://gitlab.com/kicad/services/kicad-doc/-/tree/master
|
||||||
(define-public kicad
|
(define-public kicad
|
||||||
(package
|
(package
|
||||||
(name "kicad")
|
(name "kicad")
|
||||||
|
@ -818,6 +819,11 @@ language.")
|
||||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
|
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-translations
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(copy-recursively (assoc-ref inputs "kicad-i18l")
|
||||||
|
(assoc-ref outputs "out"))
|
||||||
|
#t))
|
||||||
(add-after 'install 'wrap-program
|
(add-after 'install 'wrap-program
|
||||||
;; Ensure correct Python at runtime.
|
;; Ensure correct Python at runtime.
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
@ -836,16 +842,30 @@ language.")
|
||||||
`("PATH" ":" prefix
|
`("PATH" ":" prefix
|
||||||
(,(string-append python "/bin:")))))
|
(,(string-append python "/bin:")))))
|
||||||
#t)))))
|
#t)))))
|
||||||
|
(native-search-paths
|
||||||
|
(list (search-path-specification
|
||||||
|
(variable "KICAD_TEMPLATE_DIR")
|
||||||
|
(files '("share/kicad/template")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "KICAD_SYMBOL_DIR") ; symbol path
|
||||||
|
(files '("share/kicad/library")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "KISYSMOD") ; footprint path
|
||||||
|
(files '("share/kicad/modules")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "KISYS3DMOD") ; 3D model path
|
||||||
|
(files '("share/kicad/modules/packages3d")))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
|
("desktop-file-utils" ,desktop-file-utils)
|
||||||
("gettext" ,gnu-gettext)
|
("gettext" ,gnu-gettext)
|
||||||
|
("kicad-i18l" ,kicad-i18l)
|
||||||
("pkg-config" ,pkg-config)
|
("pkg-config" ,pkg-config)
|
||||||
("swig" ,swig)
|
("swig" ,swig)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("cairo" ,cairo)
|
`(("cairo" ,cairo)
|
||||||
("curl" ,curl)
|
("curl" ,curl)
|
||||||
("desktop-file-utils" ,desktop-file-utils)
|
|
||||||
("glew" ,glew)
|
("glew" ,glew)
|
||||||
("glm" ,glm)
|
("glm" ,glm)
|
||||||
("hicolor-icon-theme" ,hicolor-icon-theme)
|
("hicolor-icon-theme" ,hicolor-icon-theme)
|
||||||
|
@ -854,7 +874,7 @@ language.")
|
||||||
("mesa" ,mesa)
|
("mesa" ,mesa)
|
||||||
("opencascade-oce" ,opencascade-oce)
|
("opencascade-oce" ,opencascade-oce)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
("python" ,python)
|
("python" ,python-wrapper)
|
||||||
("wxwidgets" ,wxwidgets)
|
("wxwidgets" ,wxwidgets)
|
||||||
("wxpython" ,python-wxpython)))
|
("wxpython" ,python-wxpython)))
|
||||||
(home-page "https://kicad-pcb.org/")
|
(home-page "https://kicad-pcb.org/")
|
||||||
|
@ -865,6 +885,33 @@ perform specific functions, for example, pcbnew (Editing PCB), eeschema (editing
|
||||||
electrical diagrams), gerbview (viewing Gerber files) and others.")
|
electrical diagrams), gerbview (viewing Gerber files) and others.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
(define kicad-i18l
|
||||||
|
(package
|
||||||
|
(name "kicad-i18l")
|
||||||
|
(version "5.1.5")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://gitlab.com/kicad/code/kicad-i18n.git")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1rfpifl8vky1gba2angizlb2n7mwmsiai3r6ip6qma60wdj8sbd3"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'build)
|
||||||
|
(delete 'check))))
|
||||||
|
(native-inputs
|
||||||
|
`(("gettext" ,gnu-gettext)))
|
||||||
|
(home-page "https://kicad-pcb.org/")
|
||||||
|
(synopsis "KiCad GUI translations")
|
||||||
|
(description "This package contains the po files that are used for the GUI
|
||||||
|
translations for KiCad.")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public kicad-symbols
|
(define-public kicad-symbols
|
||||||
(package
|
(package
|
||||||
(name "kicad-symbols")
|
(name "kicad-symbols")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue