From patchwork Mon Mar 27 08:46:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 48742 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 E3CD817009; Mon, 27 Mar 2023 09:48:32 +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=-1.8 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 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 54D8816934 for ; Mon, 27 Mar 2023 09:48:29 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgiWX-0004sS-5o; Mon, 27 Mar 2023 04:48:19 -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 1pgiWJ-0004s2-1b for guix-patches@gnu.org; Mon, 27 Mar 2023 04:48:04 -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 1pgiWI-0002FI-D8 for guix-patches@gnu.org; Mon, 27 Mar 2023 04:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pgiWI-0003ia-9Z for guix-patches@gnu.org; Mon, 27 Mar 2023 04:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62306] [PATCH v2] gnu: Add phd2. References: <20230320215028.26102-1-sharlatanus@gmail.com> In-Reply-To: <20230320215028.26102-1-sharlatanus@gmail.com> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Mar 2023 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62306 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 62306@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 62306-submit@debbugs.gnu.org id=B62306.167990682214010 (code B ref 62306); Mon, 27 Mar 2023 08:48:02 +0000 Received: (at 62306) by debbugs.gnu.org; 27 Mar 2023 08:47:02 +0000 Received: from localhost ([127.0.0.1]:46480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgiVJ-0003dp-Nd for submit@debbugs.gnu.org; Mon, 27 Mar 2023 04:47:02 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:41772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgiVH-0003dU-8X for 62306@debbugs.gnu.org; Mon, 27 Mar 2023 04:47:00 -0400 Received: by mail-wr1-f53.google.com with SMTP id h17so7808469wrt.8 for <62306@debbugs.gnu.org>; Mon, 27 Mar 2023 01:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679906813; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FXfZAcEBk3r+Xpqffx2Oln5PJg04dVBZMZ6WsvaTXQs=; b=NmkL0Al+7p+uOQvYMWQFxwAPWV4IGt8E/rezLSlmvXCeR5dLkpiylnqUZmWyRFLp8/ C4jZtnH/dpD7k64QqPQRnmHEZ3Kvrx82WylBapLS4eEPrFRqYDmVwHE1XPu6aLVgGqSt 77lAHLlJlIxz+/eKQY1dhoy3aWC8tOxVYS5dJUgUBMunftu3jgtWO2sxfhfReK7Ghlka yClEP/8Q3ioha23OwolLw5QEIEcN4rskT/5XC4tJ0Q9m1Hae53XnHQi6bjTEVFdVRafk YVX92pdzXtWChGVMYZPEkKpP8kWPIdep07sAqruNZlZmh/Cie0HOmEXLTq6t0E2gPy/H Mzgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679906813; 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=FXfZAcEBk3r+Xpqffx2Oln5PJg04dVBZMZ6WsvaTXQs=; b=53R6hTyZacLd9BJx5lBx9SmuZ9KKAsO5QXiTWYbBcDzrDT1TF+pGzXGcFr+bmcvDic wZiCkyFtarZDKLqeuKMS6LcCas/rCJM+PkiHM50mCwWHI9HvzpFquVTtqksi5kOGoWfa nc/GWBI3V/n8wjC3Qcpp5SmG4yYI0S4a07mP2LpNELMUuC4+gcBfCfiv2aADbzMmPzhI VzgVW1wF58RSFG/NvFkOHJr+0YVIbIql1VQX8Wkl2EV7jQ1i0kUBfLEwsPO0Etbn41X6 vFF6x1xkCLopxBgZ5JD8ni3tQk0aJCsDY7NAKigj6Ol3kmlv+rnWTc2yA6ElEmFAAmov JY/A== X-Gm-Message-State: AAQBX9cYol3R6SV2Q7DLwG4fflQFccJ7LDdo+emxsrinwYkdvW7bofs+ /Oqy4sKDwIjjUnB/sxJesRxEjgFLJN8= X-Google-Smtp-Source: AKy350b2zkiDL5hqdrom0dJghr2P/UP84pXKQtYQdPlDuyxedYgaUtA+Lr53Utj4QCjxz+bGF6hgEw== X-Received: by 2002:a5d:6a50:0:b0:2cf:ec49:958b with SMTP id t16-20020a5d6a50000000b002cfec49958bmr8470156wrw.12.1679906813197; Mon, 27 Mar 2023 01:46:53 -0700 (PDT) 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 v15-20020a5d590f000000b002cfec8b7f89sm24651555wrd.77.2023.03.27.01.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 01:46:52 -0700 (PDT) From: Sharlatan Hellseher Date: Mon, 27 Mar 2023 09:46:49 +0100 Message-Id: <20230327084649.5633-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.2 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 (phd2): New variable. --- gnu/packages/astronomy.scm | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 46839c802f..6ca3c4f4e7 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -678,6 +678,76 @@ (define-public gnuastro programs for the manipulation and analysis of astronomical data.") (license license:gpl3+))) +(define-public phd2 + (package + (name "phd2") + (version "2.6.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenPHDGuiding/phd2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n87xsv9gzrwk1ygws4vw397ffq40xybp5b3c3bd5kcmff0avaw9")) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + #~(begin + ;; TODO: This snippet is sourced from + ;; guix/gnu/packages/vnc.scm. It might be merged with + ;; `delete-file-recursively' which can have `ignore' optional + ;; argument. + (define (delete-all-but directory . preserve) + (define (directory? x) + (and=> (stat x #f) + (compose (cut eq? 'directory <>) stat:type))) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each (lambda (item) + (if (directory? item) + (delete-file-recursively item) + (delete-file item))) + items)))) + ;; XXX: Check this list of ignored items in next release. + (delete-all-but "thirdparty" "thirdparty.cmake"))))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DOPENSOURCE_ONLY=yes" + "-DUSE_SYSTEM_CFITSIO=yes" + "-DUSE_SYSTEM_EIGEN3=yes" + "-DUSE_SYSTEM_GTEST=yes" + "-DUSE_SYSTEM_LIBINDI=yes" + "-DUSE_SYSTEM_LIBUSB=yes"))) + (native-inputs + (list gettext-minimal + googletest + perl + pkg-config + python-wrapper)) + (inputs + (list cfitsio + curl-minimal + eigen + gtk+ + indi + libnova + libusb + wxwidgets + zlib)) + (home-page "https://openphdguiding.org") + (synopsis "Teleskope guiding software") + (description + "PHD2 is the enhanced, second generation version of the PHD guiding software +from Stark Labs.") + (license license:bsd-3))) + (define-public sextractor (package (name "sextractor")