GNU bug report logs - #34687
[PATCH] Add toutenclic

Previous Next

Package: guix-patches;

Reported by: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Date: Thu, 28 Feb 2019 17:49:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34687 in the body.
You can then email your comments to 34687 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#34687; Package guix-patches. (Thu, 28 Feb 2019 17:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 28 Feb 2019 17:49:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: guix-patches <at> gnu.org
Subject: [PATCH] Add toutenclic
Date: Thu, 28 Feb 2019 18:48:27 +0100
[Message part 1 (text/plain, inline)]
Hello,

This patch adds toutenclic.

Feedback welcome. Thank you.

Regards,

-- 
Nicolas Goaziou
[0001-gnu-Add-toutenclic.patch (text/x-diff, inline)]
From 60822718faf19412753daedec1b50924b2d267a6 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Date: Thu, 28 Feb 2019 18:18:57 +0100
Subject: [PATCH] gnu: Add toutenclic.

* gnu/packages/education.scm (toutenclic): New variable.
---
 gnu/packages/education.scm | 69 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 68 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm
index 5b899f4e78..80d3049956 100644
--- a/gnu/packages/education.scm
+++ b/gnu/packages/education.scm
@@ -4,7 +4,7 @@
 ;;; Copyright © 2016 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
 ;;; Copyright © 2017, 2018 Efraim Flashner <efraim <at> flashner.co.il>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
-;;; Copyright © 2018 Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
+;;; Copyright © 2018, 2019 Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -51,6 +51,7 @@
   #:use-module (guix utils)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (srfi srfi-1))
 
@@ -303,3 +304,69 @@ science for high school or college students.
 This package provides a @command{snap} executable calling @command{xdg-open}
 to open the application in a web browser, for offline usage.")
     (license license:agpl3+)))
+
+(define-public toutenclic
+  (package
+    (name "toutenclic")
+    (version "6.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://www.bipede.fr/downloads/logiciels/"
+                           "ToutEnClic-" version ".tar.xz"))
+       (sha256
+        (base32
+         "1369m76fxmi2hgc2bbsq2jchcbh8q0qzml7600pqn8xiqrybvg9g"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f                      ;no test
+       #: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"))
+                    (bin (string-append out "/bin"))
+                    (executable "toutenclic.py"))
+               ;; Install icon.
+               (install-file "toutenclic.png" pixmaps)
+               ;; Move files into "share/" directory.
+               (mkdir-p share)
+               (copy-recursively "." share)
+               ;; Create executable in "bin/".
+               (mkdir-p bin)
+               (with-directory-excursion bin
+                 (symlink (string-append share "/" executable)
+                          executable)))
+             #t))
+         (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]~@
+                            Name=ToutEnClic~@
+                            Comment=For schooling without difference~@
+                            Exec=~a/bin/toutenclic.py~@
+                            TryExec=~@*~a/bin/toutenclic.py~@
+                            Terminal=false~@
+                            Icon=toutenclic~@
+                            Type=Application~%"
+                           out)))
+               #t))))))
+    (inputs `(("python-pyqt" ,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.")
+    (home-page "https://bipede.fr/contrib/")
+    (license license:gpl3)))
-- 
2.21.0


Information forwarded to guix-patches <at> gnu.org:
bug#34687; Package guix-patches. (Fri, 15 Mar 2019 17:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 34687 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 34687 <at> debbugs.gnu.org
Subject: Re: [bug#34687] [PATCH] Add toutenclic
Date: Fri, 15 Mar 2019 13:00:31 -0400
[Message part 1 (text/plain, inline)]
On Thu, Feb 28, 2019 at 06:48:27PM +0100, Nicolas Goaziou wrote:
> From 60822718faf19412753daedec1b50924b2d267a6 Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
> Date: Thu, 28 Feb 2019 18:18:57 +0100
> Subject: [PATCH] gnu: Add toutenclic.
> 
> * gnu/packages/education.scm (toutenclic): New variable.

LGTM, thanks!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#34687; Package guix-patches. (Fri, 15 Mar 2019 23:34:02 GMT) Full text and rfc822 format available.

Message #11 received at 34687 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Leo Famulari <leo <at> famulari.name>
Cc: 34687 <at> debbugs.gnu.org
Subject: Re: [bug#34687] [PATCH] Add toutenclic
Date: Sat, 16 Mar 2019 00:32:54 +0100
Hello,

Leo Famulari <leo <at> famulari.name> writes:

> On Thu, Feb 28, 2019 at 06:48:27PM +0100, Nicolas Goaziou wrote:
>> From 60822718faf19412753daedec1b50924b2d267a6 Mon Sep 17 00:00:00 2001
>> From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
>> Date: Thu, 28 Feb 2019 18:18:57 +0100
>> Subject: [PATCH] gnu: Add toutenclic.
>> 
>> * gnu/packages/education.scm (toutenclic): New variable.
>
> LGTM, thanks!

Pushed as 3b2cf5c8262067501e88c2ffe5d7f96e04b17d17. Thank you.

Regards,

-- 
Nicolas Goaziou




Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Fri, 15 Mar 2019 23:34:02 GMT) Full text and rfc822 format available.

Notification sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
bug acknowledged by developer. (Fri, 15 Mar 2019 23:34:03 GMT) Full text and rfc822 format available.

Message #16 received at 34687-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: 34687-done <at> debbugs.gnu.org 
Subject: Re: [bug#34687] [PATCH] Add toutenclic
Date: Sat, 16 Mar 2019 00:33:29 +0100
Pushed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 13 Apr 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.