gnu: Fix common unquote typos.
[jackhill/guix/guix.git] / gnu / packages / ratpoison.scm
... / ...
CommitLineData
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
4;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages ratpoison)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module ((guix licenses) #:select (gpl2+))
26 #:use-module (gnu packages)
27 #:use-module (gnu packages xorg)
28 #:use-module (gnu packages perl)
29 #:use-module (gnu packages readline)
30 #:use-module (gnu packages pkg-config)
31 #:use-module (gnu packages fontutils))
32
33(define ratpoison.desktop
34 (origin
35 (method url-fetch)
36 (uri (string-append "https://sources.gentoo.org/cgi-bin/viewvc.cgi/"
37 "gentoo-x86/x11-wm/ratpoison/files/ratpoison.desktop"
38 "?revision=1.1"))
39 (file-name "ratpoison.desktop")
40 (sha256
41 (base32
42 "1rh3f4c3rhn6q2hmkraam0831xqcqyj3qkqf019ahaxsxaan3553"))))
43
44(define-public ratpoison
45 (package
46 (name "ratpoison")
47 (version "1.4.9")
48 (source
49 (origin (method url-fetch)
50 (uri (string-append "mirror://savannah/ratpoison/ratpoison-"
51 version ".tar.xz"))
52 (sha256
53 (base32
54 "1wfir1gvh5h7izgvx2kd1pr2k7wlncd33zq7qi9s9k2y0aza93yr"))
55 (patches (search-patches "ratpoison-shell.patch"))))
56 (build-system gnu-build-system)
57 (arguments
58 '(#:phases
59 (modify-phases %standard-phases
60 (add-after 'install 'install-xsession
61 (lambda* (#:key inputs outputs #:allow-other-keys)
62 (let ((rpd "ratpoison.desktop")
63 (dst (string-append (assoc-ref outputs "out")
64 "/share/xsessions/")))
65 (mkdir-p dst)
66 (copy-file (assoc-ref inputs rpd)
67 (string-append dst rpd))))))))
68 (inputs
69 `(("inputproto" ,inputproto)
70 ("fontconfig" ,fontconfig)
71 ("freetype" ,freetype)
72 ("libXft" ,libxft)
73 ("libXi" ,libxi)
74 ("libxrandr" ,libxrandr)
75 ("libXpm" ,libxpm)
76 ("libXt" ,libxt)
77 ("libXtst" ,libxtst)
78 ("libX11" ,libx11)
79 ("readline" ,readline)
80 ("xextproto" ,xextproto)))
81 (native-inputs
82 `(("perl" ,perl)
83 ("pkg-config" ,pkg-config)
84 ("ratpoison.desktop" ,ratpoison.desktop)))
85 (home-page "https://www.nongnu.org/ratpoison/")
86 (synopsis "Simple mouse-free tiling window manager")
87 (description
88 "Ratpoison is a simple window manager with no fat library
89dependencies, no fancy graphics, no window decorations, and no
90rodent dependence. It is largely modelled after GNU Screen which
91has done wonders in the virtual terminal market.
92
93The screen can be split into non-overlapping frames. All windows
94are kept maximized inside their frames to take full advantage of
95your precious screen real estate.
96
97All interaction with the window manager is done through keystrokes.
98Ratpoison has a prefix map to minimize the key clobbering that
99cripples Emacs and other quality pieces of software.")
100 (license gpl2+)))