all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: add kicad
@ 2016-02-15  7:40 Danny Milosavljevic
  2016-02-15 11:35 ` Ben Woodcroft
  2016-05-23  4:13 ` Leo Famulari
  0 siblings, 2 replies; 17+ messages in thread
From: Danny Milosavljevic @ 2016-02-15  7:40 UTC (permalink / raw)
  To: guix-devel

Hi,

this patch adds kicad, an electronics design automation tool, to "engineering.scm".

What do I do with the optional stuff like scripting etc? Is there something like Gentoo USE flags?

Also, for this to work, wxwidgets.scm needs a 4 character patch. Do I add this here as well?
 
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index ba11f52..5c3440c 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -27,6 +27,7 @@
   #:use-module (guix utils)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system cmake)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
@@ -48,8 +49,10 @@
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages texlive)
+  #:use-module (gnu packages tls)
   #:use-module (srfi srfi-1))
 
 (define-public librecad
@@ -106,6 +109,53 @@
 plans and designs.")
     (license license:gpl2)))
 
+(define-public kicad
+ (package
+   (name "kicad")
+   (version "4.0.2")
+   (source (origin
+              (method url-fetch)
+              (uri (string-append
+                   "https://launchpad.net/kicad/4.0/kicad-"
+                   version
+                   "/+download/kicad-"
+                   version
+                   ".tar.xz"))
+              (sha256
+               (base32
+                "1fcf91fmxj6ha3mm6gzdb0px50j58m80p8wrncm8ca9shj36kbif"))))
+   (build-system cmake-build-system)
+   (arguments
+    '(#:tests? #f ; TODO re-enable
+      #:configure-flags
+     (list "-DKICAD_SKIP_BOOST=ON" ; use system boost; otherwise, it tries to download one and fails.
+     ; TODO -DCMAKE_BUILD_TYPE=Release
+     ; TODO -DOPENSSL_ROOT_DIR=...
+     ; TODO -DCMAKE_PREFIX_PATH=...
+     ; TODO -DCMAKE_INSTALL_PREFIX=...
+     ; TODO -DDEFAULT_INSTALL_PATH=...
+     ; TODO -DKICAD_SCRIPTING=ON
+     ; TODO -DKICAD_SCRIPTING_MODULES=ON
+     ; TODO -DKICAD_SCRIPTING_WXPYTHON=ON
+     )))
+   ; TODO optional doxygen for source docs
+   (native-inputs
+     `())
+   (inputs
+     `(("wxwidgets" ,wxwidgets)
+       ("mesa" ,mesa)
+       ("glew" ,glew)
+       ("cairo" ,cairo)
+       ("libressl" ,libressl)
+       ("boost" ,boost)))
+   (home-page "http://kicad-pcb.org/")
+   (synopsis "Electronics Design Automation Suite")
+   (description "Electronics Design Automation Suite")
+   (license license:gpl3+)))
+
+; TODO extra options for Python (which) and for version.
+; TODO kicad-doc, kicad-library, kicad-footprints
+
 (define-public geda-gaf
   (package
     (name "geda-gaf")

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

end of thread, other threads:[~2016-09-30  7:10 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15  7:40 [PATCH] gnu: add kicad Danny Milosavljevic
2016-02-15 11:35 ` Ben Woodcroft
2016-05-23  4:13 ` Leo Famulari
2016-07-07  0:22   ` Stuck on KiCad dependency wxPython Leo Famulari
2016-07-07  6:31     ` Efraim Flashner
2016-07-08  0:51       ` Leo Famulari
2016-07-08 10:15         ` Ricardo Wurmus
2016-07-12  9:24           ` Ludovic Courtès
2016-09-22  8:27         ` Danny Milosavljevic
2016-09-22  8:45           ` Danny Milosavljevic
2016-09-22  9:26             ` python-build-system: Allow build flags Danny Milosavljevic
2016-09-22 10:43             ` [PATCH] guix: python-build-system: Honor configure-flags also when building Danny Milosavljevic
2016-09-22  9:10           ` Stuck on KiCad dependency wxPython Danny Milosavljevic
2016-09-30  0:51             ` Theodoros Foradis
2016-09-30  7:09               ` Danny Milosavljevic
2016-08-03 23:54   ` [PATCH] gnu: add kicad Danny Milosavljevic
2016-08-04  8:31     ` Andreas Enge

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.