From patchwork Tue Feb 28 00:12:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 47466 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 A163716B72; Tue, 28 Feb 2023 00:13:33 +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=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 A5E0A16955 for ; Tue, 28 Feb 2023 00:13:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWncG-0008Qn-Lw; Mon, 27 Feb 2023 19:13:12 -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 1pWnc7-0008IJ-EF for guix-patches@gnu.org; Mon, 27 Feb 2023 19:13:03 -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 1pWnc7-0005H3-1c for guix-patches@gnu.org; Mon, 27 Feb 2023 19:13:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWnc6-0005Vq-Tf for guix-patches@gnu.org; Mon, 27 Feb 2023 19:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61674] [PATCH v3 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, 28 Feb 2023 00:13: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.167754316321112 (code B ref 61674); Tue, 28 Feb 2023 00:13:02 +0000 Received: (at 61674) by debbugs.gnu.org; 28 Feb 2023 00:12:43 +0000 Received: from localhost ([127.0.0.1]:49256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWnbl-0005UE-Du for submit@debbugs.gnu.org; Mon, 27 Feb 2023 19:12:43 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:50826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWnbj-0005Tr-Hj for 61674@debbugs.gnu.org; Mon, 27 Feb 2023 19:12:40 -0500 Received: by mail-wm1-f49.google.com with SMTP id k37so5375148wms.0 for <61674@debbugs.gnu.org>; Mon, 27 Feb 2023 16:12:39 -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=iVL89AjUD6CJtUqlKIOQ/fB9kmTJcCfbOwyGI3Sg13o=; b=bdkHmSRgyXrr/JX5cKG1Nm9/7KjZ7iiFKvCDPu4uLoemsFZhNRM9q1cAo8H0aKG/MW N0Hm8ovhgOYW2Po2rS4On01Tk3cuuPwjfGVQpxnOktKHmbv0NEnL9DirJ0dKFQmYaxZe cIvysWMhWBsIIaDryPxMObEn2TXC1c7VZnsEXdZyyLHvznkC0j4ld9zNOmQnt8IZP1k5 C3BnjF7/lW5DSWb0fVAkwmvXF6YhpJ3yPLgfsY/5fPQNQ1du6rQEUh+2SovvfpVBBAKg 4F8DOPoU1240RfqFKnNq1A/Hw6BDvh9DpUmPacb+XAZ7ldd04xN4KPzWyAwNYlNLJ6e7 okhQ== 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=iVL89AjUD6CJtUqlKIOQ/fB9kmTJcCfbOwyGI3Sg13o=; b=oST3f/xlKAiSBs7SjrNqAInV9O/G0YUCx1l3wK+hwDLexSpaYBUyhcvR25KAKjxB0K A7t1DqWCpkZSuBjWy9sXAzp1FOvW4tNczIAPoBqMXqeXEEoMBVGdIet/V/56jndKo67c NPRQ7HikrKymZljF4EzTC4w1XFMM/BGE1wkpp7b2KXQuW4Y0kEisp9cbHLAaMAarWiJT Cp2cHORBiUwjmEnhcI5h3LDFrFysnHWEFGRXBblS/iUKQUL85GrKpdpMYHsWSLxaKz+H gQ602SdUcNiRqoLkt4PRHiC6Qlz6Hy4UOO49PUj9LCej81QUXzxAhxZ4zjJmXtdNB7y5 OrhA== X-Gm-Message-State: AO0yUKV4VhDqylMX4QhKInZAsDOb+/MHgG+tQyaBGO5w8GL5wy1UHXa/ /U14qbloswQvtSiWd1sRcbHtDYnQfqA= X-Google-Smtp-Source: AK7set9IClLpZl+fBg1NkvrFfYJ/4Lpm6yJpqTuTB/pFodCDl/NoEoxiWwfBkqiBme9U25huvagCCA== X-Received: by 2002:a05:600c:5020:b0:3e2:91c:7cb7 with SMTP id n32-20020a05600c502000b003e2091c7cb7mr603445wmr.39.1677543153764; Mon, 27 Feb 2023 16:12:33 -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 g10-20020a7bc4ca000000b003dc4a47605fsm14445812wmk.8.2023.02.27.16.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 16:12:33 -0800 (PST) From: Sharlatan Hellseher Date: Tue, 28 Feb 2023 00:12:27 +0000 Message-Id: <20230228001230.3573-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..bf022c1804 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -209,6 +209,63 @@ (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 + (modify-inputs (package-inputs calcmysky) + (replace "qtbase" qtbase-5))) + (synopsis "Qt5 build for the CalcMySky library."))) + (define-public aoflagger (package (name "aoflagger")