GNU bug report logs - #36352
[PATCH] gnu: Add solvespace.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Myles English <mylesenglish@HIDDEN>; Keywords: patch; dated Mon, 24 Jun 2019 12:28:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 36352 <at> debbugs.gnu.org:


Received: (at 36352) by debbugs.gnu.org; 2 Jul 2019 22:31:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 02 18:31:16 2019
Received: from localhost ([127.0.0.1]:48108 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hiRIx-0004gb-Mw
	for submit <at> debbugs.gnu.org; Tue, 02 Jul 2019 18:31:15 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43363)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hiRIw-0004gQ-ER
 for 36352 <at> debbugs.gnu.org; Tue, 02 Jul 2019 18:31:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:57534)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hiRIe-0001ie-Qy; Tue, 02 Jul 2019 18:30:59 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34874 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hiRIc-0007j6-8z; Tue, 02 Jul 2019 18:30:56 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Myles English <mylesenglish@HIDDEN>
Subject: Re: [bug#36352] [PATCH] gnu: Add solvespace.
References: <20190624122710.22874-1-myles@HIDDEN>
Date: Wed, 03 Jul 2019 00:30:52 +0200
In-Reply-To: <20190624122710.22874-1-myles@HIDDEN> (Myles English's message
 of "Mon, 24 Jun 2019 13:27:10 +0100")
Message-ID: <87r2783w83.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36352
Cc: 36352 <at> debbugs.gnu.org, Myles English <myles@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello Myles,

Myles English <mylesenglish@HIDDEN> skribis:

> * gnu/packages/game-development.scm (solvespace): New variable and
> dependencies on gnu package modules.

The patch LGTM overall.  Here are some comments/questions:

> +(define-public solvespace-3
> +  (let ((commit "5df53fc59e7f31e265fabd4c15e6601bd3032833")
> +	(revision "1"))
> +    (package
> +      (name "solvespace")
> +      (version (git-version "3.0" revision commit))


Why choose this commit specifically?  =E2=80=98git describe=E2=80=99 returns
=E2=80=9Cv2.1.rc1-570-g5df53fc=E2=80=9D, and in fact there=E2=80=99s no =E2=
=80=9Cv3.0=E2=80=9D tag, so this
version string is a bit misleading.

The general policy is to use the latest release, but if there=E2=80=99s a
compelling argument, we can use another commit; in that case, it=E2=80=99s
better to have a comment explaining the choice.

> +         (uri (git-reference
> +               (url "https://github.com/solvespace/solvespace.git")
> +               (commit commit)
> +               (recursive? #t)))

Is =E2=80=98recursive?=E2=80=99 needed?  If it=E2=80=99s just for the bundl=
ed dependencies under
extlib/ that are not used anyway, perhaps we can omit it?

> +      (synopsis "Parametric 2D/3D CAD tool")
> +      (description "Parametric 2D/3D computer aided design (CAD) tool and
> +constraint-based parametric modeler with simple mechanical simulation
> +capabilities.")

Could you make it a full sentence and perhaps expound a little bit, as
per <https://gnu.org/s/guix/manual/en/html_node/Synopses-and-Descriptions.h=
tml>?

Thank you, and apologies for the delay!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#36352; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jun 2019 20:35:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 25 16:35:38 2019
Received: from localhost ([127.0.0.1]:33616 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hfsAB-0002KH-Hg
	for submit <at> debbugs.gnu.org; Tue, 25 Jun 2019 16:35:36 -0400
Received: from lists.gnu.org ([209.51.188.17]:57633)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <swedebugia@HIDDEN>) id 1hfsA6-0002K5-Es
 for submit <at> debbugs.gnu.org; Tue, 25 Jun 2019 16:35:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38871)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <swedebugia@HIDDEN>) id 1hfsA3-00047A-LC
 for guix-patches@HIDDEN; Tue, 25 Jun 2019 16:35:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <swedebugia@HIDDEN>) id 1hfs9z-00075U-Gw
 for guix-patches@HIDDEN; Tue, 25 Jun 2019 16:35:25 -0400
Received: from mx1.riseup.net ([198.252.153.129]:40640)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <swedebugia@HIDDEN>)
 id 1hfs9u-0006h5-Nx
 for guix-patches@HIDDEN; Tue, 25 Jun 2019 16:35:19 -0400
Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
 by mx1.riseup.net (Postfix) with ESMTPS id 3B1951A0201
 for <guix-patches@HIDDEN>; Tue, 25 Jun 2019 13:35:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1561494907; bh=Qxg4XRvjjKpKAfGztGxadPDuRbAafhl48omrouIcFko=;
 h=Subject:To:References:From:Date:In-Reply-To:From;
 b=AX+lyzrwCHgMb7s4TX3YDcLdhmkJc3ROTQxe6LV+BQlN8jCxqKEFhA1v2I+9RRhpn
 GUgmQB7VJp7mlbbluXD45sFcaX3PC7Q60Tv0BTdRaDb1+cEWVHUHHg6K+Jdkbt7m+d
 e1ZcLk3Opw2U6JqQeJs5lRxfdHD0MD8rylCGG03E=
X-Riseup-User-ID: DA01071CA24B65FDED37BB754D5142D7FB0A436E5DD615CBB626994E9063621A
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by bell.riseup.net (Postfix) with ESMTPSA id 8DF84222DCE
 for <guix-patches@HIDDEN>; Tue, 25 Jun 2019 13:35:06 -0700 (PDT)
Subject: Re: [bug#36352] [PATCH] gnu: Add solvespace.
To: guix-patches@HIDDEN
References: <20190624122710.22874-1-myles@HIDDEN>
From: swedebugia <swedebugia@HIDDEN>
Message-ID: <f1f038f2-ca4c-cdf7-6059-5df3d398dbc6@HIDDEN>
Date: Tue, 25 Jun 2019 22:35:03 +0200
MIME-Version: 1.0
In-Reply-To: <20190624122710.22874-1-myles@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 198.252.153.129
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

On 2019-06-24 14:27, Myles English wrote:
> * gnu/packages/game-development.scm (solvespace): New variable and
> dependencies on gnu package modules.
> ---
>   gnu/packages/engineering.scm | 70 +++++++++++++++++++++++++++++++++++=
+
>   1 file changed, 70 insertions(+)
>=20
> diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.sc=
m
> index 7d48414889..7fc06a6730 100644
> --- a/gnu/packages/engineering.scm
> +++ b/gnu/packages/engineering.scm
> @@ -11,6 +11,7 @@
>   ;;; Copyright =C2=A9 2018, 2019 Jonathan Brielmaier <jonathan.brielma=
ier@HIDDEN>
>   ;;; Copyright =C2=A9 2018, 2019 Arun Isaac <arunisaac@HIDDEN=
t>
>   ;;; Copyright =C2=A9 2019 Tim Stahel <swedneck@HIDDEN>
> +;;; Copyright =C2=A9 2019 Myles English <myles@HIDDEN>
>   ;;;
>   ;;; This file is part of GNU Guix.
>   ;;;
> @@ -80,6 +81,7 @@
>     #:use-module (gnu packages python-xyz)
>     #:use-module (gnu packages qt)
>     #:use-module (gnu packages readline)
> +  #:use-module (gnu packages serialization)
>     #:use-module (gnu packages swig)
>     #:use-module (gnu packages tcl)
>     #:use-module (gnu packages texinfo)
> @@ -87,6 +89,8 @@
>     #:use-module (gnu packages tex)
>     #:use-module (gnu packages version-control)
>     #:use-module (gnu packages wxwidgets)
> +  #:use-module (gnu packages web)
> +  #:use-module (gnu packages xml)
>     #:use-module (gnu packages xorg))
>  =20
>   (define-public librecad
> @@ -2062,3 +2066,69 @@ purpose circuit simulator and can perform DC and=
 transient analyses, fourier
>   analysis and AC analysis.  The engine is designed to do true mixed-mo=
de
>   simulation.")
>       (license license:gpl3+)))
> +
> +(define-public solvespace-3
> +  (let ((commit "5df53fc59e7f31e265fabd4c15e6601bd3032833")
> +	(revision "1"))
> +    (package
> +      (name "solvespace")
> +      (version (git-version "3.0" revision commit))
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://github.com/solvespace/solvespace.git")
> +               (commit commit)
> +               (recursive? #t)))

A stable release tarball is available on the release page it seems.
https://github.com/solvespace/solvespace/releases

> +         (sha256
> +          (base32
> +           "0kps2rgakdrbm9f6gwkb7za5ikkc4m6y2x162y3c53ixg5snmlr1"))
> +         (file-name (git-file-name name version))
> +         (modules '((guix build utils)))
> +         (snippet
> +          '(begin
> +             ;; delete some recursive submodules in order to use guix =
packages
> +             (delete-file-recursively "extlib/zlib")
> +             (delete-file-recursively "extlib/libpng")
> +             (delete-file-recursively "extlib/freetype")
> +             ;; pixman only needed for tests?
> +             (delete-file-recursively "extlib/pixman")
> +             (delete-file-recursively "extlib/cairo")
> +             (delete-file-recursively "extlib/flatbuffers")
> +             #t))))
> +      (build-system cmake-build-system)
> +      (arguments
> +       `(#:configure-flags
> +         (list "-DCMAKE_BUILD_TYPE=3DRelease"
> +               (string-append
> +                "-DFLATC=3D"
> +                (assoc-ref %build-inputs "flatbuffers") "/bin/flatc"))
> +         #:phases
> +         (modify-phases %standard-phases
> +           (add-after 'unpack 'set-git-commit-hash
> +             (lambda* (#:key inputs #:allow-other-keys)
> +               (substitute* "CMakeLists.txt"
> +                 (("include\\(GetGitCommitHash\\)")
> +                  "#include(GetGitCommitHash)")
> +                 (("\\# set\\(GIT_COMMIT_HASH
> +                                    0000000000000000000000000000000000=
000000\\)")
> +                  (string-append "set(GIT_COMMIT_HASH " ,commit ")"))
> +                 (("message\\(STATUS \\\"Using in-tree flatbuffers\\\"=
\\)")
> +                  "message(STATUS \"Using guix flatbuffers\")")
> +                 (("add_subdirectory\\(extlib/flatbuffers EXCLUDE_FROM=
_ALL\\)")
> +                  "#add_subdirectory(extlib/flatbuffers EXCLUDE_FROM_A=
LL)"))
> +               #t)))))
> +      (native-inputs
> +       `(("pkg-config" ,pkg-config)))
> +      (inputs
> +       `(("git" ,git)
> +         ("json-c" ,json-c)
> +         ("glu" ,glu)
> +         ("gtkmm" ,gtkmm)
> +         ("flatbuffers" ,flatbuffers)))
> +      (home-page "http://solvespace.com")
> +      (synopsis "Parametric 2D/3D CAD tool")
> +      (description "Parametric 2D/3D computer aided design (CAD) tool =
and
> +constraint-based parametric modeler with simple mechanical simulation
> +capabilities.")
> +      (license license:gpl3+))))
>=20

The patch did not apply for some reason.

I did not try to build this package because the recursive checkouts of=20
cairo et al took too much bandwidth. This is another reason to use the=20
tarball instead - less waste of bandwidth.

Could you switch to that?

--=20
Cheers Swedebugia




Information forwarded to guix-patches@HIDDEN:
bug#36352; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2019 12:27:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 24 08:27:31 2019
Received: from localhost ([127.0.0.1]:55745 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hfO4E-0003v0-15
	for submit <at> debbugs.gnu.org; Mon, 24 Jun 2019 08:27:31 -0400
Received: from lists.gnu.org ([209.51.188.17]:40993)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mylesenglish@HIDDEN>) id 1hfO4C-0003ut-F8
 for submit <at> debbugs.gnu.org; Mon, 24 Jun 2019 08:27:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50066)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <mylesenglish@HIDDEN>) id 1hfO4A-0005EZ-Hs
 for guix-patches@HIDDEN; Mon, 24 Jun 2019 08:27:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mylesenglish@HIDDEN>) id 1hfO47-0006eh-H0
 for guix-patches@HIDDEN; Mon, 24 Jun 2019 08:27:22 -0400
Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:54861)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <mylesenglish@HIDDEN>)
 id 1hfO47-0006cM-AV
 for guix-patches@HIDDEN; Mon, 24 Jun 2019 08:27:19 -0400
Received: by mail-wm1-x342.google.com with SMTP id g135so12583770wme.4
 for <guix-patches@HIDDEN>; Mon, 24 Jun 2019 05:27:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=n/1V1H+5JKSDFeQe9codRRC4JBzD9aRvDbeerO9QZVQ=;
 b=kGdLPDTccqFBEhbU3T/M5WyANuhm2NW9zWpVWQ1Wrmt+tGwgKdMf5dGnpyf2rqa7np
 RDb36rEfFHA7dVz3/BUx5eiexBG6dJSekwE4Sn39Ej1XOyZVyg61HHYtpmBjFjaQSJ0T
 CefslBgSz4YQ9uQmbxE8CM5HCiS70TzcqTDM/sVkD4Tw5fU5iPeuEXePdWFWhfWqJMWU
 uXo/l3mqOYJpBgKzARS6ZivoFNr6C6PsrWlqaKe41/JN9VMzec2LZIiXd43ayzH/IBwV
 xBx+CnrRHMEr/lri/R2DFIk7N9wRC4GoD1G7o6D/ZWOiUKMPfUlaQdQ0Q1IsatBQ5V7j
 QlJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=n/1V1H+5JKSDFeQe9codRRC4JBzD9aRvDbeerO9QZVQ=;
 b=JMq1aMdD+VglBnSQdAJ9Ws35Hs4M5+Rn+KYcE+unl+OE00AbQd55fGZ1eZPL/1Xl6m
 jVoxJxdRomsBP/HKmG9rdGulriVY2EQ7eb/IdU+PvH/iusHIPjE/4+xwcRj3QQJfebvl
 /ZUadkZK0uJie+zBXXufvUNM5hBwxO+kU8Vo4vigdY9XOoge8gCrUFof6Bi2zZ+GIgv5
 3HfaUmH7dUnCypbCmzKV0/OWUbJgpVk+Dg2Dy4e2bxuFNg9r8Q0tSCjiiEMIarkfnBPr
 9EP3va72A38P7zUimKX010EjkRuQXXyLVZPORBN8Oyv/4Qc0HZrx2B4DXQu8Oy+LUAol
 URfA==
X-Gm-Message-State: APjAAAXSzqWELbJWHu0t+1APmgTG39JkAOTC/CM7nJeqEmsn3eSLzWv0
 9nWcGzaoRZExElqKTfJKKCHFkY42
X-Google-Smtp-Source: APXvYqzb64GB/cZvC+dvzDOhzssrkSUEhly1XO0JXRNi6t2EQocYK6mkJ0Mgj/uSL2/N74pePru/nw==
X-Received: by 2002:a1c:96:: with SMTP id 144mr3068866wma.45.1561379235238;
 Mon, 24 Jun 2019 05:27:15 -0700 (PDT)
Received: from localhost (91.109.241.36.static-uk.cryptolayer.com.
 [91.109.241.36])
 by smtp.googlemail.com with ESMTPSA id b9sm7357124wrm.11.2019.06.24.05.27.13
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Mon, 24 Jun 2019 05:27:14 -0700 (PDT)
From: Myles English <mylesenglish@HIDDEN>
X-Google-Original-From: Myles English <myles@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add solvespace.
Date: Mon, 24 Jun 2019 13:27:10 +0100
Message-Id: <20190624122710.22874-1-myles@HIDDEN>
X-Mailer: git-send-email 2.22.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::342
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Myles English <myles@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* gnu/packages/game-development.scm (solvespace): New variable and
dependencies on gnu package modules.
---
 gnu/packages/engineering.scm | 70 ++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 7d48414889..7fc06a6730 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2018, 2019 Jonathan Brielmaier <jonathan.brielmaier@HIDDEN>
 ;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@HIDDEN>
 ;;; Copyright © 2019 Tim Stahel <swedneck@HIDDEN>
+;;; Copyright © 2019 Myles English <myles@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -80,6 +81,7 @@
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
+  #:use-module (gnu packages serialization)
   #:use-module (gnu packages swig)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages texinfo)
@@ -87,6 +89,8 @@
   #:use-module (gnu packages tex)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages wxwidgets)
+  #:use-module (gnu packages web)
+  #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg))
 
 (define-public librecad
@@ -2062,3 +2066,69 @@ purpose circuit simulator and can perform DC and transient analyses, fourier
 analysis and AC analysis.  The engine is designed to do true mixed-mode
 simulation.")
     (license license:gpl3+)))
+
+(define-public solvespace-3
+  (let ((commit "5df53fc59e7f31e265fabd4c15e6601bd3032833")
+	(revision "1"))
+    (package
+      (name "solvespace")
+      (version (git-version "3.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/solvespace/solvespace.git")
+               (commit commit)
+               (recursive? #t)))
+         (sha256
+          (base32
+           "0kps2rgakdrbm9f6gwkb7za5ikkc4m6y2x162y3c53ixg5snmlr1"))
+         (file-name (git-file-name name version))
+         (modules '((guix build utils)))
+         (snippet
+          '(begin
+             ;; delete some recursive submodules in order to use guix packages
+             (delete-file-recursively "extlib/zlib")
+             (delete-file-recursively "extlib/libpng")
+             (delete-file-recursively "extlib/freetype")
+             ;; pixman only needed for tests?
+             (delete-file-recursively "extlib/pixman")
+             (delete-file-recursively "extlib/cairo")
+             (delete-file-recursively "extlib/flatbuffers")
+             #t))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:configure-flags
+         (list "-DCMAKE_BUILD_TYPE=Release"
+               (string-append
+                "-DFLATC="
+                (assoc-ref %build-inputs "flatbuffers") "/bin/flatc"))
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'set-git-commit-hash
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "CMakeLists.txt"
+                 (("include\\(GetGitCommitHash\\)")
+                  "#include(GetGitCommitHash)")
+                 (("\\# set\\(GIT_COMMIT_HASH
+                                    0000000000000000000000000000000000000000\\)")
+                  (string-append "set(GIT_COMMIT_HASH " ,commit ")"))
+                 (("message\\(STATUS \\\"Using in-tree flatbuffers\\\"\\)")
+                  "message(STATUS \"Using guix flatbuffers\")")
+                 (("add_subdirectory\\(extlib/flatbuffers EXCLUDE_FROM_ALL\\)")
+                  "#add_subdirectory(extlib/flatbuffers EXCLUDE_FROM_ALL)"))
+               #t)))))
+      (native-inputs
+       `(("pkg-config" ,pkg-config)))
+      (inputs
+       `(("git" ,git)
+         ("json-c" ,json-c)
+         ("glu" ,glu)
+         ("gtkmm" ,gtkmm)
+         ("flatbuffers" ,flatbuffers)))
+      (home-page "http://solvespace.com")
+      (synopsis "Parametric 2D/3D CAD tool")
+      (description "Parametric 2D/3D computer aided design (CAD) tool and
+constraint-based parametric modeler with simple mechanical simulation
+capabilities.")
+      (license license:gpl3+))))
-- 
2.22.0





Acknowledgement sent to Myles English <mylesenglish@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#36352; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 2 Jul 2019 22:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.