mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: sugar-log-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-log-activity): [build-system]: Switch to pyproject-build-system. [arguments]: Replace <#:test-target> with <#:test-flags>. <#:phases>: Run guix style. Delete 'build phase. [native-inputs]: Add python-setuptools-next. Change-Id: I1421404161f45cca9f7e8cb4e94dbfd04ec80194 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
e210edc78c
commit
bc0de8ca12
1 changed files with 33 additions and 26 deletions
|
@ -845,36 +845,44 @@ and @file{.pls}.")
|
||||||
(package
|
(package
|
||||||
(name "sugar-log-activity")
|
(name "sugar-log-activity")
|
||||||
(version (git-version "42" revision commit))
|
(version (git-version "42" revision commit))
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/sugarlabs/log-activity")
|
(uri (git-reference
|
||||||
(commit commit)))
|
(url "https://github.com/sugarlabs/log-activity")
|
||||||
(file-name (git-file-name name version))
|
(commit commit)))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"0pacd677gfhyym153x5grwimk8wgm4c9k0a463pq6fdrhm1g5wpc"))))
|
(base32 "0pacd677gfhyym153x5grwimk8wgm4c9k0a463pq6fdrhm1g5wpc"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-target "check"
|
#:test-flags
|
||||||
|
#~(list "check")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-locations
|
(add-after 'unpack 'patch-locations
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "logcollect.py"
|
(substitute* "logcollect.py"
|
||||||
(("'/sbin/ifconfig'")
|
(("'/sbin/ifconfig'")
|
||||||
(string-append "'" (search-input-file inputs "/bin/ifconfig") "'"))
|
(string-append "'"
|
||||||
|
(search-input-file inputs "/bin/ifconfig")
|
||||||
|
"'"))
|
||||||
(("'/sbin/route")
|
(("'/sbin/route")
|
||||||
(string-append "'" (search-input-file inputs "/bin/route")))
|
(string-append "'"
|
||||||
|
(search-input-file inputs "/bin/route")))
|
||||||
(("'/bin/df")
|
(("'/bin/df")
|
||||||
(string-append "'" (search-input-file inputs "/bin/df")))
|
(string-append "'"
|
||||||
|
(search-input-file inputs "/bin/df")))
|
||||||
(("'/bin/ps")
|
(("'/bin/ps")
|
||||||
(string-append "'" (search-input-file inputs "/bin/ps")))
|
(string-append "'"
|
||||||
|
(search-input-file inputs "/bin/ps")))
|
||||||
(("'/usr/bin/free")
|
(("'/usr/bin/free")
|
||||||
(string-append "'" (search-input-file inputs "/bin/free")))
|
(string-append "'"
|
||||||
|
(search-input-file inputs "/bin/free")))
|
||||||
(("'/usr/bin/top")
|
(("'/usr/bin/top")
|
||||||
(string-append "'" (search-input-file inputs "/bin/top")))
|
(string-append "'"
|
||||||
|
(search-input-file inputs "/bin/top")))
|
||||||
(("'/usr/share/sugar/activities")
|
(("'/usr/share/sugar/activities")
|
||||||
"'/run/current-system/profile/share/sugar/activities"))))
|
"'/run/current-system/profile/share/sugar/activities"))))
|
||||||
(add-after 'unpack 'patch-launcher
|
(add-after 'unpack 'patch-launcher
|
||||||
|
@ -882,23 +890,22 @@ and @file{.pls}.")
|
||||||
(substitute* "activity/activity.info"
|
(substitute* "activity/activity.info"
|
||||||
(("exec = sugar-activity3")
|
(("exec = sugar-activity3")
|
||||||
(string-append "exec = "
|
(string-append "exec = "
|
||||||
(search-input-file inputs "/bin/sugar-activity3"))))))
|
(search-input-file inputs
|
||||||
|
"/bin/sugar-activity3"))))))
|
||||||
|
(delete 'build)
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
(invoke "python" "setup.py" "install"
|
(invoke "python" "setup.py" "install"
|
||||||
(string-append "--prefix=" #$output)))))))
|
(string-append "--prefix=" #$output)))))))
|
||||||
;; All these libraries are accessed via gobject introspection.
|
;; All these libraries are accessed via gobject introspection.
|
||||||
(propagated-inputs
|
(propagated-inputs (list gtk+ sugar-toolkit-gtk3))
|
||||||
(list gtk+
|
(inputs (list coreutils net-tools procps))
|
||||||
sugar-toolkit-gtk3))
|
(native-inputs (list gettext-minimal python-setuptools-next))
|
||||||
(inputs
|
|
||||||
(list coreutils net-tools procps))
|
|
||||||
(native-inputs
|
|
||||||
(list gettext-minimal))
|
|
||||||
(home-page "https://help.sugarlabs.org/log.html")
|
(home-page "https://help.sugarlabs.org/log.html")
|
||||||
(synopsis "Log activity for the Sugar learning environment")
|
(synopsis "Log activity for the Sugar learning environment")
|
||||||
(description "Log is part of the Sugar desktop. Log is used when
|
(description
|
||||||
|
"Log is part of the Sugar desktop. Log is used when
|
||||||
looking for why an activity or Sugar is not working properly.")
|
looking for why an activity or Sugar is not working properly.")
|
||||||
(license license:gpl2+))))
|
(license license:gpl2+))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue