summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-22 00:21:22 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-27 20:13:59 +0000
commit619cc0db5d70a5710dcd65b34fe28be03545cf25 (patch)
treeccd9bc0a3d16090b1275260916174b23ced1f107 /gnu
parentaa2288f00d7b4cecddcd7b9e802e2c270cccb8d9 (diff)
gnu: toutenclic: Switch to pyproject.
* gnu/packages/education.scm (toutenclic): [build-system]: Switch to pyproject-build-system. [arguments]: Refresh them, improve style. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I08e66c14fb71763b76337035dc694f829809bd02 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/education.scm96
1 files changed, 48 insertions, 48 deletions
diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm
index 67e44979221..57a94da6f84 100644
--- a/gnu/packages/education.scm
+++ b/gnu/packages/education.scm
@@ -66,6 +66,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
@@ -377,47 +378,48 @@ to open the application in a web browser, for offline usage.")
(uri (list
;; XXX: Upstream does not exist anymore.
;; (string-append "http://www.bipede.fr/downloads/logiciels/"
- ;; "ToutEnClic-" version "-src.zip")
- (string-append "https://archive.org/download/tout-en-clic-" version
- "-src/ToutEnClic-" version "-src.zip")))
+ ;; "ToutEnClic-" version "-src.zip")
+ (string-append "https://archive.org/download/tout-en-clic-"
+ version "-src/ToutEnClic-" version "-src.zip")))
(sha256
(base32 "0xg24p925rl5bfqsq3jb2lrkidb0f3kbmay5iyxxmjsn3ra0blyh"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; no tests
- #:phases
- (modify-phases %standard-phases
- (delete 'build)
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (share (string-append out "/share/toutenclic"))
- (pixmaps (string-append out "/share/pixmaps"))
- (doc (string-append out "share/doc/" ,name "-" ,version))
- (bin (string-append out "/bin"))
+ (list
+ #:tests? #f ;no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)
+ (replace 'install
+ (lambda _
+ (let ((share (string-append #$output "/share/toutenclic"))
+ (bin (string-append #$output "/bin"))
(executable "toutenclic"))
- ;; Install icon.
- (install-file "toutenclic.png" pixmaps)
- ;; Move files into "share/" directory.
- (for-each (lambda (f) (install-file f share))
- (find-files "." "\\.py$"))
- ;; Install documentation.
- (install-file "ToutEnClic.pdf" doc)
- ;; Create executable in "bin/".
- (mkdir-p bin)
- (with-directory-excursion bin
- (symlink (string-append share "/" executable ".py")
- executable)))))
- (add-after 'install 'create-desktop-file
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (applications (string-append out "/share/applications")))
- (mkdir-p applications)
- (call-with-output-file
- (string-append applications "/toutenclic.desktop")
- (lambda (file)
- (format file
- "[Desktop Entry]~@
+ ;; Install icon.
+ (install-file "toutenclic.png"
+ (string-append #$output "/share/pixmaps"))
+ ;; Move files into "share/" directory.
+ (for-each (lambda (f)
+ (install-file f share))
+ (find-files "." "\\.py$"))
+ ;; Install documentation.
+ (install-file "ToutEnClic.pdf"
+ (string-append #$output "share/doc/"
+ #$name "-" #$version))
+ ;; Create executable in "bin/".
+ (mkdir-p bin)
+ (with-directory-excursion bin
+ (symlink (string-append share "/" executable ".py")
+ executable)))))
+ (add-after 'install 'create-desktop-file
+ (lambda _
+ (let ((applications (string-append #$output "/share/applications")))
+ (mkdir-p applications)
+ (call-with-output-file (string-append applications
+ "/toutenclic.desktop")
+ (lambda (file)
+ (format file
+ "[Desktop Entry]~@
Name=ToutEnClic~@
Comment=For schooling without difference~@
Exec=~a/bin/toutenclic~@
@@ -425,18 +427,16 @@ to open the application in a web browser, for offline usage.")
Terminal=false~@
Icon=toutenclic~@
Type=Application~%"
- out)))))))))
- (native-inputs
- (list unzip))
- (inputs
- (list python-pyqt))
+ #$output)))))))))
+ (native-inputs (list unzip python-setuptools))
+ (inputs (list python-pyqt))
(synopsis "School tools for physically disabled children")
- (description "ToutEnClic is intended to facilitate the schooling
-of physically disabled children in ordinary schools. It is both
-a multi-page virtual exercise book and a kit including pencil,
-scissors, glue, ruler, compass, protractor and square. A virtual
-keyboard is also available if the child does not have any other
-specialized device.")
+ (description
+ "ToutEnClic is intended to facilitate the schooling of physically
+disabled children in ordinary schools. It is both a multi-page virtual
+exercise book and a kit including pencil, scissors, glue, ruler, compass,
+protractor and square. A virtual keyboard is also available if the child does
+not have any other specialized device.")
(home-page "https://bipede.fr/contrib/")
(license license:gpl3)))