From 09dbcc14a062d08845ed99f857998b76573fb934 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Mon, 2 Dec 2019 12:33:46 +0100 Subject: gnu: Add labplot. * gnu/packages/education.scm (labplot): New variable. --- gnu/packages/education.scm | 72 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 3146fc4e74..957449ed30 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -32,8 +32,10 @@ (define-module (gnu packages education) #:use-module (gnu packages audio) #:use-module (gnu packages algebra) #:use-module (gnu packages astronomy) + #:use-module (gnu packages audio) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages chemistry) #:use-module (gnu packages compression) @@ -1817,6 +1819,76 @@ (define-public kwordquiz (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) +(define-public labplot + (package + (name "labplot") + (version "2.8.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/labplot/" version + "/labplot-" version ".tar.xz")) + (sha256 + (base32 "16h7kv3k08x2a265cx0dxvflgd6d7rk6cbyrqi1cf8ar6fl0jsbj")))) + (build-system qt-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; The tests require some locale. + (add-before 'check 'set-locales + (lambda* (#:key inputs #:allow-other-keys) + (setenv "GUIX_LOCPATH" + (string-append (assoc-ref inputs "glibc-locales") + "/lib/locale")) + #t))))) + (native-inputs + `(("bison" ,bison) + ("extra-cmake-modules" ,extra-cmake-modules) + ("glibc-locales" ,glibc-locales) ; for tests + ("kdoctools" ,kdoctools) + ("pkg-config" ,pkg-config))) + (inputs + `(; FIXME: ("cantor" ,cantor) + ("cfitsio" ,cfitsio) + ("fftw" ,fftw) + ("gettext" ,gettext-minimal) + ("gsl" ,gsl) + ("hdf5" ,hdf5) + ("karchive" ,karchive) + ("kcompletion" ,kcompletion) + ("kconfig" ,kconfig) + ("kconfigwidgets" ,kconfigwidgets) + ("kcoreaddons" ,kcoreaddons) + ("kcrash" ,kcrash) + ("ki18n" ,ki18n) + ("kiconthemes" ,kiconthemes) + ("kio" ,kio) + ("knewstuff" ,knewstuff) + ("kparts" ,kparts) + ("kservice" ,kservice) + ("ksyntaxhighlighting" ,ksyntaxhighlighting) + ("ktextwidgets" ,ktextwidgets) + ("kwidgetsaddons" ,kwidgetsaddons) + ("kxmlgui" ,kxmlgui) + ;, TODO: libcerf + ("lz4" ,lz4) + ("netcdf" ,netcdf) + ("oxygen-icons" ,oxygen-icons) ;; default icon set + ("qtbase" ,qtbase) + ("qtserialport" ,qtserialport) + ("qtsvg" ,qtsvg) + ("shared-mime-info" ,shared-mime-info) + ("zlib" ,zlib))) + (home-page "https://kde.org/applications/education/org.kde.labplot") + (synopsis "Interactive graphing and analysis of scientific data") + (description " +LabPlot provides an easy way to create, manage and edit plots. +It allows you to produce plots based on data from a spreadsheet or on +data imported from external files. + +Plots can be exported to several pixmap and vector graphic formats.") + (license license:gpl2+))) + (define-public libkeduvocdocument (package (name "libkeduvocdocument") -- cgit v1.2.3