From patchwork Sat Oct 17 10:35:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malte Frank Gerdes X-Patchwork-Id: 24662 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 B8CB727BBEE; Sat, 17 Oct 2020 11:37:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 09B8227BBED for ; Sat, 17 Oct 2020 11:37:13 +0100 (BST) Received: from localhost ([::1]:34308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTjaK-0004Rr-4Q for patchwork@mira.cbaines.net; Sat, 17 Oct 2020 06:37:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTjaA-0004OZ-U8 for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTjaA-000666-Kx for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTjaA-0007zG-ID for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44045] [PATCH 02/10] gnu: Add cura-engine. Resent-From: Malte Frank Gerdes Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Oct 2020 10:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44045@debbugs.gnu.org Cc: Malte Frank Gerdes Received: via spool by 44045-submit@debbugs.gnu.org id=B44045.160293097330541 (code B ref 44045); Sat, 17 Oct 2020 10:37:02 +0000 Received: (at 44045) by debbugs.gnu.org; 17 Oct 2020 10:36:13 +0000 Received: from localhost ([127.0.0.1]:33506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTjZN-0007wL-1H for submit@debbugs.gnu.org; Sat, 17 Oct 2020 06:36:13 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:36298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTjZL-0007vw-Oq for 44045@debbugs.gnu.org; Sat, 17 Oct 2020 06:36:12 -0400 Received: by mail-ej1-f41.google.com with SMTP id qp15so7119852ejb.3 for <44045@debbugs.gnu.org>; Sat, 17 Oct 2020 03:36:11 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=KmDl3hcUYjNOohw2Cot6edTMsFnI5FMX8hTOzZKwCSE=; b=VNnctvQl7wOGv7JB28pR7zJOuqydV5/vYzSblw1bqXgRBjwSGngm6CJsueJ7b6VH+Q Rv3PUu4Jd2ZZJ0fi1YmsoXGN9WBwfaj+XnzBLQGnBSppXg7GgKNDrzXB8zbnISR0kNEb qclWTFbZ/MbnfmH+kOV1dRryyWwhE8nvOp/eFNP4S9MkP3RJ4HZ6AU/6f9kN//lzA6kY MTTKTVvh5oBKa5YKqcp42Pzhp2rZrMTHyDWPCoCikOtqYf/JYIsm/5xqwOhoIRwQgoOl K3ftVCH0AiY0AsnD8Z7LEfx9bQmsb3nRYCPxgxIDP5a7yOOZHUDLc7KWzxataWO7bKCn abFA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KmDl3hcUYjNOohw2Cot6edTMsFnI5FMX8hTOzZKwCSE=; b=QGb1ZLjYkIPvpI0zHQ6XDpvE9hYAJ7NxfhvQ03h59wSJ6MuQanV2tzN3OjiaOMn1Ei GrEj62rbz1rsZbwUECM3wdec6QSJKIM89MRjxpACHhUGq1e51YRxBt0OgOYUOvoXMuc8 eRO0p4Hf/M2URB3XQ436+jwXP5YXU+fv7GjbJfOimNlIEvNpnPo8J9NE9hr69SROd5wp QsUuQm/O1WAy7LehbN0qt4YsDQ1pFCyMBSZGdYZV00hpGcqAqrFA4xP0JNYaT9v5CzRC 2z7w+LCscEmj+Jejlo1ITU4Xa4/EnZPtPn38rxd2cklUly0RqHGwYRhDjXCzGD6r4NuN Z8Xg== X-Gm-Message-State: AOAM530nHGUWEFBqPnPY9C8b48wimk0RDg1eDDIH1ierCF/S19Pml/p2 hLpx/B/NjIKM2f3zb+0GG2XyUo+lX3eYuA== X-Google-Smtp-Source: ABdhPJyQATaihdxkLqtElBFDZgi1UsInR8rZ472tPttoyTDyXkQGHR7uvQgV4PmzL4nYYhKWnVtVtQ== X-Received: by 2002:a17:906:4ece:: with SMTP id i14mr8162171ejv.366.1602930965849; Sat, 17 Oct 2020 03:36:05 -0700 (PDT) Received: from Morphium.intus (ip-84-118-73-55.unity-media.net. [84.118.73.55]) by smtp.gmail.com with ESMTPSA id cz11sm4794679edb.62.2020.10.17.03.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Oct 2020 03:36:05 -0700 (PDT) From: Malte Frank Gerdes Date: Sat, 17 Oct 2020 12:35:39 +0200 Message-Id: <20201017103547.13769-2-malte.f.gerdes@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201017103547.13769-1-malte.f.gerdes@gmail.com> References: <20201017103547.13769-1-malte.f.gerdes@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 * gnu/packages/engineering.scm (cura-engine): New variable. --- gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 5c5db6a17e..c06b9aebf9 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -107,6 +107,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) + #:use-module (gnu packages stb) #:use-module (gnu packages swig) #:use-module (gnu packages tbb) #:use-module (gnu packages tcl) @@ -2872,3 +2873,48 @@ messages based on the Protocol Buffers library. It is designed to facilitate the communication between Cura and its backend and similar code.") (license license:lgpl3)))) +(define-public cura-engine + (package + (name "cura-engine") + (version "4.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ultimaker/CuraEngine") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "177fk6j4gn3ssi8j1qxj8p4486f7jkz328vc75agxnh7vhd4mwsm")))) + (build-system cmake-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("googletest" ,googletest))) + (inputs + `(("protobuf" ,protobuf) + ("libArcus" ,libArcus) + ("stb-image" ,stb-image))) + (arguments + `(#:configure-flags '("-DBUILD_TESTS=ON") + #:phases (modify-phases %standard-phases + (add-before 'configure 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "../source/cmake/FindStb.cmake" + (("/usr/include") + (string-append (assoc-ref inputs "stb-image") + "/include")) + (("stb/stb_image_resize.h") + "stb_image.h")) + (substitute* + "../source/src/infill/ImageBasedDensityProvider.cpp" + (("stb/stb_image.h") + "stb_image.h")) + #true))))) + (home-page "https://github.com/Ultimaker/CuraEngine") + (synopsis "Cura slicing engine") + (description "CuraEngine is a powerful, fast and robust engine for +processing 3D models into 3D printing instruction for Ultimaker and other +GCode based 3D printers. It is part of the larger open source project called +Cura.") + (license license:agpl3))) +