From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6K0wFmBjmmIzPwEAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 21:39:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8FMpFWBjmmJdSgEAG6o9tA (envelope-from ) for ; Fri, 03 Jun 2022 21:39:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F4E4EAB5 for ; Fri, 3 Jun 2022 21:39:08 +0200 (CEST) Received: from localhost ([::1]:54080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxD8V-0000i8-Pe for larch@yhetil.org; Fri, 03 Jun 2022 15:39:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxD8Q-0000hw-9V for guix-patches@gnu.org; Fri, 03 Jun 2022 15:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxD8P-0004kP-W0 for guix-patches@gnu.org; Fri, 03 Jun 2022 15:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxD8P-0001Tc-Tt for guix-patches@gnu.org; Fri, 03 Jun 2022 15:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55769] [PATCH] gnu: Add xwhite. References: In-Reply-To: Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jun 2022 19:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: "55769@debbugs.gnu.org" <55769@debbugs.gnu.org> Received: via spool by 55769-submit@debbugs.gnu.org id=B55769.16542850835577 (code B ref 55769); Fri, 03 Jun 2022 19:39:01 +0000 Received: (at 55769) by debbugs.gnu.org; 3 Jun 2022 19:38:03 +0000 Received: from localhost ([127.0.0.1]:57089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxD7T-0001Rt-4V for submit@debbugs.gnu.org; Fri, 03 Jun 2022 15:38:03 -0400 Received: from mail-os0jpn01olkn2084.outbound.protection.outlook.com ([40.92.98.84]:16029 helo=JPN01-OS0-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxCdc-0000Xk-AF for 55769@debbugs.gnu.org; Fri, 03 Jun 2022 15:07:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZbTetrdrMK/KeRe66nVnExXxa2/9IJcuMIc+pxnYYGs1d37/I5Fz1Nv3JlTDt2mDr9G8lsgY4zHw5BQQrTmPxrGjU2PNoJ6vKpdHYDsVLS5cl2DxnDyLtNsyhoLfsPuzuXEFbVY44lA4DJ/LyofI/qdrCKFq7ZG0aY2HPS4LERCrsl8HXu9G2VXE9V9Ow+iaXpTHIjBFAZcR0x/NvT35Lgac4Bxkj/9hjKCQzNltxjAg4MkZHZHAywryJ6d8AGst2Stq9WGVGWLYSDfIxOvspaRCk5p0+cT7UBvxnQjT8/7lNsJLf9wbHr5wa65b3Wvl6ioylHEBDYlv9XB+dxbnjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=irPlMtvP9VFP0gmXpEQYLsNn9LLDX6+GIpaSWs/SN5w=; b=V4xCJliVHobRl8O5vFliq2EDqNUZNAIPVh0J4FFukiTwVOetenP58X/4rdQmYLpv8tXoMaBBr7OjR/nRz0dGCifQak0BSZVJLB/DUNiGBWX/hsQWr0It3x6eYC174F7K6AofFfvtsOPddar/rxw3oFmhGQICxsLhREh9zJ24IzMPGK1pXPdBDJehHMczKpccIzQY6PTYKxBUhmgLpefWA09P+kEKBk2c6MdCnnrvNHwqXBWs4c3XKf1i8AgfxtGJ2y69Ts+caEPHj88oBkJOCfwaSXKml8cWqe6WVPj4ENA4oWXJec9HtLJ0Ogzag5qWtZ+nkU9vE6s2telsA23cmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=irPlMtvP9VFP0gmXpEQYLsNn9LLDX6+GIpaSWs/SN5w=; b=B9ofTycQ0xFeG+b8nV8dy+j/kvVvRLGWhfI60fbZj/HLegqRBkU6B2l8mhYQP+xymhqnS09DPC1EXj/fACZ9LPdha+SYYep0UnTdGfXIcgTFBMY6dBhYPsqAF9COW/6fQ0e4wIdfSnN6HsXmTcL92zB8hjKOR6ZGE7vpa18w0XpiqB7mEFw7FQ0ndM2NVwedCHFqUxFEJ6Ri9L3wfKGgkwbC+A4JftM3Oq9Z8aulinnomaItn2WbjQ/vol6erbkSuduZeS7yYSCg2li8w9L/+BXJweNDHkRPppgTX5EXB89ZjSltxFyQznmWVtNqQmWuNlP8jK0tOuxJziB3sjleuw== Received: from OS3P286MB1127.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:12a::8) by OS3P286MB1368.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:121::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.15; Fri, 3 Jun 2022 19:07:04 +0000 Received: from OS3P286MB1127.JPNP286.PROD.OUTLOOK.COM ([fe80::7495:f280:33fd:44ec]) by OS3P286MB1127.JPNP286.PROD.OUTLOOK.COM ([fe80::7495:f280:33fd:44ec%7]) with mapi id 15.20.5314.016; Fri, 3 Jun 2022 19:07:04 +0000 From: Thread-Topic: [bug#55769] [PATCH] gnu: Add xwhite. Thread-Index: AQHYd3rlB5Da4d4z1kKVVLtpcYbjMw== Date: Fri, 3 Jun 2022 19:07:04 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [s9lnVPMcmsEhnGT8RjIpAOVfM9+EJ664] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3ae85d5d-67f6-4537-e10d-08da45943f06 x-ms-traffictypediagnostic: OS3P286MB1368:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: e9Gcx9jUKDO+ArS3A64zJn28mwRxCE2FsmSUO43KDdTEKfxZyXRog2P9D5zp4yI8iuHHlZd9J6Fob6C6ahS6j2U6cG5DY3OHNve4+tT2OlTq2tE3zsObNLTe83FqfNGJeuVpF6gY6mRl0Xdx89k1WS8hlKgVTPYsm1y6ogPx/XvgU4JR5ktn0/AcRKaT/bKylsf3ToyYFVqNVDgoC/KdfewcVw80s22DKZS1wRT91zzRbmH+W7PmjuKr2AxfgekByJUnB50I1qwVa/TN2ydTonn2oilaLhyND/XWz9suTaPRB9iP8r6BnTmUHAZpmd8wyG/q2NGwiG6FPYHvZmm4obZMEeELax0KhxzEjG7f9sekBJKDLxzeaXR4qVusthntidv66091GwMdIkkWpipIxSN0pGzxxw5zK0QGV9saLoOiW+NuREEVHw92N/xNszkXy8dAEuL0j9kAmKdAMZP5UTAEGFUEHcOBsya5AY0IGo8cTMNcWivAM0PWPtSgl94qxESzTO/Bkti344YBB4PJMgtSKak9VStteMh/FRQrvgvu4dvU51CiLSlIpDZLiurh8OAVt+yFRk8hubcJk7KAzs2SYkzC0TK1dTb60ysrwh8EeB/lrAhx4dkjWB4gTuPc x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 2MZTDXL2tGfoMKsCt3crJ0dgykXX5K8FtP2ChmukkcSn1o4CnaYt0nEvXrBC2OWmWjXZ/FMVcQa8hYdHv90v/QdBEtdgFxlOwiQYvONL9hGxAk4uX0twH5R8mTKVxnlN0L19sQGSI/MI47MJtinVbXXHmz3THSXA0a25Vtu8T+mWoSafFa4lL0/c2LPYQQh5QaSVkwB8NYinAhv5lIEjC9kCASJzEMlgp5hR4Ew44fPHUjYrYMFRHXoN7i4DnXvXXbcyT3PZKCHe3mJ6KWQ1KGRGYxNyALeiyZ0c5hzDYKca+hLfAZIxnHaQzjbTO8UzmSI+fysO8Nh0MzeMtn90toZk1bIM2jLXYRtRXKoHFABIcB1xRb0vBwRYZKx8SnXh8uokdnbgB81VvaGCZ4i8DLa8/HHPW3+k1PtFt3zDWwwfqZyhvEEns5pMp+DhpgBqBIaX5Yz3vdVSziiHpx3m7rASNNkeoIDBHh42621SWvgDkA16DFNfzki2Ww0DayNzGaDr/shNgLMp92nkVf/rkdis+5ybhH0rRUvz2qnHXVb+2YYigkVMUOaehrdKjI6VqZgaJQLB5z0jqBZf2HO3xbW7IFqZjgwqVNMuPKH3M05akuWr14pLBfgpX7EzOkFBksAzQ1d/C57xkvsqQOUSjhrwrzlbCxcC/ABNaTqc+EeeACzygEnnipKZzKhzuDaBaFOA6jkO64tZoOb0oaEvKQk8tyXNftZgVw64tDlMZsOkkisCnWKGA32oHRz9vFGdj6f8R3mH22TdIz6Thik8M2PBJFMCiOi0iXulNBHG81zkSNwjJwZ/8VJtn55qRg/L4qDsCaNCWIRFkm6svw9v5u0SYIwt1wbsKMQokYVFJd6w3MHmT7U1EKf7hh9GcNzzlt77+H888/lCToPlbbTHfZJIF/Q0kacf6U0mVHksCOYP9Oa4o1zBnbP3eHwM5h8g NClnSgYdBxby1NEHR/dd+RP6Wr34KWH38vDSzSQtfRoLBxnlNckOYWrkFYR6G1UkciS7q5CIO3RJFDdhjoWFjNMcGrY5zMiHWqIDCfo3lHY3hE/IaWMXIIV5+AdljtYzbhuYAASai+iqGX45PNK5nALENoqO1RzsEWHbnHl3FXw40VLcPjffXUHuvuubueeroulbswY6je0+WZoC7lRa5ODLTHlo38aEByx00Zhu5jSGGSVh86+s0Pnam3nROeIqiwtPi2j7WAL8WEYPVKIZFYVxdP93kFh/YjSppOKC8d5WGmgAeoZ/ZTQCBIkhEPtn+heurQlEXxJ7p0j0CTuF3ReNhDq1Kqx2jy827FWUE2cNBiO45aJhanP3xEmoTckju+hHVyd14fvdb6L74JnB4gwgEBKKXIQXVeHZx2DZyct8kbnQtY43oOsqljCETdcXeg/X4qebkqmWHdnPt3O3eA== Content-Type: multipart/alternative; boundary="_000_OS3P286MB112784C433EB82843A61F475BEA19OS3P286MB1127JPNP_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1127.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae85d5d-67f6-4537-e10d-08da45943f06 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2022 19:07:04.0925 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB1368 X-Mailman-Approved-At: Fri, 03 Jun 2022 15:38:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654285148; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=irPlMtvP9VFP0gmXpEQYLsNn9LLDX6+GIpaSWs/SN5w=; b=T+HSVxD/BXwmrQC6/Ounq8j9HlhwVatIwTCvkcKfZ/yoc/LeVoRdusq9LXfpT9yivGBS7V 4gX1Phcop4KIbqqcX3QeOpqmw6nLYG8BsLC/E8PKmCdFi3zAzAPx+GrtTcFfVHgUg2JPyO M8bFSnhA7h/iovtAMv6dxZTRSW2W6wrliG/4iKIfM8WKZ1Rf05DwBL8CJvuguv0cKvSph7 Bi9UHYQ8WB0m1W8MvxKYBoGdj0sMeBGE0CU6v4GKkd/xA5vdWlSzDPwKyuEYkrCwbmVXuW iZxkUYHl6hq7xm5Jqccfy1hlWJWgNMM90gGIwBPQhJ+wB8tG+kVkPkVwhzDoXQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1654285148; a=rsa-sha256; cv=fail; b=AnndagCqkz8LUCtVGPpb2+BZKuo5QHi32c6HYoDowSj2Us5bLu1N/0fkH96fWalGd6yeHh 6aPc0DargYpIUibYvPnI4caCShyIHrg+6lJqXplH6K94m0EnT8TE3VmtTB0yF67SMf+rh2 4H33O66twpbMsLX09ixjIE6M4H9cgikNqGHGRoB8Ap0flEltjld/LlM/VDCKH1RmlQBV3T K6mRmjfdA8vPWmYFmUbSg76W0hekBSObQau7m/uYNUG9kcuO+du2ku98hXFxWaGwwl5Rg1 yGKQCIYl4dVDQHt/AnFuL6KqeOizajQVsIntcrJQAhUw1BxIS/g3aRhszaJSxg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=B9ofTycQ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=B9ofTycQ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9F4E4EAB5 X-Spam-Score: 7.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: W8MMVB2KsSDZ --_000_OS3P286MB112784C433EB82843A61F475BEA19OS3P286MB1127JPNP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've fixed all the issues you mentioned: adopt meson build system, add GPTv= 2-only license in README, fix return values in code and a new description. = Again, Thank you very much for your detailed guidance and patience. gnu/packages/xdisorg.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index e5a98edb35..1c09128c17 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -54,6 +54,7 @@ ;;; Copyright =A9 2021 jgart ;;; Copyright =A9 2022 John Kehayias ;;; Copyright =A9 2022 Jai Vetrivelan +;;; Copyright =A9 2022 Derek Chuank ;;; ;;; This file is part of GNU Guix. ;;; @@ -1499,6 +1500,37 @@ (define-public redshift-wayland protocol.") (license license:gpl3+)))) +(define-public xwhite + (package + (name "xwhite") + (version "0.0.2") + (source + (origin + (method url-fetch) + (uri + (string-append "https://github.com/derekchuank/xwhite/" + "releases/download/v" version + "/xwhite-" version ".tar.gz")) + (sha256 + (base32 "0jbnlj5a91ib4anprmylqqnbv9wa73cr7fsc1s54df0a0w5yq8sz")))) + (build-system meson-build-system) + (arguments + `(#:tests? #f)) ; No test suite. + (native-inputs + (list pkg-config)) + (inputs + (list libxrandr)) + (home-page "https://github.com/derekchuank/xwhite") + (synopsis "Adjust the color balance") + (description "@command{xwhite} is a command line tool for adjusting the= colour +balance of screen. It is based on xrandr's gamma correction and brightnes= s adjustment. +As such, it can only be used for X displays and not Wayland displays. It = is typically +used for tuning the color balance and color temperature. It has a similar= function as +@command{redshift -P -g R:G:B -O temperature}, but @command{xwhite} is mor= e flexible +in that it does not keep the white color fixed, suitable for setting the w= hite color +to an arbitrary balanced color.") + (license license:gpl2))) + (define-public gammastep (package (name "gammastep") --_000_OS3P286MB112784C433EB82843A61F475BEA19OS3P286MB1127JPNP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I've fixed all the issues you mentioned: adopt meson build system, add GPTv= 2-only license in README, fix return values in code and a new description. = Again, Thank you very much for your detailed guidance and patience.


 gnu/packages/xdisorg.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index e5a98edb35..1c09128c17 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -54,6 +54,7 @@
 ;;; Copyright =A9 2021 jgart <jgart@dismail.de>
 ;;; Copyright =A9 2022 John Kehayias <john.kehayias@protonmai= l.com>
 ;;; Copyright =A9 2022 Jai Vetrivelan <jaivetrivelan@gmail.co= m>
+;;; Copyright =A9 2022 Derek Chuank <derekchuank@outlook.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1499,6 +1500,37 @@ (define-public redshift-wayland
 protocol.")
       (license license:gpl3+))))
 
