From patchwork Fri Sep 20 00:25:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Andrews X-Patchwork-Id: 15413 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 43AAF173F0; Fri, 20 Sep 2019 01:26:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id EEFD5173A2 for ; Fri, 20 Sep 2019 01:26:10 +0100 (BST) Received: from localhost ([::1]:50074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB6kU-0007iG-EC for patchwork@mira.cbaines.net; Thu, 19 Sep 2019 20:26:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45289) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB6kN-0007hq-Rv for guix-patches@gnu.org; Thu, 19 Sep 2019 20:26:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iB6kM-0000Is-Ju for guix-patches@gnu.org; Thu, 19 Sep 2019 20:26:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47768) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iB6kM-0000Il-Go for guix-patches@gnu.org; Thu, 19 Sep 2019 20:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iB6kM-0006G0-BO for guix-patches@gnu.org; Thu, 19 Sep 2019 20:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37465] add xftwidth displayed textwidth calculator package Resent-From: Kyle Andrews Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Sep 2019 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37465 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 37465@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156893915424034 (code B ref -1); Fri, 20 Sep 2019 00:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2019 00:25:54 +0000 Received: from localhost ([127.0.0.1]:56589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB6kD-0006Fa-IJ for submit@debbugs.gnu.org; Thu, 19 Sep 2019 20:25:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:33068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB6kB-0006FQ-JK for submit@debbugs.gnu.org; Thu, 19 Sep 2019 20:25:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45277) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB6k9-0007eb-Ig for guix-patches@gnu.org; Thu, 19 Sep 2019 20:25:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iB6k7-0000G1-Bz for guix-patches@gnu.org; Thu, 19 Sep 2019 20:25:49 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:41445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iB6k6-0000Fe-HN for guix-patches@gnu.org; Thu, 19 Sep 2019 20:25:47 -0400 Received: by mail-io1-xd30.google.com with SMTP id r26so12119023ioh.8 for ; Thu, 19 Sep 2019 17:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:mime-version; bh=0y4YjzpcIPAunflE03Dsrc8j8pFYM4rGdB72Yko7ftY=; b=c+7/BpVMruajGNBAQHMkEc1rNebDOz2cMKCK1bscL1xGNKS+EkE5ASYPcXcsTgkEW2 pv1y7ObqKacrxO6HdF92n2S1OWQG+Hty8WJiXMnRMjr4KTIANDTb0RvxDCZS9fvLzH+v L4D7qEHJ8uBPT4k49bG+N2n08DmN0D2+Q/Ktt3WK3IgDKvISMPqkWRdDUvzisZpWhOUZ fJeLAnHBqsZ1AaCqy3DhRUVRvlvAMPVwuSaxALq7XSPYTQ8VhsZzetS8b5pkHGZIVwoX kz7ZtpmrKGY6aDoSadFsA0F9nKoq4gUoqvsVUbUJTD6w8T5AyD+5F+20G9BWLQE/E9gZ VckA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:mime-version; bh=0y4YjzpcIPAunflE03Dsrc8j8pFYM4rGdB72Yko7ftY=; b=kj2/hfArsiTAFs1LKHhc1jk7WsSSi5UevGtTYUg6NwiZCFM/tnRkjRk1LlUvLy/JtJ JYITbB1wewJgwQHmT8ztX1uv2gkPw3dqwy7lSGPGpExae6LHc3fiKX8y4PuOQnbsEt9Y Ehz1x+mP0AN7yUlxnGcRzW7DQRzubt64qHt/tzsov5pduDTJpr5QBLmz3Zb6CrgXk2Dj k4x1w2so50lP5RYC7soU8rkQLXHvbIdDdqdTx/FnLI2IIGbIzpFnymr/rE8vO9CflXgE nlNr7lXII06gdMlxTblo/z/4nQfdX3hUQTiRHGTeyt4ikbjG+Il79CDCnftpsh+8Ca6D TIdA== X-Gm-Message-State: APjAAAVno04+WsveFZBBv4JVYBdE0nGyJdkkLSdx0eUIOHdLgO+tX5b4 zFxWq4FW6DEJSp1FIK1NTVSgnEPZ6AQ= X-Google-Smtp-Source: APXvYqx1PTkfCZWe5d6oUOl10b0FWJexyITmuQu5bDFJ5Kqu0NqWlwVrKVer1KHiN6tbLPvZg/3twQ== X-Received: by 2002:a6b:8bd8:: with SMTP id n207mr15350848iod.147.1568939144198; Thu, 19 Sep 2019 17:25:44 -0700 (PDT) Received: from [192.168.2.52] (71-82-69-114.dhcp.bycy.mi.charter.com. [71.82.69.114]) by smtp.googlemail.com with ESMTPSA id d9sm310550ioq.9.2019.09.19.17.25.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 17:25:43 -0700 (PDT) Message-ID: <4e2e655c245cfc810b0faaf4c63b8fd99b384269.camel@gmail.com> From: Kyle Andrews Date: Thu, 19 Sep 2019 20:25:42 -0400 X-Mailer: Evolution 3.28.1 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.43 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 Hello, I'd like to provide a package definition for the xftwidth calculator utility so that it may be included into guix. Please see the attached patch. Regards, Kyle Andrews From 60deaa526b4a6ca5a66f3b67ba77aa353409d542 Mon Sep 17 00:00:00 2001 From: Kyle Andrews Date: Thu, 19 Sep 2019 20:16:28 -0400 Subject: [PATCH] gnu: Add xftwidth. * gnu/packages/wm.scm: added xftwidth package. --- gnu/packages/wm.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index e19c6c1438..3e321eeb1c 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -209,6 +209,45 @@ or musca). (home-page "https://herbstluftwm.org") (license license:bsd-2))) +(define-public xftwidth + (package + (name "xftwidth") + (version "20170402") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vixus0/xftwidth") + (commit "35ff963908d41a8a6a7101c434c88255728025ee"))) + (sha256 + (base32 + "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h")) + (file-name (string-append name "-" version "-checkout")))) + (build-system gnu-build-system) + (inputs `(("freetype" ,freetype) + ("libx11" ,libx11) + ("fontconfig" ,fontconfig) + ("libxft" ,libxft))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH + (lambda _ (substitute* "Makefile" (("usr/") "")) #t)) + (delete 'check) ; no check included in Makefile + (delete 'configure)) + #:make-flags + (let ((out (assoc-ref %outputs "out"))) + (list (string-append "DESTDIR=" out))))) + (synopsis "Calculator for determining displayed text widths using Xft fonts.") + (description "A small C program to calculate pixel widths for displayed +text using Xft fonts (given a specific font name and size). It is ideal for +scripts including text into the custom (e.g. dzen and xmobar based) panels +often used in conjunction with minimalistic window managers.") + (home-page "http://github.com/vixus0/xftwidth") + (license license:expat))) + (define-public i3status (package (name "i3status") -- 2.23.0