[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/13: gnu: Add xftwidth.
From: |
guix-commits |
Subject: |
10/13: gnu: Add xftwidth. |
Date: |
Sun, 29 Sep 2019 11:37:01 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit af96c417c65e417b4720320f1e639199b4c7f985
Author: Kyle Andrews <address@hidden>
Date: Sun Sep 29 10:06:49 2019 -0400
gnu: Add xftwidth.
* gnu/packages/xdisorg.scm: added xftwidth package.
---
gnu/packages/xdisorg.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 0b40ca6..79e0f61 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -26,6 +26,7 @@
;;; Copyright © 2018, 2019 Pierre Neidhardt <address@hidden>
;;; Copyright © 2018 Nam Nguyen <address@hidden>
;;; Copyright © 2019 Wiktor Żelazny <address@hidden>
+;;; Copyright © 2019 Kyle Andrews <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -83,6 +84,7 @@
#:use-module (gnu packages xml)
#:use-module (gnu packages gtk)
#:use-module (gnu packages xorg)
+ #:use-module (gnu packages fontutils)
#:use-module (gnu packages bison)
#:use-module (ice-9 match))
@@ -1322,6 +1324,46 @@ program for X11. It was designed to be fast, tiny and
scriptable in any languag
(home-page "https://github.com/robm/dzen")
(license license:expat))))
+(define-public xftwidth
+ (package
+ (name "xftwidth")
+ (version "20170402")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "http://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 pixel widths of displayed text using
Xft fonts")
+ (description "xftwidth is a small C program for calculating the pixel
+widths of displayed text using Xft fonts. It is especially useful in scripts
+for displaying text in graphical panels, menus, popups, and notification
+windows generated using dzen. These scripts are often used in conjunction with
+minimalistic tiling window managers such as herbstluftwm and bspwm.")
+ (home-page "http://github.com/vixus0/xftwidth")
+ (license license:expat)))
+
(define-public xcb-util-xrm
(package
(name "xcb-util-xrm")
- 01/13: gnu: perl-carp-clan: Update to 6.08., (continued)
- 01/13: gnu: perl-carp-clan: Update to 6.08., guix-commits, 2019/09/29
- 05/13: gnu: geocode-glib: Don't use NAME in source URI., guix-commits, 2019/09/29
- 06/13: gnu: cogl: Don't use NAME in source URI., guix-commits, 2019/09/29
- 03/13: gnu: emacs-dired-du: Use HTTPS home page., guix-commits, 2019/09/29
- 04/13: gnu: emacs-on-screen: Update to 1.3.3., guix-commits, 2019/09/29
- 02/13: gnu: emacs-dired-du: Update to 0.5.2., guix-commits, 2019/09/29
- 08/13: gnu: znc: Update to 1.7.5., guix-commits, 2019/09/29
- 11/13: gnu: cogl: Update to 1.22.4., guix-commits, 2019/09/29
- 09/13: gnu: geocode-glib: Update to 3.26.1., guix-commits, 2019/09/29
- 07/13: gnu: libgee: Don't use NAME in source URI., guix-commits, 2019/09/29
- 10/13: gnu: Add xftwidth.,
guix-commits <=
- 13/13: gnu: font-util: Update to 1.3.2., guix-commits, 2019/09/29
- 12/13: gnu: libgee: Update to 0.20.2., guix-commits, 2019/09/29