From patchwork Sat Oct 17 10:35:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Malte Frank Gerdes X-Patchwork-Id: 24660 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 7156B27BBEE; Sat, 17 Oct 2020 11:37:10 +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 E9E0D27BBED for ; Sat, 17 Oct 2020 11:37:09 +0100 (BST) Received: from localhost ([::1]:34224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTjaH-0004Oi-3Q for patchwork@mira.cbaines.net; Sat, 17 Oct 2020 06:37:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTjaA-0004OS-HR for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTjaA-000662-7W 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-0007z9-3k for guix-patches@gnu.org; Sat, 17 Oct 2020 06:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44045] [PATCH 01/10] gnu: Add libArcus. References: <86v9f95eip.fsf@gmail.com> In-Reply-To: <86v9f95eip.fsf@gmail.com> 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.160293097330528 (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]:33503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTjZM-0007wI-Ix for submit@debbugs.gnu.org; Sat, 17 Oct 2020 06:36:12 -0400 Received: from mail-ed1-f50.google.com ([209.85.208.50]:44856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTjZL-0007vt-BR for 44045@debbugs.gnu.org; Sat, 17 Oct 2020 06:36:11 -0400 Received: by mail-ed1-f50.google.com with SMTP id t20so5277850edr.11 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:mime-version :content-transfer-encoding; bh=f5VNFAK1R4vx1u+rcvjE+fi1QVD3YDJazD92osYJgw0=; b=DZA7pNozAQp1pEkw9dIKfWA4mD/xqI/3NWWgeBDZSclGvXGH/l3DJ6k1CRSmpwsCxa OyXgGytbWLg54PRJNV+l8LNwiIKm16cHAApIux9ay8uSlNOwWTfeXxY2UGMLZvkvHHJl f7I6lbyEY1ClqKUWQw4rz5r3y71CqQFlX9sOUN/uafV5b2LFWlhPYZI3pKRY7Uu81tjf UIaHk9b4/bm5+lRjfVEvMkoTWtXEZ0vJ7q0ED8fMPXrTzVoB4I8A41/xmVWeA2Vy478g m57xTNj8h4RaHdS1iTOBQ2OMAFrAgzYKb2TKRZMckZAOKss4mwN28vB2ScoDM/UWaWT5 9L7w== 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=f5VNFAK1R4vx1u+rcvjE+fi1QVD3YDJazD92osYJgw0=; b=YW23rQi3b85ZHH/pty6G95Svh8iuB2Q/bfS1WtvUV5c7JCDjyGAV4kXe4XCugbgh24 euX4L8bmF6bcBJkmrX39/Pts24CmzaEtkZ+smc1hgmfJ9VkBV7YsneVpJ2U6DvynJUR1 kLpxFbsuh8pKHGoXqCxty36uohsexRmf38A0UGYxkNo3PbLXgKx3LBTVG9mcJlbf77/g rhRUv9FpCgKJBOR1hmL5D7oF71hQKDlvdrUXSiSQccekdyW9q0WslGlVg/maaDoxEBzy ChQ+eE1DfM3DIwJdw99WHhooiRILwYD2MwBf90y3FMlmm3ijqMkgj83qxK3GTg4LHCQC JcZg== X-Gm-Message-State: AOAM531NnW+jPvkQSDK3RzNZsyiUFRw/JZQkBU/eic3h0sitkktiM1Df 6SqOtjuFfgelKdAP14m3vbC7NMhtNNklsQ== X-Google-Smtp-Source: ABdhPJy5D7eGrGtQs6NFDoHUyfv/2zARtp5oSFcZSKkgFa5aukeJePxxDpbMxxAC+kkh1nQZ5LQTTg== X-Received: by 2002:aa7:d992:: with SMTP id u18mr8596145eds.284.1602930965176; 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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Oct 2020 03:36:04 -0700 (PDT) From: Malte Frank Gerdes Date: Sat, 17 Oct 2020 12:35:38 +0200 Message-Id: <20201017103547.13769-1-malte.f.gerdes@gmail.com> X-Mailer: git-send-email 2.28.0 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 (libArcus): New variable. --- gnu/packages/engineering.scm | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 2e1ffa1355..5c5db6a17e 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2020 B. Wilson ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Morgan Smith +;;; Copyright © 2020 Malte Frank Gerdes ;;; ;;; This file is part of GNU Guix. ;;; @@ -101,6 +102,7 @@ #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages protobuf) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) @@ -2825,3 +2827,48 @@ GUI.") provides a full-fledged procedural, interactive programming language designed to describe data structures and to operate on them.") (license license:gpl3+)))) + +(define-public libArcus + (let ((commit "3925125768bac03fafd9b51dceeae2ca1de0f37f") + (revision "0")) + (package + (name "libArcus") + (version (string-append "4.7.1-" revision "." + (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ultimaker/libArcus") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 "0kbv0pi8y4a4lrmac595nm0kx4sfxilf3qj7fcda5pzxv9xkvxk9")))) + (build-system cmake-build-system) + (inputs + `(("protobuf" ,protobuf) + ("python" ,python) + ("python-sip" ,python-sip))) + (arguments + `(#:tests? #false + #:configure-flags '("-DBUILD_EXAMPLES=OFF") + #:phases (modify-phases %standard-phases + (add-before 'configure 'fix-python-sitearch + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "cmake/FindSIP.cmake" + (("\\$\\{_process_output\\} Python3_SITEARCH") + (string-append (assoc-ref outputs "out") + "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages" + " Python3_SITEARCH")))))))) + (home-page "https://github.com/Ultimaker/libArcus") + (synopsis "Communication library between internal components for +Ultimaker software") + (description "This library contains C++ code and Python3 bindings for +creating a socket in a thread and using this socket to send and receive +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)))) +