unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Langlois <pierre.langlois@gmx.com>
To: 33101@debbugs.gnu.org
Subject: [bug#33101] [PATCH] gnu: light: Update to 1.2.
Date: Sat, 20 Oct 2018 11:50:13 +0100	[thread overview]
Message-ID: <cub4ldggae2.fsf@gmx.com> (raw)

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


Hello guix!

Here's a patch to update the `light` utility. It looks like upstream has
moved to a full GNU build system so we don't need to adapt phases
nymore :-). Also, the dependency on help2man was dropped.

Thanks!
Pierre


[-- Attachment #2: 0001-gnu-light-Update-to-1.2.patch --]
[-- Type: text/x-patch, Size: 2530 bytes --]

From 411309b19a678f3f0076bb66f95baab7706cd605 Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Sat, 20 Oct 2018 11:17:24 +0100
Subject: [PATCH] gnu: light: Update to 1.2.

* gnu/packages/linux.scm (light): Update to 1.2.
[source]: Switch to url-fetch.
[arguments]: Remove.
[native-inputs]: Remove help2man. Add autoconf and automake.
---
 gnu/packages/linux.scm | 27 +++++++++------------------
 1 file changed, 9 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 6a89caf27..94e7a6d97 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -30,6 +30,7 @@
 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
 ;;; Copyright © 2018 Brendan Tildesley <brendan.tildesley@openmailbox.org>
 ;;; Copyright © 2018 Manuel Graf <graf@init.at>
+;;; Copyright © 2018 Pierre Langlois <pierre.langlois@gmx.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4167,29 +4168,19 @@ monitoring tools for Linux.  These include @code{mpstat}, @code{iostat},
 (define-public light
   (package
     (name "light")
-    (version "1.1.2")
+    (version "1.2")
     (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/haikarainen/light")
-                    (commit version)))
+              (method url-fetch)
+              (uri (string-append
+                     "https://github.com/haikarainen/light/archive/v"
+                     version ".tar.gz"))
               (sha256
                (base32
-                "0c934gxav9cgdf94li6dp0rfqmpday9d33vdn9xb2mfp4war9n4w"))))
+                "1gfvsw7gh5pis733l7j54vzp272pvjyzbg8a0pvapfmg0s7mip97"))))
     (build-system gnu-build-system)
-    (arguments
-     '(#:tests? #f                      ; no tests
-       #:make-flags (list "CC=gcc"
-                          (string-append "PREFIX=" %output))
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)            ; no configure script
-         (add-after 'unpack 'patch-makefile
-           (lambda _
-             (substitute* "Makefile" (("chown") "#"))
-             #t)))))
     (native-inputs
-     `(("help2man" ,help2man)))
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)))
     (home-page "https://haikarainen.github.io/light")
     (synopsis "GNU/Linux application to control backlights")
     (description
-- 
2.19.1


             reply	other threads:[~2018-10-20 10:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-20 10:50 Pierre Langlois [this message]
2018-10-21 21:53 ` bug#33101: [PATCH] gnu: light: Update to 1.2 Ludovic Courtès

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=cub4ldggae2.fsf@gmx.com \
    --to=pierre.langlois@gmx.com \
    --cc=33101@debbugs.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 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).