From patchwork Mon May 29 20:38:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vicvbcun X-Patchwork-Id: 50481 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 B4BB327BBEA; Tue, 30 May 2023 04:58:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D5DFA27BBE9 for ; Tue, 30 May 2023 04:58:44 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3qUn-0005JX-4g; Mon, 29 May 2023 23:58:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3qUl-0005IV-Pr for guix-patches@gnu.org; Mon, 29 May 2023 23:58:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3qUl-000554-HI for guix-patches@gnu.org; Mon, 29 May 2023 23:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3qUl-00038q-DI for guix-patches@gnu.org; Mon, 29 May 2023 23:58:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v3 26/32] gnu: Add tachyon. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 May 2023 03:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56729@debbugs.gnu.org Cc: Andreas Enge Received: via spool by 56729-submit@debbugs.gnu.org id=B56729.168541907312019 (code B ref 56729); Tue, 30 May 2023 03:58:03 +0000 Received: (at 56729) by debbugs.gnu.org; 30 May 2023 03:57:53 +0000 Received: from localhost ([127.0.0.1]:59640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3qUb-00037h-BE for submit@debbugs.gnu.org; Mon, 29 May 2023 23:57:53 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.136]:40089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3qUN-00036G-Jz for 56729@debbugs.gnu.org; Mon, 29 May 2023 23:57:43 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1685419057; cv=none; d=strato.com; s=strato-dkim-0002; b=IZcSsB5cacxz0riXKY8yQ/APA9eozHzMYOK4PsHTti/n1y4yJjaqZ2wHF6O5gbe+TZ 0vSMTzUrQcE7CVtV4WUGe71Gs10681QOxUYFxcoFgpaY5v3aOSx+wpoR836aFw8NeFay zLjY6Vr5cbTn02sxjFdbtczXOenje8cSK4Lps77BfgEdi6qx5aACIPyLClBz1uHsAleC nyIY6CcHvNpw45hxpJYsAX0mIKUj772eLP8ZXQbwcQwxf/SuTzdd9ku54CA7CACZXg6/ jRgiIaZ0mxlgsT8h9IGG6LRKFnqcgZpiljtpE865yNDh7Xk35e67ojxwGotxSLEZUtoo sk+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685419057; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=rN2kUY4D/RZ4pKmze2EXboU7SYOwNxyzBU76j78LbY4=; b=qLyooiUhewfdNEeipHT3qqVCpyGOlIyw+1V03d+hePfZZNkk8Xem/Bb5GVs/oHfoIs 8JPWGRGIg4ffgCz1nQ2qJtxdu9dqEByQvyCQFthFHXFAascXEIl1egwDwaq6Ah7GIxhG mzcfSROn54MF3NA2oPXlA7LdZsM/8o6BsXrt8G6b5NVIKNuNrOy6VIvou07RE/hQilby N85FUdj9s/LOQjp9n4WR3/xnTTGXKbc8f+HKjvigKjE9YKI8HGI42kR+o1vfLHn9IHJH RJuFOKGZyA2zCm0mXWMmO6Jq5iHVY7xk78JT6tvR4iBBSk30DsP6euLle5J1CaXenQIy A1AA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685419057; s=strato-dkim-0002; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=rN2kUY4D/RZ4pKmze2EXboU7SYOwNxyzBU76j78LbY4=; b=iwSKGjq1mr6l1V39awkLdR3e01kyMLxKefwZ6PG3gwIEOgDZaF0mZDhln6+FVKf8Zq agRRto/b5AKG6z3WzhbUys2WWHxPSNKoqDnD6h9CPoOafvgFbWjGxX56NzKr5pPjTkJN 5iZ9LynzT95pomYXXh+iDilBZR55Vnwz7NzDreiaeE9UUzZNhNibQRNPO0qO6MlnQV50 04i1Qogutcw7+bl3tVijFEGwv3/sD9WcBLcyqrbGwUdhC+GT/LX5IEej57UnIBELXH7K Uz3HIvqMyD8wBCw5U4dBYtcBmjVuMtEiFVJ2L9u+rQhTjuSo9VYtqYyt7a0ecnShIano BhdQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685419057; s=strato-dkim-0003; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=rN2kUY4D/RZ4pKmze2EXboU7SYOwNxyzBU76j78LbY4=; b=DMu7ukQqfGB+KP2KedoFWKxiEinPEQynASNgnZppFTfxW7RVGfBexC5Rih4EsLbMWN D+iOrNguNtWzn9yvbkCw== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3PkiYp6DPxTDDEo4xO9elHkvI0r6JTEEwPZQIGpITRHJw3QBV19xfC5caujhgQnTJiaYr" X-RZG-CLASS-ID: mo05 Received: from lambda.localdomain by smtp.strato.de (RZmta 49.4.0 AUTH) with ESMTPSA id z055e6z4U3vbnYJ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 30 May 2023 05:57:37 +0200 (CEST) From: vicvbcun Date: Mon, 29 May 2023 22:38:35 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/graphics.scm (tachyon): New variable. --- gnu/packages/graphics.scm | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 60db7543a6..6fc11f8c2d 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2597,3 +2597,61 @@ (define-public gpaint (home-page "https://www.gnu.org/software/gpaint/") (license license:gpl3+))) +(define-public tachyon + (package + (name "tachyon") + (version "0.99.5") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sagemath/spkg/upstream/tachyon/tachyon-" + version ".tar.bz2")) + (sha256 + (base32 + "1xd6h5d4v6dsnm6w46bdcr15fwkcz44p8dncymfry50i4c83q809")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; no tests + #:make-flags #~(list "linux-thr") + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'prepare-src + (lambda _ + (substitute* "unix/Make-arch" + (("CC = cc") + (string-append "CC = " #$(cc-for-target)))) + (chdir "unix"))) + (add-before 'build 'enable-png-jpeg-support + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Make-config" + (("USEJPEG=") + "USEJPEG = -DUSEJPEG") + (("JPEGLIB=") + "JPEGLIB = -ljpeg") + (("USEPNG=") + "USEPNG = -DUSEPNG") + (("PNGLIB=") + "PNGLIB = -lpng -lz")))) + (add-before 'build 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Make-config" + (("SHELL=/bin/sh") + (string-append "SHELL=" (which "sh")))))) + (replace 'install + (lambda _ + (install-file "../compile/linux-thr/tachyon" + (string-append #$output "/bin")) + (install-file "../compile/linux-thr/libtachyon.a" + (string-append #$output "/lib"))))))) + (inputs (list libjpeg-turbo libpng)) + ;; The server does not seem to be reliably accessible + (home-page "http://jedi.ks.uiuc.edu/~johns/raytracer/") + (synopsis "Multithreaded ray tracing software") + (description + "This package contains the Tachyon raytracer. It supports the typical +ray tracer features, most of the common geometric primitives, shading and +texturing modes, etc. It also supports less common features such as HDR image +output, ambient occlusion lighting, and support for various triangle mesh and +volumetric texture formats beneficial for molecular visualization.") + (license license:bsd-3)))