From patchwork Sat Dec 15 07:09:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nam Nguyen X-Patchwork-Id: 470 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D03BE1687B; Sat, 15 Dec 2018 07:11:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTP id 3A5F216779 for ; Sat, 15 Dec 2018 07:11:09 +0000 (GMT) Received: from localhost ([::1]:38123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gY46O-0004kE-Nu for patchwork@mira.cbaines.net; Sat, 15 Dec 2018 02:11:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gY46M-0004k8-47 for guix-patches@gnu.org; Sat, 15 Dec 2018 02:11:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gY46I-0001ZD-Vp for guix-patches@gnu.org; Sat, 15 Dec 2018 02:11:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44653) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gY46I-0001Z3-RU for guix-patches@gnu.org; Sat, 15 Dec 2018 02:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gY46I-0001x7-M7 for guix-patches@gnu.org; Sat, 15 Dec 2018 02:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33756] [PATCH] gnu: Add sct. Resent-From: Nam Nguyen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Dec 2018 07:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33756 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33756@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15448578467480 (code B ref -1); Sat, 15 Dec 2018 07:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Dec 2018 07:10:46 +0000 Received: from localhost ([127.0.0.1]:48911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gY45x-0001wU-4N for submit@debbugs.gnu.org; Sat, 15 Dec 2018 02:10:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gY45v-0001wE-GV for submit@debbugs.gnu.org; Sat, 15 Dec 2018 02:10:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gY45p-0000oV-KE for submit@debbugs.gnu.org; Sat, 15 Dec 2018 02:10:34 -0500 Received: from lists.gnu.org ([2001:4830:134:3::11]:51546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gY45p-0000oM-GZ for submit@debbugs.gnu.org; Sat, 15 Dec 2018 02:10:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gY45o-0004fy-JE for guix-patches@gnu.org; Sat, 15 Dec 2018 02:10:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gY45l-0000kX-ED for guix-patches@gnu.org; Sat, 15 Dec 2018 02:10:32 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gY45l-0000jZ-5x for guix-patches@gnu.org; Sat, 15 Dec 2018 02:10:29 -0500 Received: by mail-lj1-f194.google.com with SMTP id x85-v6so6801000ljb.2 for ; Fri, 14 Dec 2018 23:10:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GjqCyue89fJfR4MWSAyVlVtuscUR+yE6/ep3bJefxdM=; b=TZItxfDFchwf3fpJow1rXsohv/JUnoT9SskG+DL9tt54RIQ1U5Un29rp3y4zeNjKDf dR3occe3OUnhZG1TkgpYd/wgWtsy/uD4lSuRFRrwOMwIqE+FTKWo6zQ7T5R/TFUXzouq 47bjz8rwHCY4bmdDMQIXI11L0RbukxYS7csqaK+qjRvwI5YHD0cj8XKUEWOq2z5SEAqw oAv4VvfNPUR7L7LsbDbLErJ78Ur9XBqDQ2tP6IJOYltb7dVjhPmIjymtzoaBIv+Sd3oG F9p5DSJFNq3PTn9IcLiCvLo2VCyNaa/4dHo8zhWZ/nNXPE3FwJ3qBaakRS1MHRgf0gjz cYCg== X-Gm-Message-State: AA+aEWaJQGzMbx6N3u3G/hsSpCvFMhzTy3D9YM+4VKP46KsDBgg8x19r YAfsYMr1B77uNSIGlmug07on2wHRhEY= X-Google-Smtp-Source: AFSGD/VOICUSG/M4FM/otAIgphOTzweGnkE9pS4OUFPk0i2VJPtamqWNg3wUKm65tQz8VRqT3jx9Rg== X-Received: by 2002:a05:651c:14e:: with SMTP id c14mr3230748ljd.20.1544857827683; Fri, 14 Dec 2018 23:10:27 -0800 (PST) Received: from localhost.localdomain ([24.5.139.14]) by smtp.googlemail.com with ESMTPSA id 85-v6sm1256576lja.16.2018.12.14.23.10.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 23:10:27 -0800 (PST) From: Nam Nguyen Date: Fri, 14 Dec 2018 23:09:59 -0800 Message-Id: <20181215070959.2260-1-namn@berkeley.edu> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nam Nguyen Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/xdisorg.scm (sct): New variable. --- gnu/packages/xdisorg.scm | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 82ed065a3..5d6257ab8 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2018 Thomas Sigurdsen ;;; Copyright © 2018 Rutger Helling ;;; Copyright © 2018 Pierre Neidhardt +;;; Copyright © 2018 Nam Nguyen ;;; ;;; This file is part of GNU Guix. ;;; @@ -1555,3 +1556,46 @@ to automatically turn it on on login.") (description "This package provides a small utility for inverting the colors on all monitors attached to an XRandR-capable X11 display server.") (license license:gpl3+))) + +(define-public sct + (package + (name "sct") + (version "0.4") + (source + (origin + (method url-fetch) + (uri + (string-append "https://www.umaxx.net/dl/sct-" + version ".tar.gz")) + (sha256 + (base32 + "0r57z9ki8pvxhawfxys0v5h85z2x211sqxki0xvk1bga88ryldlv")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'replace-cc-with-gcc + ;; Use gcc in Makefile. + (lambda _ + (substitute* "Makefile" + (("CC\\?\\=gcc") + "CC=gcc")))) + (delete 'configure) + (delete 'check) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "sct" (string-append out "/bin")) + (install-file "sctd.sh" (string-append out "/bin")) + (mkdir (string-append out "/man")) + (mkdir (string-append out "/man/man1")) + (install-file "sct.1" (string-append out "/man/man1")) + (install-file "sctd.1" (string-append out "/man/man1")) + #t)))))) + (inputs + `(("libxrandr" ,libxrandr))) + (home-page "https://www.umaxx.net/") + (synopsis "Set the color temperature of the screen") + (description "@code{sct} is a lightweight utility to set the color +temperature of the screen.") + (license license:bsd-3)))