From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: add kicad Date: Mon, 15 Feb 2016 08:40:46 +0100 Message-ID: <20160215084046.62d5307a@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVDmB-0008BU-Ns for guix-devel@gnu.org; Mon, 15 Feb 2016 02:40:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVDm8-0000lp-Fc for guix-devel@gnu.org; Mon, 15 Feb 2016 02:40:55 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:37193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVDm8-0000kx-88 for guix-devel@gnu.org; Mon, 15 Feb 2016 02:40:52 -0500 Received: from localhost (77.119.128.187.wireless.dyn.drei.com [77.119.128.187]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 0CE6C1CA0C85 for ; Mon, 15 Feb 2016 08:40:49 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org 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")