From patchwork Thu Aug 18 21:31:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Streit X-Patchwork-Id: 41762 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 3EE5427BBEA; Thu, 18 Aug 2022 22:32:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 06FA927BBE9 for ; Thu, 18 Aug 2022 22:32:30 +0100 (BST) Received: from localhost ([::1]:56332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOn7t-0007Rm-4U for patchwork@mira.cbaines.net; Thu, 18 Aug 2022 17:32:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOn7S-0007RG-Dc for guix-patches@gnu.org; Thu, 18 Aug 2022 17:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOn7S-0002FT-4v for guix-patches@gnu.org; Thu, 18 Aug 2022 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOn7R-0002cx-ND for guix-patches@gnu.org; Thu, 18 Aug 2022 17:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57289] [PATCH] gnu: Add mons. Resent-From: simon@netpanic.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Aug 2022 21:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57289@debbugs.gnu.org Cc: Simon Streit X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166085829410064 (code B ref -1); Thu, 18 Aug 2022 21:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 21:31:34 +0000 Received: from localhost ([127.0.0.1]:56843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOn6z-0002cF-RD for submit@debbugs.gnu.org; Thu, 18 Aug 2022 17:31:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:47342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOn6v-0002c4-5G for submit@debbugs.gnu.org; Thu, 18 Aug 2022 17:31:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOn6v-0007OV-0Y for guix-patches@gnu.org; Thu, 18 Aug 2022 17:31:29 -0400 Received: from smtprelay02.ispgateway.de ([80.67.18.44]:34920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOn6t-0002BN-7a for guix-patches@gnu.org; Thu, 18 Aug 2022 17:31:28 -0400 Received: from [62.8.179.11] (helo=herbert.d22.home.arpa) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1oOn79-0002a7-US; Thu, 18 Aug 2022 23:31:44 +0200 From: simon@netpanic.org Date: Thu, 18 Aug 2022 23:31:17 +0200 Message-Id: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Df-Sender: c2ltb25AbmV0cGFuaWMub3Jn Received-SPF: none client-ip=80.67.18.44; envelope-from=simon@netpanic.org; helo=smtprelay02.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Simon Streit * gnu/packages/xdisorg.scm (mons): New variable. --- gnu/packages/xdisorg.scm | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 8360708445..bebd1e79cc 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -3157,3 +3157,46 @@ (define-public wlsunset light filter or night light.") (license license:expat))) +(define-public mons + (package + (name "mons") + (version "0.8.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ventto/mons") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dvfw40p81n24c28wvl39vn8acr2n0r4wh69fxp05afmp5lhp3vv")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;there are none. + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'fix-prefix + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("/usr") + "")))) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (setenv "DESTDIR" + (assoc-ref %outputs "out")) + (invoke "make" "install"))) + (add-after 'build 'fix-lib-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "mons" + (("/usr/lib") + (string-append (assoc-ref outputs "out") "/lib")))))))) + (native-inputs (list help2man)) + (inputs (list xrandr)) + (home-page "https://github.com/Ventto/mons") + (synopsis "POSIX Shell script to quickly manage monitors on X") + (description + "A POSIX compliant script that provides well-known modes like +computer, duplicate, extend and projector mode as well as selecting +and positioning one or two monitors among those plugged in.") + (license license:expat)))