From patchwork Thu Aug 29 20:44:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Sprang X-Patchwork-Id: 15157 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 936661735C; Thu, 29 Aug 2019 21:45:12 +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 2636017358 for ; Thu, 29 Aug 2019 21:45:12 +0100 (BST) Received: from localhost ([::1]:54478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3RI7-0007jT-Ka for patchwork@mira.cbaines.net; Thu, 29 Aug 2019 16:45:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39122) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3RI0-0007jK-EZ for guix-patches@gnu.org; Thu, 29 Aug 2019 16:45:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3RHy-0005UQ-SC for guix-patches@gnu.org; Thu, 29 Aug 2019 16:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3RHy-0005Tp-Ma for guix-patches@gnu.org; Thu, 29 Aug 2019 16:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3RHy-00067K-Fc for guix-patches@gnu.org; Thu, 29 Aug 2019 16:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37170] Acknowledgement ([PATCH] gnu: Add opencsg.) Resent-From: Steve Sprang Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Aug 2019 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37170@debbugs.gnu.org Received: via spool by 37170-submit@debbugs.gnu.org id=B37170.156711148723472 (code B ref 37170); Thu, 29 Aug 2019 20:45:02 +0000 Received: (at 37170) by debbugs.gnu.org; 29 Aug 2019 20:44:47 +0000 Received: from localhost ([127.0.0.1]:52977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3RHd-00066M-Qz for submit@debbugs.gnu.org; Thu, 29 Aug 2019 16:44:46 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3RHZ-000662-OE for 37170@debbugs.gnu.org; Thu, 29 Aug 2019 16:44:39 -0400 Received: by mail-lj1-f193.google.com with SMTP id x4so4363125ljj.6 for <37170@debbugs.gnu.org>; Thu, 29 Aug 2019 13:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=imJp0Nl+ovHVepdD8iIcTs2yrtI6g7v3U397f0+QhP8=; b=L/0Rbv00R2sIk65EQErOcj7LS8WNNKQy7N+z73nERSl7yqkwDT7Co620lAwBBUHZCV H/ueXk5s8fCTI0t2R7nEDjCO7Uo4rd64D2OrvYLm6f/ztuvuGL+oarZa86JuOhc/b5Xo H8O1sLVD1yvefFHYpUgc+LnB+wrlLhvCn2Mtu/Ed5/4Uv77DxxPVWGXi/wSnqjBHjaOr U7k1DTGjJgNrTojS4brUM0E+miSyykrrmWRpAqsBWB/i39YwXB+bIfGdGDqpLmXimHYU HA3wGey2YQb+iljn2zbhGlMe7k+2R6YaArIaFSeU89VvarCJzIuwxoZVnAlvuXoE/ldU ADZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=imJp0Nl+ovHVepdD8iIcTs2yrtI6g7v3U397f0+QhP8=; b=qelD+Uwfw6KhvQ+ZHkVxxKprCCtQjJyaismuBJDwkNgyJrIF16SmUfd6dvX8dubyb6 DdmZHPphRvOaExPha0z9rQJ1sbyHA6G0yAdBCcMdWcdKYmXKcSG15gAPbjsVbWF+YKZu 9bWUgdA4j93IS8kDrfoVljjJhJb9DEnEGrcBM4o1QObua9vsVnXt73pIFOlQbeW1wUQV foUjuIJahVgk2EpRPVfZ9cGv3G2RCqcYLtuE2LdEqU0u2qo733GpYg71uf17Cknv/2Sn xp5HH5dperX6yWzItC9QifSEmqjmuhykFl9CyNJe/8FMnhIqGXYFa84gUYVmyADFUp9f dypA== X-Gm-Message-State: APjAAAUbFgZgTUqPI5ikK3vG1hPcImBhMbIXQd3HaUumqekVm2Ja3n++ msasiyebLNXhTWR21ZnOPQW6o3hEaqKVu8rJogM+Qw== X-Google-Smtp-Source: APXvYqzfndxcDES1ZGIRftDXNWqdLYdRwnRBwE+vhSHi2mebL3QTZbcOTYHGHGyYFkXyrgYpWjTVO8QHmmvkGbW+pwY= X-Received: by 2002:a2e:b0cf:: with SMTP id g15mr6514523ljl.237.1567111471169; Thu, 29 Aug 2019 13:44:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Steve Sprang Date: Thu, 29 Aug 2019 13:44:19 -0700 Message-ID: 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 Here's an updated patch. Switched from url-fetch to git-fetch and fixed lint complaints. On Fri, Aug 23, 2019 at 5:26 PM GNU bug Tracking System wrote: > > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > guix-patches@gnu.org > > If you wish to submit further information on this problem, please > send it to 37170@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > -- > 37170: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37170 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems From 76a898ef18a9d2cee77bbb1bae3fc1878d6bd1c3 Mon Sep 17 00:00:00 2001 From: Steve Sprang Date: Fri, 23 Aug 2019 15:38:42 -0700 Subject: [PATCH] gnu: Add opencsg. * gnu/packages/graphics.scm (opencsg): New variable. --- gnu/packages/graphics.scm | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index ee56dae54e..1f1871d4ed 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2018 Kei Kebreau ;;; Copyright © 2019 Mark H Weaver ;;; Copyright © 2019 Carlo Zancanaro +;;; Copyright © 2019 Steve Sprang ;;; ;;; This file is part of GNU Guix. ;;; @@ -1018,3 +1019,43 @@ requirements.") performance subdivision surface (subdiv) evaluation on massively parallel CPU and GPU architectures.") (license license:asl2.0))) + +(define-public opencsg + (let ((dot-to-dash (lambda (c) (if (char=? c #\.) #\- c)))) + (package + (name "opencsg") + (version "1.4.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/floriankirsch/OpenCSG.git") + (commit (string-append "opencsg-" + (string-map dot-to-dash version) + "-release")))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "00m4vs6jn3scqczscc4591l1d6zg6anqp9v1ldf9ymf70rdyvm7m")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/Makefile" + (("/usr/local") (assoc-ref outputs "out"))) + #t)) + (add-before 'build 'skip-example + (lambda _ (chdir "src") #t))))) + (inputs + `(("glew" ,glew) + ("freeglut" ,freeglut))) + (synopsis "Library for rendering Constructive Solid Geometry (CSG)") + (description + "OpenCSG is a library for rendering Constructive Solid Geometry (CSG) using +OpenGL. CSG is an approach for modeling complex 3D-shapes using simpler ones. +For example, two shapes can be combined by uniting them, by intersecting them, +or by subtracting one shape from the other.") + (home-page "http://www.opencsg.org/") + (license license:gpl2)))) -- 2.23.0