+(define-public xwhite
+  (package
+   (name "xwhite")
+   (version "0.0.2")
+   (source
+    (origin
+     (method url-fetch)
+     (uri
+      (string-append "https://github.com/derekchu= ank/xwhite/"
+                    = ; "releases/download/v" version
+                    = ; "/xwhite-" version ".tar.gz"))
+     (sha256
+      (base32 "0jbnlj5a91ib4anprmylqqnbv9wa73cr7f= sc1s54df0a0w5yq8sz"))))
+   (build-system meson-build-system)
+   (arguments
+    `(#:tests? #f)) ; No test suite.
+   (native-inputs
+    (list pkg-config))
+   (inputs
+    (list libxrandr))
+   (home-page "https://github.com/derekchuank/xwhite")=
+   (synopsis "Adjust the color balance")
+   (description "@command{xwhite} is a command line tool fo= r adjusting the colour
+balance of screen.  It is based on xrandr's gamma correction and= brightness adjustment.
+As such, it can only be used for X displays and not Wayland displays.=  It is typically
+used for tuning the color balance and color temperature.  It has= a similar function as
+@command{redshift -P -g R:G:B -O temperature}, but @command{xwhite} i= s more flexible
+in that it does not keep the white color fixed, suitable for setting = the white color
+to an arbitrary balanced color.")
+   (license license:gpl2)))
+
 (define-public gammastep
   (package
     (name "gammastep")

--_000_OS3P286MB112784C433EB82843A61F475BEA19OS3P286MB1127JPNP_--