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>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages ratpoison)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module ((guix licenses) #:select (gpl2+))
25 #:use-module (gnu packages)
26 #:use-module (gnu packages xorg)
27 #:use-module (gnu packages perl)
28 #:use-module (gnu packages readline)
29 #:use-module (gnu packages pkg-config)
30 #:use-module (gnu packages fontutils))
32 (define ratpoison.desktop
35 (uri (string-append "https://sources.gentoo.org/cgi-bin/viewvc.cgi/"
36 "gentoo-x86/x11-wm/ratpoison/files/ratpoison.desktop"
38 (file-name "ratpoison.desktop")
41 "1rh3f4c3rhn6q2hmkraam0831xqcqyj3qkqf019ahaxsxaan3553"))))
43 (define-public ratpoison
48 (origin (method url-fetch)
49 (uri (string-append "mirror://savannah/ratpoison/ratpoison-"
53 "1w502z55vv7zs45l80nsllqh9fvfwjfdfi11xy1qikhzdmirains"))
54 (patches (search-patches "ratpoison-shell.patch"))))
55 (build-system gnu-build-system)
58 (modify-phases %standard-phases
59 (add-after 'install 'install-xsession
60 (lambda* (#:key inputs outputs #:allow-other-keys)
61 (let ((rpd "ratpoison.desktop")
62 (dst (string-append (assoc-ref outputs "out")
63 "/share/xsessions/")))
65 (copy-file (assoc-ref inputs rpd)
66 (string-append dst rpd))))))))
68 `(("inputproto" ,inputproto)
69 ("fontconfig" ,fontconfig)
70 ("freetype" ,freetype)
73 ("libxinerama" ,libxinerama)
78 ("readline" ,readline)
79 ("xextproto" ,xextproto)))
82 ("pkg-config" ,pkg-config)
83 ("ratpoison.desktop" ,ratpoison.desktop)))
84 (home-page "http://www.nongnu.org/ratpoison/")
85 (synopsis "Simple mouse-free tiling window manager")
87 "Ratpoison is a simple window manager with no fat library
88 dependencies, no fancy graphics, no window decorations, and no
89 rodent dependence. It is largely modelled after GNU Screen which
90 has done wonders in the virtual terminal market.
92 The screen can be split into non-overlapping frames. All windows
93 are kept maximized inside their frames to take full advantage of
94 your precious screen real estate.
96 All interaction with the window manager is done through keystrokes.
97 Ratpoison has a prefix map to minimize the key clobbering that
98 cripples Emacs and other quality pieces of software.")