all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* submit package vinagre
@ 2016-01-24 12:28 rennes
  2016-01-24 15:43 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: rennes @ 2016-01-24 12:28 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 151 bytes --]

Hi,

i create a definition package for vinagre program. Can you review and 
return comments?

i test vinagre in gnome environment and works.


regards

[-- Attachment #2: vinagre.scm --]
[-- Type: text/plain, Size: 3040 bytes --]

(define-module (gnu packages vinagre)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system glib-or-gtk)
  #:use-module (gnu packages)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages photo)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages tls)
  #:use-module (gnu packages python)
  #:use-module (gnu packages gnupg)
  #:use-module (gnu packages avahi))

(define-public gtk-vnc
  (package
    (name "gtk-vnc")
    (version "0.5.4")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "http://ftp.gnome.org/pub/gnome/sources/gtk-vnc/0.5/"
                          name "-" version ".tar.xz"))
      (sha256
       (base32
        "1rwwdh7lb16xdmy76ca6mpqfc3zfl3a4bkcr0qb6hs6ffrxak2j8"))))
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags
       (list "--with-gtk=3.0" "--enable-vala" "--without-sasl")))
    (inputs
     `(("gnome-desktop" ,gnome-desktop)
       ("gobject-introspection" ,gobject-introspection)
       ("vala" ,vala)
       ("python" ,python-2)
       ("gjs" ,gjs)
       ("libgcrypt" ,libgcrypt)
       ("gtk+" ,gtk+-2)
       ("gnutls" ,gnutls)
       ("libgnome-keyring" ,libgnome-keyring)
       ("telepathy-glib" ,telepathy-glib)
       ("vte" ,vte)
       ("avahi" ,avahi)))
    (native-inputs
     `(("pkg-config" ,pkg-config)
       ("glib" ,glib "bin")
       ("intltool" ,intltool)))
    (home-page "http://www.gnome.org")
    (synopsis
     "gtk-vnc")
    (description
     "gtk-vnc is a VNC viewer widget for GTK.")
    (license license:lgpl3)))


(define-public vinagre
  (package (inherit gtk-vnc)
    (name "vinagre")
    (version "3.18.2")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "http://ftp.gnome.org/pub/gnome/sources/vinagre/3.18/"
                          name "-" version ".tar.xz"))
      (sha256
       (base32
        "1i7v90zw1s7526qx7b5pxzaray1l9wqxam2n7r1sjx8bvsci5f35"))))
    (build-system gnu-build-system)
    (inputs
     `(("gnome-desktop" ,gnome-desktop)
       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
       ("libgnome-keyring" ,libgnome-keyring)
       ("adwaita-icon-theme" ,adwaita-icon-theme)
       ("gtk+" ,gtk+)
       ("icon-naming-utils" ,icon-naming-utils)
       ("libxml2" ,libxml2)
       ("libsecret" ,libsecret)
       ("gtk-vnc" ,gtk-vnc)
       ("avahi" ,avahi)))
    (native-inputs
     `(("pkg-config" ,pkg-config)
       ;("python" ,python-2)
       ("intltool" ,intltool)
       ("itstool" ,itstool)
       ("glib:bin" ,glib "bin")))
    (home-page "http://www.gnome.org")
    (synopsis
     "Vinagre")
    (description
     "Vinagre is a remote desktop viewer for GNOME.")
    (license license:lgpl3)))

vinagre

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

* Re: submit package vinagre
  2016-01-24 12:28 submit package vinagre rennes
@ 2016-01-24 15:43 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2016-01-24 15:43 UTC (permalink / raw)
  To: rennes; +Cc: guix-devel

Hi,

> i create a definition package for vinagre program. Can you review and 
> return comments?

thanks for making the effort to package vinagre.

Normally, we expect contributions to be sent in patch format.  The best
way to do this is to clone the git repository, perform changes there,
commit them with appropriate summaries, and then use “git format-patch
-1”.  The file that is produced by the last command can then be attached
to an email.

For each new variable/package we usually have one commit/patch.

Following are some comments about the file you sent.

* All modules should have a license header.  You can adapt this from
  any of the other modules.

* The module definition declares to use “(guix build-system
  glib-or-gtk)”, but none of the packages you defined use this build
  system.  Are all the modules you import there really needed?

> (define-public gtk-vnc
>   (package
>     (name "gtk-vnc")
>     (version "0.5.4")
>     (source
>      (origin
>       (method url-fetch)
>       (uri (string-append "http://ftp.gnome.org/pub/gnome/sources/gtk-vnc/0.5/"

This line is too long.  You can split the string, but even better: you
can probably use “mirror://gnome/sources” here.

>     (home-page "http://www.gnome.org")

Is there no separate project webpage?

>     (synopsis
>      "gtk-vnc")

“guix lint” would probably complain about this.  A synopsis should be
more than just the name.  It also should fit on one line.  Something
like “VNC viewer widget for GTK” maybe.

>     (description
>      "gtk-vnc is a VNC viewer widget for GTK.")

That’s a little short.

>     (license license:lgpl3)))

Only this version or is any later version of this license accepted?

> (define-public vinagre
>   (package (inherit gtk-vnc)

There is no good reason to inherit from “gtk-vnc”.

>     (name "vinagre")
>     (version "3.18.2")
>     (source
>      (origin
>       (method url-fetch)
>       (uri (string-append "http://ftp.gnome.org/pub/gnome/sources/vinagre/3.18/"
>                           name "-" version ".tar.xz"))

Same as above: please use “mirror://gnome” here, and make sure the line
isn’t overly long.

>       (sha256
>        (base32
>         "1i7v90zw1s7526qx7b5pxzaray1l9wqxam2n7r1sjx8bvsci5f35"))))
>     (build-system gnu-build-system)
>     (inputs
>      `(("gnome-desktop" ,gnome-desktop)
>        ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
>        ("libgnome-keyring" ,libgnome-keyring)
>        ("adwaita-icon-theme" ,adwaita-icon-theme)
>        ("gtk+" ,gtk+)
>        ("icon-naming-utils" ,icon-naming-utils)
>        ("libxml2" ,libxml2)
>        ("libsecret" ,libsecret)
>        ("gtk-vnc" ,gtk-vnc)
>        ("avahi" ,avahi)))
>     (native-inputs
>      `(("pkg-config" ,pkg-config)
>        ;("python" ,python-2)

Why is this commented?

>        ("intltool" ,intltool)
>        ("itstool" ,itstool)
>        ("glib:bin" ,glib "bin")))
>     (home-page "http://www.gnome.org")

Does Vinagre have its own project home page?  How about
https://wiki.gnome.org/Apps/Vinagre instead?

>     (synopsis
>      "Vinagre")

We need a real synopsis here...

>     (description
>      "Vinagre is a remote desktop viewer for GNOME.")

...and something more descriptive here.

>     (license license:lgpl3)))

Is this license correct?  Most files are licensed under GPLv2+, as far
as I can see (even though COPYING contains the text of the GPLv3).

~~ Ricardo

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

end of thread, other threads:[~2016-01-24 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-24 12:28 submit package vinagre rennes
2016-01-24 15:43 ` Ricardo Wurmus

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.