mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: sugar-write-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-write-activity): Run guix style. [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: Ic8a9b089de23000141a492a3baee36a5ab0bb4bb Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
ed95c695f7
commit
7eeeb2d8ce
1 changed files with 21 additions and 18 deletions
|
@ -1436,19 +1436,20 @@ typist.")
|
||||||
(package
|
(package
|
||||||
(name "sugar-write-activity")
|
(name "sugar-write-activity")
|
||||||
(version (git-version "101" revision commit))
|
(version (git-version "101" revision commit))
|
||||||
(source (origin
|
(source
|
||||||
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/sugarlabs/write-activity")
|
(url "https://github.com/sugarlabs/write-activity")
|
||||||
(commit commit)))
|
(commit commit)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0lw34hf31fyfvqilzlmcz3c7zki0iqkn1zp2sv3dih016gwqg5pw"))))
|
||||||
"0lw34hf31fyfvqilzlmcz3c7zki0iqkn1zp2sv3dih016gwqg5pw"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-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-launcher
|
(add-after 'unpack 'patch-launcher
|
||||||
|
@ -1456,12 +1457,15 @@ typist.")
|
||||||
(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)))))))
|
||||||
|
(native-inputs (list python-setuptools-next))
|
||||||
;; All these libraries are accessed via gobject introspection.
|
;; All these libraries are accessed via gobject introspection.
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list abiword
|
(list abiword
|
||||||
|
@ -1469,12 +1473,11 @@ typist.")
|
||||||
gtk+
|
gtk+
|
||||||
libgsf
|
libgsf
|
||||||
telepathy-glib))
|
telepathy-glib))
|
||||||
(inputs
|
(inputs (list sugar-toolkit-gtk3 gettext-minimal))
|
||||||
(list sugar-toolkit-gtk3
|
|
||||||
gettext-minimal))
|
|
||||||
(home-page "https://help.sugarlabs.org/write.html")
|
(home-page "https://help.sugarlabs.org/write.html")
|
||||||
(synopsis "Word processor for Sugar desktop")
|
(synopsis "Word processor for Sugar desktop")
|
||||||
(description "Write is a word processor activity for the Sugar desktop.
|
(description
|
||||||
Write embeds the AbiWord word processor, and can be used to write and edit
|
"Write is a word processor activity for the Sugar desktop. Write embeds
|
||||||
text documents.")
|
the AbiWord word processor, and can be used to write and edit text
|
||||||
|
documents.")
|
||||||
(license license:gpl2+))))
|
(license license:gpl2+))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue