From patchwork Thu Jan 28 20:44:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 26708 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 01DEB27BC1D; Thu, 28 Jan 2021 20:45:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED,URIBL_SBL, URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0204027BC1C for ; Thu, 28 Jan 2021 20:45:28 +0000 (GMT) Received: from localhost ([::1]:58244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5EAQ-0002Y4-S7 for patchwork@mira.cbaines.net; Thu, 28 Jan 2021 15:45:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5EA2-0002Xr-Bq for guix-patches@gnu.org; Thu, 28 Jan 2021 15:45:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5EA2-0003uk-2w for guix-patches@gnu.org; Thu, 28 Jan 2021 15:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5EA1-000421-WF for guix-patches@gnu.org; Thu, 28 Jan 2021 15:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46160] [PATCH] Add new plplot Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Jan 2021 20:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46160 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46160@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161186667815432 (code B ref -1); Thu, 28 Jan 2021 20:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2021 20:44:38 +0000 Received: from localhost ([127.0.0.1]:50395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5E9e-00040q-1G for submit@debbugs.gnu.org; Thu, 28 Jan 2021 15:44:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:52390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5E9Z-00040f-Av for submit@debbugs.gnu.org; Thu, 28 Jan 2021 15:44:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5E9Y-0002V0-Ud for guix-patches@gnu.org; Thu, 28 Jan 2021 15:44:33 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:45245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5E9W-0003iy-OX for guix-patches@gnu.org; Thu, 28 Jan 2021 15:44:32 -0500 Received: by mail-wr1-x42f.google.com with SMTP id m13so6754654wro.12 for ; Thu, 28 Jan 2021 12:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Ny/Rb94vn+juMyD0T6b9/qZMP9LuGtV4XUJHlaj7Ops=; b=r8cDEAGR+1JSyfVu50P7HCZ6XXEqz4F+kp/P1nfcRvC4Um/ShPqa4WczC1/VpitIuK l+w5uvM3e+sLYmhX2zXkJ/RT09iSbxABfTG4tso4cd1giajd6B0ZZl9Z/LRpFXjG8wSo R6obubbOk0U0xEjyifpVhxQ06nS/J7A30X4HcKcr/eE5y/suwy5nsEdPNM+VXRhDk/el Ks34GsFfC6aQXa1E5BmA38hxwXcvVqXKzJuobyt6SGCCprB+Lv6Ly7lTgagHArG0l2lJ FaiLdV4KFh4iBcGGHG20R1vSZjNCf+Wym477RAVZ2jm43SOgLRHCe6xdZxHWGKkpNDiQ Gsig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Ny/Rb94vn+juMyD0T6b9/qZMP9LuGtV4XUJHlaj7Ops=; b=nOJGNyd9a9zhAEiFJl6wvOo12yQWhefQBY5UdyrBJPtQ6ovNhHAplGpv6fEVq5psTS ZhaAM7HC+hvWIA5bOXYXUbbv+cDHKvUqxlxvPjipPFIIqBKEa8V5mmwmRS6bUTGuJ+cl AVQOcuZYac5V1CN9DjGcFryTO9B3R4cOvetHh4CkhEDLJBzNB5vxiuMolY4nXI6wA1B+ O9reDrSRlEYNknJTWxfh5kpWd8kj9vjpg05f9ND0wSRHC6PpwQQWeckLs1St5XVadXLs OzxWrO2WL/LD5VGVtPPkOizNunqYOhbeV+4KXYnaqaVTokc++0DyAFKwpucCXko2/rsI v35Q== X-Gm-Message-State: AOAM533DZYLosjkB7wx2s11WMNLZZXuYMoxWAYeMWc9zMo8szRvWhk6r bxMw00UIaeoIgtVwLG9OqSNgEQmOryO/jzIkfSMkuVT/KFg= X-Google-Smtp-Source: ABdhPJx0T8LGZgUgOEdLkm9sL32QB403dY340a30YXJTEQ8hZE/Ls1Y+/3Ls6ODFFsUjbWflIyFLR+8QhrMSZ7oItO4= X-Received: by 2002:adf:9d48:: with SMTP id o8mr950581wre.408.1611866668502; Thu, 28 Jan 2021 12:44:28 -0800 (PST) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Thu, 28 Jan 2021 20:44:17 +0000 Message-ID: Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=sharlatanus@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches Hi Guix team! Here is a draft of PLplot package which I made by checking how Debian's one is distributed. I need some competent review of someone who has more experience in CMake. On the way on packing astronomy software :) Regards From f51a42cecff89d8fc4b892d07d377959122d8f5c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 28 Jan 2021 20:37:49 +0000 Subject: [PATCH] gnu: Add plplot * gnu/packages/maths.scm (plplot): New variable --- gnu/packages/maths.scm | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index eff1480e62..97027c8039 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Simon Tournier ;;; Copyright © 2020 Martin Becze +;;; Copyright © 2021 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -91,6 +92,7 @@ #:use-module (gnu packages flex) #:use-module (gnu packages fltk) #:use-module (gnu packages fontutils) + #:use-module (gnu packages geo) #:use-module (gnu packages gettext) #:use-module (gnu packages gcc) #:use-module (gnu packages gd) @@ -117,7 +119,9 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages netpbm) #:use-module (gnu packages onc-rpc) + #:use-module (gnu packages ocaml) #:use-module (gnu packages pcre) + #:use-module (gnu packages pdf) #:use-module (gnu packages popt) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -131,6 +135,7 @@ #:use-module (gnu packages tbb) #:use-module (gnu packages scheme) #:use-module (gnu packages shells) + #:use-module (gnu packages swig) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) #:use-module (gnu packages tex) @@ -5870,6 +5875,94 @@ termination analysis via the automatic synthesis of linear ranking functions.") (license license:gpl3+))) +(define-public plplot + (package + (name "plplot") + (version "5.15.0") + (source + (origin + (method git-fetch) + (uri (git-reference + ;; Mirror: https://github.com/PLplot/PLplot + (url "https://git.code.sf.net/p/plplot/plplot") + (commit (string-append name "-" version)))) + (sha256 + (base32 "0fn9j251zv9pwlqy30yv4flwcd0cbyxd1nn388n1k158jycw2i91")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:configure-flags + (let ((out (assoc-ref %outputs "out"))) + (list + "-DBUILD_DOC=ON" + "-DBUILD_TEST=ON" + "-DCMAKE_BUILD_TYPE=Release" + "-DCMAKE_RULE_MESSAGES=OFF" + "-DENABLE_ada=ON" + "-DENABLE_cxx=ON" + "-DENABLE_d=ON" + "-DENABLE_fortran=ON" + "-DENABLE_lua=ON" + "-DENABLE_ocaml=ON" + "-DENABLE_octave=ON" + "-DENABLE_python=ON" + "-DENABLE_tcl=ON" + "-DENABLE_tkX=ON" + "-DNON_TRANSITIVE=ON" + "-DPLD_cgm=ON" + "-DPLD_ps=ON" + "-DPLD_psttf=OFF" + "-DPLD_svg=ON" + "-DPLD_tk=ON" + "-DUSE_RPATH=OFF" + (string-append "-DCMAKE_INSTALL_LIBDIR=" out "/lib") + (string-append "-DCMAKE_INSTALL_PREFIX=" out))) + ;; NOTE: (Sharlatan-20210128T120312+0000): failing on example_cxx, I + ;; leave it for someone who has more knowledge in CMake. Tests are + ;; disalbed for now. + ;; #:phases + ;; (modify-phases %standard-phases + ;; (replace 'check + ;; (lambda _ + ;; (invoke "ctest")))) + )) + (native-inputs + `(("pkg-config" ,pkg-config) + ("swig" ,swig))) + ;; NOTE: (Sharlatan-20210128T201941+0000): It needs to be reviewed properly, if + ;; octave is included it takes incredibly long time to build `plplot' + (inputs + `(("cairo" ,cairo) + ("freetype" ,freetype) + ("gd" ,gd) + ("gfortran" ,gfortran) + ("libharu" ,libharu) + ("lua" ,lua) + ("ocaml" ,ocaml) + ("pango" ,pango) + ("python" ,python) + ("qhull" ,qhull) + ("shapelib" ,shapelib) + ("tcllib" ,tcllib) + ("tk" ,tk) + ("wxwidgets" ,wxwidgets))) + (home-page "http://plplot.org/") + (synopsis "Ultimate plotting") + (description + "PLplot is a cross-platform software package for creating scientific plots +whose (UTF-8) plot symbols and text are limited in practice only by what +Unicode-aware system fonts are installed on a user's computer. The PLplot +software has a clean architecture that is organized as a core C library, +separate language bindings for that library, and separate device drivers that +are dynamically loaded by the core library which control how the plots are +presented in noninteractive and interactive plotting contexts. + +Output file formats: CGM GIF JPEG PBM PDF PNG PostScript SVG Xfig +Interactive platforms: GDI GTK+PyQt Qt Tcl/Tk wxWidgets X +Language Bindings: Ada C++ D Fortran Lua OCaml Octave Perl/PDL Python Tcl/Tk") + (license license:lgpl2.0))) ; Other terms are in Copyright file + (define-public speedcrunch (package (name "speedcrunch") -- 2.30.0