guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add myrepos.


From: Ricardo Wurmus
Subject: Re: [PATCH] gnu: Add myrepos.
Date: Tue, 1 Dec 2015 11:25:38 +0100

Hi Kyle,

thanks for the patch!

> * gnu/packages/version-control.scm (myrepos): New variable.
> ---
>  gnu/packages/version-control.scm | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/version-control.scm 
> b/gnu/packages/version-control.scm
> index b132663..d7c4f8c 100644
> --- a/gnu/packages/version-control.scm
> +++ b/gnu/packages/version-control.scm
> @@ -7,6 +7,7 @@
>  ;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
>  ;;; Copyright © 2014 Eric Bavier <address@hidden>
>  ;;; Copyright © 2015 Efraim Flashner <address@hidden>
> +;;; Copyright © 2015 Kyle Meyer <address@hidden>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -925,3 +926,32 @@ any project with more than one developer, is one of 
> Aegis's major functions.")
>  a history browser.  It can also stage hunks for commit, or colorize the
>  output of the 'git' command.")
>      (license gpl2+)))
> +
> +(define-public myrepos
> +  (package
> +    (name "myrepos")
> +    (version "1.20151022")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://github.com/joeyh/myrepos/archive/";
> +             version ".tar.gz"))

You should add a ‘(file-name ...)’ expression here, because the tarball
does not include the name of the package:

   (file-name (string-append name "-" version ".tar.gz"))

> +       (sha256
> +        (base32 "0c93lqsngpsxsca7nygk4qhidr40ijgih86q81x1mfcwbs0gbds8"))))
> +    (build-system gnu-build-system)
> +    (inputs
> +     `(("perl" ,perl)))
> +    (arguments
> +     `(#:test-target "test"
> +       #:phases (alist-delete 'configure %standard-phases)
> +       #:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs 
> "out"))
> +                          "PREFIX=")))

Is it really correct to set DESTDIR and unset PREFIX?  I thought setting
PREFIX would be sufficient.

> +    (home-page "http://myrepos.branchable.com/";)
> +    (synopsis "Multiple repository management tool")
> +    (description
> +     "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
> +fetching updates) over a collection of version control repositories.  It
> +supports a large number of version control systems: git, svn, mercurial, bzr,
> +darcs, cvs, fossil and veracity.")
> +    (license gpl2+)))

The rest looks fine to me.  Thanks!

~~ Ricardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]