From patchwork Tue Feb 21 13:07:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 47190 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 BBF7616B1D; Tue, 21 Feb 2023 13:08:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED,URI_HEX autolearn=unavailable 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 9AE3116B0D for ; Tue, 21 Feb 2023 13:08:38 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUSNI-0000xB-27; Tue, 21 Feb 2023 08:08:04 -0500 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 1pUSNG-0000wN-Mv for guix-patches@gnu.org; Tue, 21 Feb 2023 08:08:02 -0500 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 1pUSNG-0003VJ-DW for guix-patches@gnu.org; Tue, 21 Feb 2023 08:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUSNG-0003ef-9I for guix-patches@gnu.org; Tue, 21 Feb 2023 08:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61674] [PATCH 1/4] gnu: Add calcmysky. References: <20230221130600.18932-1-sharlatanus@gmail.com> In-Reply-To: <20230221130600.18932-1-sharlatanus@gmail.com> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61674 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61674@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 61674-submit@debbugs.gnu.org id=B61674.167698485313969 (code B ref 61674); Tue, 21 Feb 2023 13:08:02 +0000 Received: (at 61674) by debbugs.gnu.org; 21 Feb 2023 13:07:33 +0000 Received: from localhost ([127.0.0.1]:54921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUSMn-0003dE-3i for submit@debbugs.gnu.org; Tue, 21 Feb 2023 08:07:33 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:43642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUSMl-0003ct-HJ for 61674@debbugs.gnu.org; Tue, 21 Feb 2023 08:07:32 -0500 Received: by mail-wr1-f46.google.com with SMTP id l1so4088651wry.10 for <61674@debbugs.gnu.org>; Tue, 21 Feb 2023 05:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uo/8EEaZmUdsCpG+vlsNkXxzu4NkF4B8lMjVHbX6tMU=; b=Fp5jD9g47LGflgfKLhucZ86jzR8PPm8h1ga4az7izhe7SBfIqpXyAIr5ldsDxPoTOH zftOxAHVplbwGxFIRvYRpWL5Fo5Q8/y7j28IgqgRIHghU2LhGzuejgoc/xFpkrubX6ad /wUW3byLLfNUDNnx4IYov/qA+iWsvwk1eQ81AwDdhd0aZtKkY6qoXmRQPGo1znrKJACi 2LxZJzbsWnXHC8rP3WTLpIDuGgKJzi2g8YZ/GXveENJzlF3sbIMCN/7NS1tC71mgE5lT i/WuJ7nkB/KsTvCDdYmJf4GjYs3qFWeSWd8k9tu9RasxujJQA0f4hpOhoIcXBFqOHi+s eT+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uo/8EEaZmUdsCpG+vlsNkXxzu4NkF4B8lMjVHbX6tMU=; b=hUQ/yEEy2tuXdEIaGWjHHaz0CsCIA5bVSChBt4XnfquhhgiVDWOOMa0+ylQNrPQAFy fcIMtqHDCLThsnbZgTYHrd6MlFqiMikBF/cIxW4Z/rUiWbyn1DxxfWkaG3FDTBVB0TFV mQWxuMFmhrDBIUnaCPeAYeSQcLFyVYNSbJKROLpEzUm75F+Yc2tfNt9U2LHfkX8LPMVL 8KzsIEddhpYVS2fl2zS0Dh6nsg0I5ohw1QjntH6iQ5mHY1tWGvlWXIQfITtARlV+4Ki/ tSpkAP78w4neTQmf2Vkon9nt7TIM7grLZlh3mLJ2MbAI5URxKtmF9uRQBzB4kvlrEy9b q9WA== X-Gm-Message-State: AO0yUKWIMLtQOwX/+wi1ZQFq38CPWUO5I/LpQadqx0XGXRa2yyMnAElv 7CP4CSoSDGSUSziMWiz6YEOzM0DxBlA= X-Google-Smtp-Source: AK7set9u4shUDQTuc3pT8JfDS8dICBqnbBW2tsbFKF44orcyqZLz5Yjhu5CAzGad3vLBPAAxrfrXbw== X-Received: by 2002:a05:6000:88:b0:2c5:a040:5dd2 with SMTP id m8-20020a056000008800b002c5a0405dd2mr3434494wrx.22.1676984845663; Tue, 21 Feb 2023 05:07:25 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id j21-20020a5d6e55000000b002c3f81c51b6sm5841531wrz.90.2023.02.21.05.07.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 05:07:25 -0800 (PST) From: Sharlatan Hellseher Date: Tue, 21 Feb 2023 13:07:20 +0000 Message-Id: <20230221130723.19077-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.1 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/astronomy.scm (calcmysky, calcmysky-qt5): New variables. --- gnu/packages/astronomy.scm | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 5cee981671..f13f74a5e8 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -26,6 +26,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages astronomy) + #:use-module ((guix build utils) #:select (alist-replace)) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) @@ -209,6 +210,62 @@ (define-public calceph @end itemize\n") (license license:cecill))) +(define-public calcmysky + (package + (name "calcmysky") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/10110111/CalcMySky") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bib5shy8wzc7j5ph218dl9hqrqip491mn25gakyghbvaqxgm27d")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags + #~(list "-DQT_VERSION=6"))) + (inputs + (list eigen glm qtbase)) + (home-page "https://10110111.github.io/CalcMySky/") + (synopsis "Simulator of light scattering by planetary atmospheres") + (description + "CalcMySky is a software package that simulates scattering of light by the +atmosphere to render daytime and twilight skies (without stars). Its primary +purpose is to enable realistic view of the sky in applications such as +planetaria. Secondary objective is to make it possible to explore atmospheric +effects such as glories, fogbows etc., as well as simulate unusual environments +such as on Mars or an exoplanet orbiting a star with a non-solar spectrum of +radiation. + +This package consists of three parts: + +@itemize +@item @code{calcmysky} utility that does the precomputation of the atmosphere +model to enable rendering. + +@item @code{libShowMySky} library that lets the applications render the +atmosphere model. + +@item @code{ShowMySky} preview GUI that makes it possible to preview the +rendering of the atmosphere model and examine its properties. +@end itemize") + (license license:gpl3))) + +(define-public calcmysky-qt5 + (package + (inherit calcmysky) + (name "calcmysky-qt5") + (arguments + (list #:configure-flags + #~(list "-DQT_VERSION=5"))) + (inputs + (alist-replace "qtbase" (list qtbase-5) + (package-inputs calcmysky))) + (synopsis "Qt5 build for the CalcMySky library."))) + (define-public aoflagger (package (name "aoflagger")