unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Leo Famulari <leo@famulari.name>, guix-devel@gnu.org
Subject: Re: [PATCH 1/2] gnu: Add tremc.
Date: Fri, 27 Jan 2017 19:31:31 +0100	[thread overview]
Message-ID: <871svo2w3g.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <b2e3f371fd2878df9da10bf0c9f7d1150ef5bd49.1485500923.git.leo@famulari.name>

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

Leo Famulari <leo@famulari.name> writes:

> * gnu/packages/bittorrent.scm (tremc): New variable.
> ---
>  gnu/packages/bittorrent.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
>
> diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
> index 716d8b766..a7294f38a 100644
> --- a/gnu/packages/bittorrent.scm
> +++ b/gnu/packages/bittorrent.scm
> @@ -2,6 +2,7 @@
>  ;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
>  ;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
>  ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
> +;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
>  ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Tomáš Čech <sleep_walker@gnu.org>
>  ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
> @@ -25,6 +26,7 @@
>  (define-module (gnu packages bittorrent)
>    #:use-module (guix packages)
>    #:use-module (guix download)
> +  #:use-module (guix git-download)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system python)
>    #:use-module (guix build-system glib-or-gtk)
> @@ -172,6 +174,49 @@ XML-RPC over SCGI.")
>      (home-page "https://github.com/rakshasa/rtorrent")
>      (license l:gpl2+)))
>  
> +(define-public tremc
> +  (let ((commit "401f2303c9b5a6e2e7b0808617d794576d4aa29e")
> +        (revision "0"))
> +    (package
> +      (name "tremc")
> +      (version (string-append "0.0.0-" revision "." (string-take commit 7)))

The script has a VERSION variable specifying 0.9.0, so I think we should
use that. It would of course be better if they provided tagged releases..

> +      (source
> +        (origin
> +          (method git-fetch)
> +          (uri (git-reference
> +                 (url "https://github.com/louipc/tremc.git")
> +                 (commit commit)))
> +          (sha256
> +           (base32
> +            "1h2720zn35iggmf9av65g119b0bhskwm1ng0zbkjryaf38nfzpin"))))
> +      (build-system python-build-system)
> +      (arguments
> +       `(#:tests? #f ; no test suite
> +         #:phases
> +         (modify-phases %standard-phases
> +           ;; The software is just a Python script that must be
> +           ;; copied into place.
> +           (delete 'build)
> +           (replace 'install
> +             (lambda* (#:key outputs #:allow-other-keys)
> +               (let* ((out (assoc-ref outputs "out"))
> +                      (bin (string-append out "/bin"))
> +                      (man (string-append out "/share/man/man1"))
> +                      ;; FIXME install zsh completions
> +                      (completions (string-append out "/etc/bash_completion.d")))
> +                 (install-file "tremc" bin)
> +                 (install-file "tremc.1" man)
> +                 (install-file
> +                   (string-append
> +                     "completion/bash/"
> +                     "transmission-remote-cli-bash-completion.sh")
> +                   completions)))))))
> +      (synopsis "Console client for the Transmission BitTorrent daemon")
> +      (description "Tremc is a console client, with a curses interface, for the
> +Transmission BitTorrent daemon.")

So all the imports in the script are part of the python standard
library, including "curses"? Neat. LGTM!

> +      (home-page "https://github.com/louipc/tremc")
> +      (license l:gpl3+))))
> +
>  (define-public transmission-remote-cli
>    (package
>      (name "transmission-remote-cli")
> -- 
> 2.11.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2017-01-27 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-27  7:10 [PATCH 0/2] Tremc and transmission-remote-cli Leo Famulari
2017-01-27  7:10 ` [PATCH 1/2] gnu: Add tremc Leo Famulari
2017-01-27 18:31   ` Marius Bakke [this message]
2017-01-28  8:32     ` Leo Famulari
2017-01-27  7:10 ` [PATCH 2/2] gnu: transmission-remote-cli: Superseded by tremc Leo Famulari
2017-01-27 18:32   ` Marius Bakke

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=871svo2w3g.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mbakke@fastmail.com \
    --cc=guix-devel@gnu.org \
    --cc=leo@famulari.name \
    /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).