From patchwork Sun Feb 26 00:44:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 47363 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 A01E116BD9; Sun, 26 Feb 2023 00:45:28 +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=-1.7 required=5.0 tests=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=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 9E42216B42 for ; Sun, 26 Feb 2023 00:45:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pW5AD-0002X2-MO; Sat, 25 Feb 2023 19:45:17 -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 1pW5A8-0002UL-Mf for guix-patches@gnu.org; Sat, 25 Feb 2023 19:45:12 -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 1pW59y-0004dY-S6 for guix-patches@gnu.org; Sat, 25 Feb 2023 19:45:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pW59y-0007Dp-In for guix-patches@gnu.org; Sat, 25 Feb 2023 19:45: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: Sun, 26 Feb 2023 00:45: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.167737226027679 (code B ref 61674); Sun, 26 Feb 2023 00:45:02 +0000 Received: (at 61674) by debbugs.gnu.org; 26 Feb 2023 00:44:20 +0000 Received: from localhost ([127.0.0.1]:41883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW59I-0007C9-1P for submit@debbugs.gnu.org; Sat, 25 Feb 2023 19:44:20 -0500 Received: from mail-wm1-f41.google.com ([209.85.128.41]:41617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW59E-0007Bo-VL for 61674@debbugs.gnu.org; Sat, 25 Feb 2023 19:44:18 -0500 Received: by mail-wm1-f41.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso137423wmo.0 for <61674@debbugs.gnu.org>; Sat, 25 Feb 2023 16:44:16 -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=WPRJ02iZoLs3CnqcIStZm4+6M8yg8GnjkMO1lTjUiR4=; b=qycqHrnSthpDqUNPXmdpK0XDwzZDk5EfQQy+xNY3a5mfH8tTGJ1U9sFTGROZYF6qbY 6QaHKAI50eBYVJACkR8Mykj3xuXEx4Q+xjz3BtXe5X5PU1xl2OqaP18+JNxUS7cA44Vi mCPvI7BZEUOrfxUG7lQvv02A5groem6ZQAzheKsJqFPxqnVbZeb/uVt/5YhDLTo56mwT pChwC25E1d1jtJOcVV1GRytReP8WWkDCDLkEbqThZMqIhO98+3pb3bBzjfP2YUwIV3sn NuU5p8vuX1fCR/D0YVIyWoGFaKLWDx5bVgMJFg6z92QUCwBjYDZxBkXO97SZv5K6dhjT KGgg== 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=WPRJ02iZoLs3CnqcIStZm4+6M8yg8GnjkMO1lTjUiR4=; b=KsCxDBl294IXegHEWukPmhbievMw8NANltiA2WhQvtwte5S1mYSfd/Qhu2aK1aDcSd 8C7EqjTwXxcGjvtRTZb7mnaAK3HIsFIiZO8kl5qGsquvh/xKLtZMuX848LHpyMqyndgu wdKdbz/ANx3WKtkZE3VsEZjsrPjsQLZsSC2yakoF4lfGhwXOpEtZ3ZBk6pZMghpL3+6M tdceDyA8byMR3xLqM2fBOZ+zhgUX9RdnrYf4oYqRecohavi8n2Th2b22OOSgAaiohiqv YsJkKPHtvgpD7uIi5DmiXJ6yt2h6da0R5L9aMTsGwVozmS4iE5Ji/3E5/BXrjWykCPJo Yesw== X-Gm-Message-State: AO0yUKXRbZ+/Y6B+Gff1OQCzNFFiIIMpWf573DSyH7u6pY0w4v4lSuI0 xR/pocXx7+NCKiFCmdWq/jLugrp1h0g= X-Google-Smtp-Source: AK7set+kzkBuR+hrHi4weel5xHZPWRy+c9PJBjqffB1X1BGpdPf4hfvayXLKX7sHcxYLdO38Z4jieQ== X-Received: by 2002:a05:600c:3318:b0:3ea:dc1b:90c with SMTP id q24-20020a05600c331800b003eadc1b090cmr6981242wmp.20.1677372251069; Sat, 25 Feb 2023 16:44:11 -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 m7-20020adfe947000000b002c70f5627d5sm2963695wrn.63.2023.02.25.16.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 16:44:10 -0800 (PST) From: Sharlatan Hellseher Date: Sun, 26 Feb 2023 00:44:03 +0000 Message-Id: <20230226004406.6215-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 | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 5cee981671..0f3176bc3e 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,64 @@ (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" + "-DCMAKE_CXX_FLAGS=-fPIC"))) + (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" + "-DCMAKE_CXX_FLAGS=-fPIC"))) + (inputs + (alist-replace "qtbase" (list qtbase-5) + (package-inputs calcmysky))) + (synopsis "Qt5 build for the CalcMySky library."))) + (define-public aoflagger (package (name "aoflagger")