[bug#52165,v2,2/2] gnu: Add kalgebra.

Message ID 3ce3bed43a6cd2bb90a6e3e6128cbfeb9df0b88a.1743381451.git.monego@posteo.net
State New
Headers
Series [bug#52165,v2,1/2] gnu: Add analitza. |

Commit Message

Vinicius Monego March 31, 2025, 12:38 a.m. UTC
  * gnu/packages/kde.scm (kalgebra): New variable.

Change-Id: I60172ea8c9d124422d0dfd8d871e28e75bf0e4ec
---
 gnu/packages/kde.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
  

Comments

Andreas Enge March 31, 2025, 9:16 a.m. UTC | #1
Excellent, thanks! The two packages have already been built by QA.
I have taken the liberty to push on your behalf and close the issue.

Andreas
  

Patch

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 386640e584..cb982e6b75 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -94,6 +94,7 @@  (define-module (gnu packages kde)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages markup)
   #:use-module (gnu packages maths)
+  #:use-module (gnu packages ncurses)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages ocr)
   #:use-module (gnu packages onc-rpc)
@@ -106,6 +107,7 @@  (define-module (gnu packages kde)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages readline)
   #:use-module (gnu packages samba)
   #:use-module (gnu packages scanner)
   #:use-module (gnu packages sdl)
@@ -476,6 +478,58 @@  (define-public analitza
 expressions and let you evaluate and draw them.")
     (license license:gpl2+)))
 
+(define-public kalgebra
+  (package
+    (name "kalgebra")
+    (version "24.12.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://invent.kde.org/education/kalgebra")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0g4rrq3csp0w6xhc5cbbilz7xhhq9zdngc8bc9d16p02xz61qd4i"))))
+    (build-system qt-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'wrap-qt-process-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((bin (string-append #$output "/bin/kalgebra"))
+                    (qt-process-path
+                     (search-input-file
+                      inputs "/lib/qt6/libexec/QtWebEngineProcess")))
+                (wrap-program bin
+                  `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))))))))
+    (native-inputs
+     (list extra-cmake-modules qttools))
+    (inputs
+     (list analitza
+           kconfigwidgets
+           kcoreaddons
+           kdoctools
+           ki18n
+           kio
+           kwidgetsaddons
+           kxmlgui
+           libplasma
+           ncurses
+           qtbase
+           qtdeclarative
+           qtsvg
+           qtwebengine
+           qtwebchannel
+           readline))
+    (home-page "https://invent.kde.org/education/kalgebra")
+    (synopsis "Calculator and plotting tool")
+    (description "KAlgebra is a calculator that lets you plot different types
+of 2D and 3D functions and to calculate easy (and not so easy) calculations,
+such as addition, trigonometric functions or derivatives.")
+    (license license:gpl2+)))
+
 (define-public kapptemplate
   (package
     (name "kapptemplate")