unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#34634] [PATCH 1/1] gnu: tryton: Add tryton 5.0.6.
@ 2019-02-23 19:09 Jovany Leandro G.C
  2019-03-11 22:15 ` Ludovic Courtès
  2020-09-05 20:52 ` bug#34634: Closing Andreas Enge
  0 siblings, 2 replies; 4+ messages in thread
From: Jovany Leandro G.C @ 2019-02-23 19:09 UTC (permalink / raw)
  To: 34634

From 693d00d1df68ada3bb43cbaecdd2823976e87bd4 Mon Sep 17 00:00:00 2001
From: "Jovany Leandro G.C" <bit4bit@riseup.net>
Date: Sat, 23 Feb 2019 14:08:01 -0500
Subject: [PATCH 1/1] gnu: tryton: Add tryton 5.0.6.

* gnu/packages/tryton.scm (tryton-5): New variable.
---
 gnu/packages/tryton.scm | 42 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm
index 31a2d481e..871537745 100644
--- a/gnu/packages/tryton.scm
+++ b/gnu/packages/tryton.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
+;;; Copyright © 2019 Jovany Leandro G.C <bit4bit@riseup.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -96,6 +97,47 @@ and security.")
     (description "This package is the client component of Tryton.")
     (license license:gpl3+)))
 
+(define-public tryton-5
+  (package
+    (name "tryton")
+    (version "5.0.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "tryton" version))
+       (sha256
+        (base32
+         "1lgkyyin5ydfl7qz692cvgswwyhnbc51r9krfz5k9rhq06ayaq4v"))))
+    (build-system python-build-system)
+    (arguments
+     `(;;_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix
will not be created.
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out"))
+                   (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
+               (wrap-program (string-append out "/bin/tryton")
+                 `("GI_TYPELIB_PATH" ":" prefix (, gi-typelib-path))))
+             #t))
+         (add-after 'unpack 'set-home-directory
+           ;; [Errno 13] Permission denied: '/homeless-shelter'
+           (lambda _ (setenv "HOME" "/tmp")
+                   #t))
+         )))
+    (native-inputs
+     `(("gtk+" ,gtk+)
+       ("librsvg" ,librsvg)))
+    (inputs
+     `(("python-pycairo" ,python-pycairo)
+       ("python-pygobject" ,python-pygobject)
+       ("python-dateutil" ,python-dateutil)))
+    (home-page "http://www.tryton.org/")
+    (synopsis "Client component of Tryton 5")
+    (description "This package is the client component of Tryton 5.")
+    (license license:gpl3)))
+
 (define-public python-trytond-country
   (package
   (name "python-trytond-country")
-- 
2.19.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#34634] [PATCH 1/1] gnu: tryton: Add tryton 5.0.6.
  2019-02-23 19:09 [bug#34634] [PATCH 1/1] gnu: tryton: Add tryton 5.0.6 Jovany Leandro G.C
@ 2019-03-11 22:15 ` Ludovic Courtès
       [not found]   ` <20190312165842.1dc6b8cf@riseup.net>
  2020-09-05 20:52 ` bug#34634: Closing Andreas Enge
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2019-03-11 22:15 UTC (permalink / raw)
  To: Jovany Leandro G.C; +Cc: 34634

Hi Jovany,

Your email client mangled the patch.  In the future could you send
patches as attachments or use ‘git send-email’?

"Jovany Leandro G.C" <bit4bit@riseup.net> skribis:

> From 693d00d1df68ada3bb43cbaecdd2823976e87bd4 Mon Sep 17 00:00:00 2001
> From: "Jovany Leandro G.C" <bit4bit@riseup.net>
> Date: Sat, 23 Feb 2019 14:08:01 -0500
> Subject: [PATCH 1/1] gnu: tryton: Add tryton 5.0.6.
>
> * gnu/packages/tryton.scm (tryton-5): New variable.

Do you think we should keep both version 4 and version 5?  Is it
generally useful today to have these two versions available?

> +(define-public tryton-5
> +  (package
> +    (name "tryton")
> +    (version "5.0.6")

Should it inherit from ‘tryton’?

> +    (arguments
> +     `(;;_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix
> will not be created.
> +       #:tests? #f

Could you try adding a phase before ‘check’ that spawns Xvfb?  There are
several examples of this.

> +    (license license:gpl3)))

Version 3 only, or version 3 “or any later version”?

Could you send an updated patch?

Thank you,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#34634] [PATCH 1/1] gnu: tryton: Add tryton 5.0.6.
       [not found]   ` <20190312165842.1dc6b8cf@riseup.net>
@ 2019-03-13 10:31     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-03-13 10:31 UTC (permalink / raw)
  To: Jovany Leandro G.C; +Cc: 34634

Hello Jovany,

"Jovany Leandro G.C" <bit4bit@riseup.net> skribis:

> El Mon, 11 Mar 2019 23:15:39 +0100
> Ludovic Courtès <ludo@gnu.org> escribió:

[...]

>> "Jovany Leandro G.C" <bit4bit@riseup.net> skribis:
>> 
>> > From 693d00d1df68ada3bb43cbaecdd2823976e87bd4 Mon Sep 17 00:00:00
>> > 2001 From: "Jovany Leandro G.C" <bit4bit@riseup.net>
>> > Date: Sat, 23 Feb 2019 14:08:01 -0500
>> > Subject: [PATCH 1/1] gnu: tryton: Add tryton 5.0.6.
>> >
>> > * gnu/packages/tryton.scm (tryton-5): New variable.  
>> 
>> Do you think we should keep both version 4 and version 5?  Is it
>> generally useful today to have these two versions available?
>> 
> yeah it's very useful, tryton 4 and 5 both have updates, now 5 will be
> LTS

OK, sounds good.

>> > +(define-public tryton-5
>> > +  (package
>> > +    (name "tryton")
>> > +    (version "5.0.6")  
>> 
>> Should it inherit from ‘tryton’?
> what it's the best path for this?
> a guide please

You would write something like:

  (define-public tryton-5
    (package
      (inherit tryton)
      (version "5.0.6")
      ;; …
      ))

and you only need to specify fields that differ from those of ‘tryton’.
See for example ‘guile-2.0.13’ in (gnu packages guile).

>> > +    (license license:gpl3)))  
>> 
>> Version 3 only, or version 3 “or any later version”?
>> 
> http://hg.tryton.org/tryton/file/5.0/LICENSE
> yeah GPL-3+

Right, and specifically there are no source file headers that say
“version 3 only”, so ‘gpl3+’ indeed!

Thanks,
Ludo’.

PS: Please keep 34634@debbugs.gnu.org Cc’d.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34634: Closing
  2019-02-23 19:09 [bug#34634] [PATCH 1/1] gnu: tryton: Add tryton 5.0.6 Jovany Leandro G.C
  2019-03-11 22:15 ` Ludovic Courtès
@ 2020-09-05 20:52 ` Andreas Enge
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Enge @ 2020-09-05 20:52 UTC (permalink / raw)
  To: 34634-done

We have tryton-5.6.0 now, so the problem is solved. Closing.

Andreas





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-05 20:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23 19:09 [bug#34634] [PATCH 1/1] gnu: tryton: Add tryton 5.0.6 Jovany Leandro G.C
2019-03-11 22:15 ` Ludovic Courtès
     [not found]   ` <20190312165842.1dc6b8cf@riseup.net>
2019-03-13 10:31     ` Ludovic Courtès
2020-09-05 20:52 ` bug#34634: Closing Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).