1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2016 Kei Yamashita <kei@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 gnustep)
21 #:use-module (guix download)
22 #:use-module (guix packages)
23 #:use-module (guix build-system gnu)
24 #:use-module (guix licenses)
25 #:use-module (gnu packages xorg)
26 #:use-module (gnu packages gnome)
27 #:use-module (gnu packages texinfo)
28 #:use-module (gnu packages autotools)
29 #:use-module (gnu packages glib)
30 #:use-module (gnu packages fontutils)
31 #:use-module (gnu packages image)
32 #:use-module (gnu packages pkg-config))
34 (define-public windowmaker
41 "http://windowmaker.org/pub/source/release/WindowMaker-"
45 "1i3dw1yagsa3rs9x2na2ynqlgmbahayws0kz4vl00fla6550nns3"))))
46 (build-system gnu-build-system)
48 '(#:phases (alist-cons-before
49 'configure 'pre-configure
50 (lambda* (#:key outputs #:allow-other-keys)
51 ;; 'wmaker' wants to invoke 'wmaker.inst' the first time,
52 ;; and the 'wmsetbg', so make sure it uses the right ones.
53 ;; We can't use a wrapper here because that would pollute
54 ;; $PATH in the whole session.
55 (let* ((out (assoc-ref outputs "out"))
56 (bin (string-append out "/bin")))
57 (substitute* "src/main.c"
59 (string-append "\"" bin "/wmaker.inst")))
60 (substitute* '("src/defaults.c" "WPrefs.app/Menu.c")
62 (string-append "\"" bin "/wmsetbg")))))
65 (lambda* (#:key outputs #:allow-other-keys)
66 (let* ((out (assoc-ref outputs "out"))
67 (bin (string-append out "/bin")))
68 ;; In turn, 'wmaker.inst' wants to invoke 'wmmenugen'
69 ;; etc., so make sure everything is in $PATH.
70 (wrap-program (string-append bin "/wmaker.inst")
71 `("PATH" ":" prefix (,bin)))))
77 ("fontconfig" ,fontconfig)
78 ("libjpeg" ,libjpeg)))
80 `(("pkg-config" ,pkg-config)))
81 (home-page "http://windowmaker.org/")
82 (synopsis "NeXTSTEP-like window manager")
84 "Window Maker is an X11 window manager originally designed to provide
85 integration support for the GNUstep Desktop Environment. In every way
86 possible, it reproduces the elegant look and feel of the NeXTSTEP user
87 interface. It is fast, feature rich, easy to configure, and easy to use.")
89 ;; Artwork is distributed under the WTFPL.
92 (define-public wmbattery
99 "mirror://debian/pool/main/w/wmbattery/wmbattery_"
100 version ".orig.tar.gz"))
103 "0hi6bivv3xd2k68w08krndfl68wdx7nmc2wjzsmcd4q3qgwgyk44"))))
104 (build-system gnu-build-system)
106 `(#:tests? #f ; no "check" target
108 (modify-phases %standard-phases
109 (add-after 'unpack 'autoconf
110 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
118 `(("autoconf" ,autoconf)
119 ("automake" ,automake)
120 ("pkg-config" ,pkg-config)))
121 (home-page "http://windowmaker.org/dockapps/?name=wmbattery")
122 (synopsis "Display laptop battery info")
124 "Wmbattery displays the status of your laptop's battery in a small icon.
125 This includes if it is plugged in, if the battery is charging, how many minutes
126 of battery life remain, battery life remaining (with both a percentage and a
127 graph), and battery status (high - green, low - yellow, or critical - red).")
137 "http://www.thregr.org/~wavexx/software/wmnd/releases/"
138 name "-" version ".tar.gz"))
141 "1amkbiwgr31gwkcp7wrjsr7aj1kns8bpmjpv70n86wb8v9mpm828"))))
142 (build-system gnu-build-system)
148 `(("pkg-config" ,pkg-config)))
149 (home-page "http://www.thregr.org/~wavexx/software/wmnd/")
150 (synopsis "Network interface monitor")
152 "WMND is a dockapp for monitoring network interfaces under WindowMaker and
153 other compatible window managers.")