unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Bavier <ericbavier@gmail.com>
To: lemonnierk@ulrar.net
Cc: guix-devel@gnu.org
Subject: Re: gnu: Add weechat
Date: Thu, 11 Sep 2014 16:31:07 -0500	[thread overview]
Message-ID: <87vbot26as.fsf@gmail.com> (raw)
In-Reply-To: <20140911203418.GL31169@luwin.ulrar.net>


Just some stylistic comments:

lemonnierk@ulrar.net writes:

> From 8d8d1e052623d052834c84cbf433d5ca95c6e513 Mon Sep 17 00:00:00 2001
> From: Kevin Lemonnier <lemonnierk@ulrar.net>
> Date: Fri, 12 Sep 2014 00:32:20 +0200
> Subject: [PATCH] gnu: Add weechat
>
> * gnu/packages/weechat.scm: New file

Period at the end.

> diff --git a/gnu/packages/weechat.scm b/gnu/packages/weechat.scm
> new file mode 100644
> index 0000000..2391017
> --- /dev/null
> +++ b/gnu/packages/weechat.scm
> @@ -0,0 +1,102 @@
> +;;; GNU Guix --- Functional package management for GNU
> +;;; Copyright 2014 Kevin Lemonnier <lemonnierk@ulrar.net>

You might also include the <copyright-sign> that is present in other
source headers.

> +(define-module (gnu packages weechat)
> +  #:use-module (gnu packages ncurses)
> +  #:use-module (gnu packages base)
> +  #:use-module (gnu packages gettext)
> +  #:use-module (gnu packages gnupg)
> +  #:use-module (gnu packages file)
> +  #:use-module (gnu packages compression)
> +  #:use-module (gnu packages lua)
> +;  #:use-module (gnu packages ruby)

Rather than commenting-out the #:use-module and the input, could we
instead leave a TODO comment to add ruby at a later date?

> +(define-public weechat
> +  (package
> +    (name "weechat")
> +    (version "1.0")
> +    (source (origin
> +             (method url-fetch)
> +             (uri (string-append "http://weechat.org/files/src/weechat-"
> +                                  version ".tar.gz"))
> +             (sha256
> +              (base32 "1z17wyrl5fp697qp44srpmzk79w37f5hm1r0krffbmga6sbzdj3x"))))
> +    (build-system gnu-build-system)
> +    (native-inputs `(("autoconf", autoconf)

Put the unquote ',' directly before the symbol that is being unquoted.

> +                     ("pkg-config", pkg-config)))
> +    (inputs `(("ncurses", ncurses)
> +              ("diffutils", diffutils)
> +              ("gettext", gnu-gettext)
> +              ("automake", automake)
> +              ("libtool", libtool "bin")
> +              ("libtool", libtool "out")
> +              ("libgcrypt", libgcrypt "out")
> +              ("file", file)

I'm guessing that 'file' should be a native-input.  Is it run during the
build, or also at runtime?

> +              ("zlib", zlib)
> +              ("aspell", aspell)
> +              ("curl", curl)
> +              ("gnutls", gnutls)
> +              ("guile", guile-2.0)
> +              ("openssl", openssl)
> +              ("cyrus-sasl", cyrus-sasl)
> +              ("lua", lua-5.1)
> +;              ("ruby", ruby)

See comment above.

> +              ("python", python-2)
> +              ("perl", perl)
> +              ("tcl", tcl)
> +              ("autogen", autogen)))
> +    (arguments `(#:configure-flags (list
> +                                    (string-append
> +                                     "--with-tclconfig="
> +                                     (assoc-ref %build-inputs "tcl") "/lib"))
> +                 #:phases (alist-cons-after
> +                           'autogen 'fix-file
> +                           (lambda _
> +                             (substitute*
> +                                 '("configure")

Put "configure" on the same line as substitute*.  If it's a single file,
substitute* will accept it on its own, i.e. (substitute* "configure" ...).

> +                               (("/usr/bin/file") (which "file"))))
> +                           (alist-cons-before
> +                            'configure 'autogen
> +                            (lambda _          
> +                              (zero? (system* "./autogen.sh")))
> +                            %standard-phases))))
> +    (synopsis "Fast, light and extensible ncurses chat client")
> +    (description "WeeChat (Wee Enhanced Environment for Chat) is a free
> +and open-source Internet Relay Chat client, which is designed to be

Leave out the "free and open-source" bit since, as Ludo would say, we're
already in the land of freedom. ;)

Thanks!

-- 
Eric Bavier

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

  reply	other threads:[~2014-09-11 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-11 20:34 gnu: Add weechat lemonnierk
2014-09-11 21:31 ` Eric Bavier [this message]
2014-09-11 21:53   ` lemonnierk
2014-09-11 22:17     ` Eric Bavier
2014-09-11 22:21       ` lemonnierk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbot26as.fsf@gmail.com \
    --to=ericbavier@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=lemonnierk@ulrar.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).