all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: ng0 <ng0@we.make.ritual.n0.is>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add ircii.
Date: Tue, 09 Aug 2016 21:38:55 +0200	[thread overview]
Message-ID: <87bn11enqo.fsf@elephly.net> (raw)
In-Reply-To: <87a8gr9xox.fsf@we.make.ritual.n0.is>


ng0 <ng0@we.make.ritual.n0.is> writes:

> From 1438e5654cfd5f4eb4141a42580bd73c716e7134 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Mon, 1 Aug 2016 19:31:23 +0000
> Subject: [PATCH] gnu: Add ircii.

> * gnu/packages/irc.scm (ircii): New variable.
> ---
>  gnu/packages/irc.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 46 insertions(+)

> diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
> index 03f014a..7087022 100644
> --- a/gnu/packages/irc.scm
> +++ b/gnu/packages/irc.scm
> @@ -194,3 +194,49 @@ with a keyboard, though it also supports mouse.  It is customizable
>  and extensible with plugins and scripts.")
>      (home-page "http://www.weechat.org/")
>      (license license:gpl3)))
> +
> +(define-public ircii
> +  (package
> +    (name "ircii")
> +    (version "20151120")
> +    (source (origin
> +             (method url-fetch)
> +             (uri (string-append "https://ircii.warped.com/"
> +                                 name "-" version ".tar.gz"))
> +             (sha256
> +              (base32
> +               "178dc279f5j894qvp96dzz7c0jpryqlcqw5g0dc9yaxg9kgw1lqm"))))
> +    (build-system gnu-build-system)
> +    ;; TODO: Configure with socks client (ghc-socks is too big).
> +    (arguments
> +     `(#:tests? #f

Please add a comment like “; no tests”.

> +       #:configure-flags (list
> +                          ;;(string-append "--prefix=" (assoc-ref %outputs "out"))

I suppose this line can be removed?

> +                          "--enable-ipv6"
> +                          (string-append "--with-openssl="
> +                                         (assoc-ref %build-inputs "openssl"))
> +                          "--with-emacs-meta-keys")

What does this do?

> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'patch-bsdinstall-absolute-path-bins

That’s a somewhat unusual name for a phase.  In other packages we use
something simpler like “fix-paths” or “patch-paths”.

> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (substitute* "bsdinstall"
> +               (("/bin/strip") "strip")
> +               (("/bin/cp") "cp")
> +               (("/bin/chmod") "chmod")
> +               (("/etc/chown") "chown")
> +               (("/bin/chgrp") "chgrp")
> +               (("/bin/mkdir") "mkdir")
> +               (("/bin/rm") "rm")
> +               (("/bin/mv") "mv")))))))

Four things:

- you don’t use the “inputs” key, so you can simplify this to “(lambda _ …)”
- “/etc/chown”?
- can this be simplified by just deleting any occurrence of “/bin/”?
- please end this phase with “#t” as “substitute*” has no defined return value.

> +    (inputs
> +     `(("ncurses" ,ncurses)
> +       ("openssl" ,openssl)))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)
> +       ("perl" ,perl)))
> +    (home-page "http://www.eterna.com.au/ircii/")
> +    (synopsis "Terminal-based IRC and ICB client")
> +    (description
> +     "ircII is a terminal based IRC and ICB client for UNIX systems.")

I’d remove “for UNIX systems”.  Is there more that can be said about
this application?

> +    (license license:bsd-3)))
> -- 
> 2.9.2

~~ Ricardo

  parent reply	other threads:[~2016-08-09 19:39 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-01 19:34 [PATCH] gnu: Add ircii ng0
2016-08-02  0:54 ` Leo Famulari
2016-08-02  7:58   ` Andreas Enge
2016-08-02 11:30     ` ng0
2016-08-05  6:46       ` Ricardo Wurmus
2016-08-05 10:29         ` ng0
2016-08-05 11:17           ` Ricardo Wurmus
2016-08-05 12:55         ` ng0
2016-08-05 12:57           ` ng0
2016-08-05 13:01           ` ng0
2016-08-05 13:22             ` ng0
2016-08-05 15:48               ` ng0
2016-08-05 15:57                 ` Leo Famulari
2016-08-05 16:11                   ` ng0
2016-08-05 17:55                     ` Leo Famulari
2016-08-05 18:27                       ` ng0
2016-08-05 19:11                         ` Leo Famulari
2016-08-09 19:38             ` Ricardo Wurmus [this message]
2016-08-09 19:47               ` Leo Famulari
2016-08-13  7:06                 ` ng0
2016-08-02 12:42   ` 宋文武
2016-08-02 15:19     ` ng0
2016-08-04 19:03       ` ng0

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

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

  git send-email \
    --in-reply-to=87bn11enqo.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=ng0@we.make.ritual.n0.is \
    /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 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.