From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH v3 3/3] gnu: Add kicad. Date: Sat, 29 Oct 2016 20:18:38 -0400 Message-ID: <20161030001838.GB15871@jasmine> References: <20161025160907.30181-1-theodoros.for@openmailbox.org> <20161025170001.2717-1-theodoros.for@openmailbox.org> <20161025170001.2717-4-theodoros.for@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0dpk-0004TJ-4J for guix-devel@gnu.org; Sat, 29 Oct 2016 20:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0dpg-0000Bg-Tx for guix-devel@gnu.org; Sat, 29 Oct 2016 20:18:44 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34124) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0dpg-0000BY-Q9 for guix-devel@gnu.org; Sat, 29 Oct 2016 20:18:40 -0400 Content-Disposition: inline In-Reply-To: <20161025170001.2717-4-theodoros.for@openmailbox.org> 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" To: Theodoros Foradis Cc: guix-devel@gnu.org On Tue, Oct 25, 2016 at 08:00:01PM +0300, Theodoros Foradis wrote: > * gnu/packages/engineering.scm (kicad): New variable. Looks pretty good to me. Below are some things I would investigate and potentially fix on my own before pushing to Savannah; no need to send a new patch. Now we are just waiting to learn more about python2-wxpython... > +;; We use kicad from a git commit, because support for boost 1.61.0 > +;; has been recently added. > +(define-public kicad > + (let ((commit "4ee344e150bfaf3a6f3f7bf935fb96ae07c423fa") > + (revision "1")) > + (package > + (name "kicad") > + (version (string-append "4.0-" revision "." > + (string-take commit 7))) > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://git.launchpad.net/kicad.git") Please use the correct URL here :) > + #:configure-flags > + (list "-DKICAD_STABLE_VERSION=ON" > + "-DKICAD_REPO_NAME=stable" > + "-DKICAD_BUILD_VERSION=4.0" If possible, we should use our package's version string here. We aren't really packaging KiCad 4.0, but rather 4.0 plus some extra Git commits, right? > + "-DCMAKE_BUILD_TYPE=Release" > + "-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 explicitely, 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-3.0") > + "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE" > + "-DBUILD_GITHUB_PLUGIN=OFF") I would try building with this on. Does it require some unpackaged dependencies?