summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2025-01-09 15:12:26 +0100
committerRicardo Wurmus <rekado@elephly.net>2025-01-09 15:13:48 +0100
commitd60fb97b5f3cb61bc4c269ac5c1a4953965021cd (patch)
treeb7c59c5c97e8d543c83fcbf1c4a1f0202264a413
parent66a1a1fe22aff54973ab5c33957a338b33b8274c (diff)
gnu: Add sugar-portfolio-activity.
* gnu/packages/sugar.scm (sugar-portfolio-activity): New variable. Change-Id: I52246ce832a90b0e909112aeeb788d29184b45ec
-rw-r--r--gnu/packages/sugar.scm56
1 files changed, 55 insertions, 1 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 42b2e9694ab..9a82b5fb20e 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2023, 2024 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2023-2025 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -996,6 +996,60 @@ come to life with forces (think gravity, Newton!), friction (scrrrrape), and
inertia (ahh, slow down!).")
(license license:gpl3+))))
+(define-public sugar-portfolio-activity
+ (let ((commit "331c3e2542b4885112fd32b3c32ed4f5916d204c")
+ (revision "1"))
+ (package
+ (name "sugar-portfolio-activity")
+ (version (git-version "52" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sugarlabs/portfolio-activity")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1zaab7ara40imkd85hilslc4rqyjsgkzrcngsrw99dryl9n4mx1p"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:tests? #false ;there are none
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-launcher
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "activity/activity.info"
+ (("exec = sugar-activity3")
+ (string-append "exec = "
+ (search-input-file inputs "/bin/sugar-activity3"))))))
+ (replace 'install
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix=" #$output)))))))
+ ;; All these libraries are accessed via gobject introspection.
+ (propagated-inputs
+ (list cairo
+ pango
+ gdk-pixbuf
+ gobject-introspection
+ gtk+
+ gstreamer
+ gst-plugins-base
+ python-dbus
+ python-pygobject
+ sugar-datastore
+ sugar-toolkit-gtk3
+ telepathy-glib))
+ (inputs
+ (list gettext-minimal))
+ (home-page "https://github.com/sugarlabs/portfolio-activity")
+ (synopsis "Portfolio for the Sugar Journal")
+ (description "The Portfolio activity creates a slide show from Sugar
+Journal entries that have been ‘starred’.")
+ (license license:gpl3+))))
+
(define-public sugar-read-activity
(package
(name "sugar-read-activity")