summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-02-27 16:13:04 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-02-27 16:13:45 +0100
commitc21a2aa1f7f1e291906881c71888b62eeed2faec (patch)
treecd68ff5c7be5da89606263c4bc97a190a23c5ceb
parent20aae9ad31b073fec64177d0da399503d11c8c72 (diff)
gnu: Add sugar-help-activity.
* gnu/packages/sugar.scm (sugar-help-activity): New variable.
-rw-r--r--gnu/packages/sugar.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 7c72c1cbfe..fbc8da4206 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -344,3 +344,43 @@ and metadata, and the journal with querying and full text search.")
build activities and other Sugar components. This is the GTK+ 3 binding of
the Sugar Toolkit.")
(license license:lgpl2.1+)))
+
+
+(define-public sugar-help-activity
+ (let ((commit "492531e95a4c60af9b85c79c59c24c06c2cd4bb3")
+ (revision "1"))
+ (package
+ (name "sugar-help-activity")
+ (version (git-version "20" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sugarlabs/help-activity")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0awjbqyc9f74dx0d7fgjk42vfsygxr8jhwqiv4hpggqcawc02xv8"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:test-target "check"
+ #: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 _
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix=" #$output)))))))
+ (native-inputs
+ (list sugar-toolkit-gtk3))
+ (home-page "https://github.com/sugarlabs/help-activity")
+ (synopsis "Sugar activity for accessing documentation and manuals")
+ (description "This is an activity for the Sugar environment which aims
+to provide users with easy access to documentation and manuals.")
+ (license license:gpl3+))))