all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: dpg <doubleplusgood23@gmail.com>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Re: [PATCH] gnu: Add python2-gyp
Date: Mon, 5 Feb 2018 18:11:25 -0500	[thread overview]
Message-ID: <20180205231125.GA22963@jasmine.lan> (raw)
In-Reply-To: <1517870390.6194.8.camel@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1396 bytes --]

On Mon, Feb 05, 2018 at 05:39:50PM -0500, dpg wrote:
> Sending a new patch, this will apply cleaner and has an actually good commit
> message :-) 

Thanks! But it still didn't apply :)

> From 300c37a8d9818cfc1a6315d2113cf58b110e1664 Mon Sep 17 00:00:00 2001
> From: DoublePlusGood <doubleplusgood23@gmail.com>
> Date: Mon, 5 Feb 2018 17:26:34 -0500
> Subject: [PATCH] gnu: python: Add python2-gyp
> 
> * gnu/packages/python.scm: Added python2-gyp library.

> +    ;; Google does not release versions,
> +    ;; based on second most recent commit date.
> +    (version "2017-10-11")

As described in the manual section Version Numbers, we handle versioning
of version control checkouts in a specific way:

https://www.gnu.org/software/guix/manual/html_node/Version-Numbers.html#Version-Numbers

This allows us to ensure that the versions always increase and can be
used to refer back to the upstream version control repository. At least
in Git, dates are not meaningful. They can be set to anything with the
--date parameter.

We also have the special helper functions git-version and git-file-name
to make it easy to use the standard versioning scheme.

I standardized the version and source file-name as in the attached diff,
standardized the commit message, updated the copyright date, and pushed
the result as commit 956ba99cb799889e0a0bc0f657f4e31b4f830775.

[-- Attachment #1.2: gyp-diff --]
[-- Type: text/plain, Size: 2751 bytes --]

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f77491a90..45ef7b5b6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -46,7 +46,7 @@
 ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
 ;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
-;;; Copyright © 2017 Ethan R. Jones <ethanrjones97@gmail.com>
+;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -12420,30 +12420,31 @@ style guide, even if the original code didn't violate the style guide.")
   (package-with-python2 python-yapf))
 
 (define-public python-gyp
-  (package
-    (name "python-gyp")
-    ;; Google does not release versions,
-    ;; based on second most recent commit date.
-    (version "2017-10-11")
-    (source
-     (origin
-       ;; Google does not release tarballs,
-       ;; git checkout is needed.
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://chromium.googlesource.com/external/gyp")
-             (commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")))
-       (sha256
-        (base32
-         "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
-    (build-system python-build-system)
-    (home-page "https://gyp.gsrc.io/")
-    (synopsis "GYP is a Meta-Build system")
-    (description
-     "GYP builds build systems for large, cross platform applications.
-It can be used to generate XCode projects, Visual Studio projects,
-Ninja build files, and Makefiles.")
-    (license license:bsd-3)))
+  (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
+        (revision "0"))
+    (package
+      (name "python-gyp")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         ;; Google does not release tarballs,
+         ;; git checkout is needed.
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://chromium.googlesource.com/external/gyp")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
+      (build-system python-build-system)
+      (home-page "https://gyp.gsrc.io/")
+      (synopsis "GYP is a Meta-Build system")
+      (description
+       "GYP builds build systems for large, cross platform applications.
+It can be used to generate XCode projects, Visual Studio projects, Ninja build
+files, and Makefiles.")
+      (license license:bsd-3))))
 
 (define-public python2-gyp
   (package-with-python2 python-gyp))

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

  reply	other threads:[~2018-02-05 23:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-03  4:20 [PATCH] gnu: Add python2-gyp doubleplusgood23
2018-02-05 13:18 ` Ludovic Courtès
2018-02-05 20:33   ` dpg
2018-02-05 22:39   ` dpg
2018-02-05 23:11     ` Leo Famulari [this message]
2018-02-05 23:23       ` dpg

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=20180205231125.GA22963@jasmine.lan \
    --to=leo@famulari.name \
    --cc=doubleplusgood23@gmail.com \
    --cc=guix-devel@gnu.org \
    /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.