From patchwork Wed Jun 9 12:18:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 30075 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 7279927BC81; Wed, 9 Jun 2021 13:21:06 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DDE9927BC78 for ; Wed, 9 Jun 2021 13:21:05 +0100 (BST) Received: from localhost ([::1]:39142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqxCi-0005A8-PS for patchwork@mira.cbaines.net; Wed, 09 Jun 2021 08:21:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqxAk-0002eB-JX for guix-patches@gnu.org; Wed, 09 Jun 2021 08:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqxAk-0001DP-7h for guix-patches@gnu.org; Wed, 09 Jun 2021 08:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqxAk-0000ub-0V for guix-patches@gnu.org; Wed, 09 Jun 2021 08:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48892] [PATCH] gnu: Add xkbset. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Jun 2021 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48892 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: "48892@debbugs.gnu.org" <48892@debbugs.gnu.org>, Maxime Devos Received: via spool by 48892-submit@debbugs.gnu.org id=B48892.16232411203472 (code B ref 48892); Wed, 09 Jun 2021 12:19:01 +0000 Received: (at 48892) by debbugs.gnu.org; 9 Jun 2021 12:18:40 +0000 Received: from localhost ([127.0.0.1]:60697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqxAI-0000tp-7t for submit@debbugs.gnu.org; Wed, 09 Jun 2021 08:18:40 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:22629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqxAD-0000tX-Uf for 48892@debbugs.gnu.org; Wed, 09 Jun 2021 08:18:32 -0400 Date: Wed, 09 Jun 2021 12:18:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail3; t=1623241103; bh=Rd1tk8JDJ4e+NGI74sUzcZXCD5q8Yw7xaDW/h8/YZT4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=cTbk8SuMpiwHeuJRX0wS/ApB7Wa9upQ9cTJfgyAFYsP4uski2/scqOpP05LCnlU0S iTuLDpCoV6fJsjcxLgBXdDYIjl0n0zhwJQiznRfrOmXV/nqMk2s4jTOnvroSELwWcv Vc88hMgK9gpyftKgUU5KmSXQubM+LCeUjsVViOBSPeQby04huk0Txf0pp77cgMshOV ZBtvAKULg+MBgiUE0JZ0zrSS+GvG1AT5fNJfpBnY5NihhMz2T+ushhrW0aBrjwN9L4 W3kIkVBmckatJ/Ux/3EMn/0bWvec1HVnTy3fIH0158xPxr5+t53ncwIaMhFVWqJVev 3br1Eaj8i9ZuA== From: "Paul A. Patience" Message-ID: <1Oo7OajQcqoLl9HbqErlfz2VWbQKcgmcx-n1EbPyNJKXp5BH2j3mKNp42hVM4TCtWQ0IFL5eJbWkXi9N0rfaZg0aQuWeQgjxiuTGQp8of8g=@apatience.com> In-Reply-To: <87czswdpae.fsf_-_@gnu.org> References: <8bHcC11E1nCm3IcYXyjT8kdLXscTRtadOPwnuABvrLCbarM8i42900GRRYpvewZFMVbPibP_oNC8iFRm8i3hF6h6UncuC6D8ohS5oaIKJvA=@apatience.com> <12d1dd5236c1e122df7df3416f6acd3a7893878d.camel@telenet.be> <5TFn9p50yemJDjZyyOinesgLnYyuQkLRDYtTeC2ZNhsOsD3rWIlGnAXbBgiXOshGdKA5vYPukXWpPcjCoWObz5i5wXzx0PWgHNPEl5jkJmg=@apatience.com> <87czswdpae.fsf_-_@gnu.org> MIME-Version: 1.0 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches On Tuesday, June 8th, 2021 at 17:23, Ludovic Courtès wrote: > This should go to xdisorg.scm (xorg.scm is for packages distributed by > the X.org project). > ‘guix lint’ complains about two-spaces-after-period issues. :-) > > Also, s/GUI program/graphical program/ ? Good catches! The updated patch is attached. Best regards, Paul From 65b9463e159f0e3ff1ae0c4a0faca08b0c22ed81 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Wed, 9 Jun 2021 08:07:44 -0400 Subject: [PATCH] gnu: Add xkbset. * gnu/packages/xdisorg.scm (xkbset): New variable. --- gnu/packages/xdisorg.scm | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 5573e2afb5..66e1867809 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -46,6 +46,7 @@ ;;; Copyright © 2021 Nicolas Goaziou ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Renzo Poddighe +;;; Copyright © 2021 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -2871,3 +2872,57 @@ Pressing the key again will cycle to the application's next window, if there's more than one.") (home-page "https://github.com/mkropat/jumpapp") (license license:expat))) + +(define-public xkbset + (package + (name "xkbset") + (version "0.6") + (source + (origin + (method url-fetch) + (uri (string-append "https://faculty.missouri.edu/~stephen/software/" + name "/" name "-" version ".tar.gz")) + (sha256 + (base32 "199mlm127zk1lr8nrq22n68l2l8cjwc4cgwd67rg1i6497n2y0xc")))) + (build-system gnu-build-system) + (inputs + `(("libx11" ,libx11) + ("perl" ,perl) + ("perl-tk" ,perl-tk))) + (arguments + `(#:tests? #f ; There are none. + #:make-flags + `(,,(string-append "CC=" (cc-for-target)) + ,(string-append "X11PREFIX=" %output) + ,(string-append "X11BASE=" (assoc-ref %build-inputs "libx11")) + ,(string-append "INSTALL_MAN1=" %output "/share/man/man1")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'install 'create-install-directories + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (mkdir-p out) + (with-directory-excursion out + (for-each mkdir-p '("bin" "share/man/man1")))) + #t)) + (add-after 'install 'wrap-perl-script + (lambda* (#:key outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") + "/bin/xkbset-gui") + `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))) + #t)) + (replace 'install-license-files + (lambda* (#:key outputs #:allow-other-keys) + (install-file "COPYRIGHT" + (string-append (assoc-ref outputs "out") + "/share/doc/" ,name "-" ,version)) + #t))))) + (home-page "https://faculty.missouri.edu/~stephen/software/") + (synopsis "User-preference utility for XKB extensions for X") + (description + "This is a program to help manage many of the XKB features of the X Window +System. This includes such features as MouseKeys, AccessX, StickyKeys, +BounceKeys, and SlowKeys. It includes a graphical program to help with +MouseKeys-acceleration management.") + (license license:bsd-3))) -- 2.31.1