From patchwork Tue Sep 10 23:47:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Sprang X-Patchwork-Id: 15344 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1CC06173B6; Wed, 11 Sep 2019 00:48:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id C0DAB173AB for ; Wed, 11 Sep 2019 00:48:09 +0100 (BST) Received: from localhost ([::1]:45522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7prl-0003Qv-Bv for patchwork@mira.cbaines.net; Tue, 10 Sep 2019 19:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7prf-0003Qe-EM for guix-patches@gnu.org; Tue, 10 Sep 2019 19:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7pre-0004LY-1q for guix-patches@gnu.org; Tue, 10 Sep 2019 19:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7prd-0004LU-V2 for guix-patches@gnu.org; Tue, 10 Sep 2019 19:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i7prd-0000CW-S4 for guix-patches@gnu.org; Tue, 10 Sep 2019 19:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37372] [PATCH] gnu: Add openscad. Resent-From: Steve Sprang Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Sep 2019 23:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37372 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37372@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1568159239714 (code B ref -1); Tue, 10 Sep 2019 23:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2019 23:47:19 +0000 Received: from localhost ([127.0.0.1]:41840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7pqw-0000BR-TB for submit@debbugs.gnu.org; Tue, 10 Sep 2019 19:47:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:33916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7pqu-0000BK-TS for submit@debbugs.gnu.org; Tue, 10 Sep 2019 19:47:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39952) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7pqt-0003Mk-I6 for guix-patches@gnu.org; Tue, 10 Sep 2019 19:47:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7pqs-0003xZ-5F for guix-patches@gnu.org; Tue, 10 Sep 2019 19:47:15 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:41287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7pqr-0003ww-QG for guix-patches@gnu.org; Tue, 10 Sep 2019 19:47:14 -0400 Received: by mail-lf1-x133.google.com with SMTP id j4so14885331lfh.8 for ; Tue, 10 Sep 2019 16:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JTPQQR3wY3OjymN4DGXPRcePplgJFYGpGnYRSL34iR8=; b=r+aoz7g3R+utahANcN8S35whaYTI2T0pAoCCZg7nb8gW31MbIhOwjByUc9bFCxca7w iQfS7t+x+rrsvAvjMGCAM89+wApVAx5gAfNzscFU6wPiL3JQx1IhAzpKLzLrB9/TZEH1 ySBBtqvCsx4qnUaUQcq6Xt4LBd6/qYVLmesyg13yja8q+ZP4ZJnMvJNXWWey9cdQaPAk TBELGq4vmotc1mvtuAbEHhYo8IiepvNiM0jO4BxF20oQxyp/YqsC+n+idACoKu0HlxRj qEs8pBRRnrOUNCrKsXzqANofNpcfgq1cENGliHDrLB1JLqwGumjgkKIJmRTj4RnIefyQ ix5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JTPQQR3wY3OjymN4DGXPRcePplgJFYGpGnYRSL34iR8=; b=SIHf2F+1qhsJD8iwKrywRNcelkfmVW0BbmtLxpH/oMFprQ4RyV5ytMEUSWzkvNA1xF KOJ59jLe1RHVdPlu37josehaFi9RSxA5I+qGXvwq0xKlCTBgpEGWbjFwprCpC+1mWGA1 XwU5lYu1vmwz8iq/I5KMmHYcSjJX1M31/qot/8/HtnZ4yahaHVQORR1ndCq86ur396Nw +mru1Zrhczvit/tVBVZOOgS2kQ3ozRE8w8qqFi3iqTDZQJf3QSIfbaCiKLC+kdEGUszE /dwwFkfOjrnz387lC78v5NKpV7JJJEuUnzhXYfpzGUJyIvBM2WFnxX9bj26qz1cntb3D QLUw== X-Gm-Message-State: APjAAAVyy5ioV1td39fEGKN0XMtV/DK+Hs+PQQiC9PjrZHaw6SHkcxji YaebOfAM9B1QeIgZ55J2n6oPbpNB1af9tNiWkeQXaQ== X-Google-Smtp-Source: APXvYqyao3ibK67D5srsI4Jx1J+9j4jvOzBsfsSYMp2hFVZgF16qmnqTzVOGj9VIyu6HhvtnVzmMQJBQUT8+79YEFRo= X-Received: by 2002:ac2:53a3:: with SMTP id j3mr22323611lfh.155.1568159231325; Tue, 10 Sep 2019 16:47:11 -0700 (PDT) MIME-Version: 1.0 From: Steve Sprang Date: Tue, 10 Sep 2019 16:47:00 -0700 Message-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches There is a lint complaint that the "source [is] not archived on Software Heritage". I'm not sure if that's something that I need to remedy or not. From 20cbcd57a23a4acac83257817df0baeb3232695d Mon Sep 17 00:00:00 2001 From: Steve Sprang Date: Tue, 10 Sep 2019 16:22:57 -0700 Subject: [PATCH] gnu: Add openscad. * gnu/packages/engineering.scm (openscad): New variable. --- gnu/packages/engineering.scm | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 7f5409c835..9852aaf667 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -65,6 +65,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gperf) + #:use-module (gnu packages graphics) #:use-module (gnu packages groff) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) @@ -89,6 +90,7 @@ #:use-module (gnu packages tex) #:use-module (gnu packages version-control) #:use-module (gnu packages wxwidgets) + #:use-module (gnu packages xml) #:use-module (gnu packages xorg)) (define-public librecad @@ -2145,3 +2147,70 @@ well as conversion and validation tools for input and output data. The specification can be downloaded at @url{http://3mf.io/specification/}.") (home-page "https://3mf.io/") (license license:bsd-2))) + +(define-public openscad + (package + (name "openscad") + (version "2019.05") + (source + (origin + (method url-fetch) + (uri (string-append "https://files.openscad.org/openscad-" version + ".src.tar.gz")) + (sha256 + (base32 + "0nbgk5q5pgnw53la0kccdcpz2f4xf6d6076rkn0q08z57hkc85ha")))) + (build-system cmake-build-system) + (inputs + `(("boost" ,boost) + ("cgal" ,cgal) + ("double-conversion" ,double-conversion) + ("eigen" ,eigen) + ("fontconfig" ,fontconfig) + ("glew" ,glew) + ("gmp" ,gmp) + ("harfbuzz" ,harfbuzz) + ("lib3mf" ,lib3mf) + ("libxml2" ,libxml2) + ("libzip" ,libzip) + ("mpfr" ,mpfr) + ("opencsg" ,opencsg) + ("qscintilla" ,qscintilla) + ("qtbase" ,qtbase) + ("qtmultimedia" ,qtmultimedia))) + (native-inputs + `(("bison" ,bison) + ("flex" ,flex) + ("gnu-gettext" ,gnu-gettext) + ("pkg-config" ,pkg-config) + ("which" ,which) + ;; the following are only needed for tests + ("imagemagick" ,imagemagick) + ("ps" ,procps) + ("python" ,python) + ("xvfb" ,xorg-server))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (invoke "qmake" + (string-append "PREFIX=" (assoc-ref outputs "out"))) + #t)) + (replace 'check + (lambda _ + (with-directory-excursion "tests" + (invoke "cmake" ".") + (invoke "make") + (invoke "ctest")) + ;; strip python test files since lib dir ends up in out/share + (for-each delete-file + (find-files "libraries/MCAD" ".*\\.py")) + #t))))) + (synopsis "Script-based 3D modeling application") + (description + "OpenSCAD is a 3D Computer-aided Design (CAD) application. Unlike an +interactive modeler, OpenSCAD generates 3D models from a script, giving you +full programmatic control over your models.") + (home-page "https://www.openscad.org/") + (license license:gpl2+))) -- 2.23.0