1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
4 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; This file is part of GNU Guix.
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.
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.
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/>.
21 (define-module (gnu packages gnustep)
22 #:use-module (guix download)
23 #:use-module (guix packages)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix licenses)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages base)
28 #:use-module (gnu packages xorg)
29 #:use-module (gnu packages libffcall)
30 #:use-module (gnu packages gnome)
31 #:use-module (gnu packages gtk)
32 #:use-module (gnu packages texinfo)
33 #:use-module (gnu packages autotools)
34 #:use-module (gnu packages glib)
35 #:use-module (gnu packages fontutils)
36 #:use-module (gnu packages image)
37 #:use-module (gnu packages pkg-config)
38 #:use-module (gnu packages xml)
39 #:use-module (ice-9 match))
41 (define-public gnustep-make
47 (uri (string-append "ftp://ftp.gnustep.org/pub/gnustep/core/"
48 name "-" version ".tar.gz"))
51 "1khiygfkz0zhh9b5nybn40g0xnnjxchk24n49hff1bwanszir84h"))))
52 (build-system gnu-build-system)
54 '(#:tests? #f)) ; no check target
57 (home-page "http://gnustep.org")
58 (synopsis "GNUstep make package")
59 (description "The makefile package is a simple, powerful and extensible way
60 to write makefiles for a GNUstep-based project. It allows the user to write a
61 project without having to deal with the complex issues associated with
62 configuration, building, installation, and packaging. It also allows the user
63 to easily create cross-compiled binaries.")
66 (define-public windowmaker
70 (synopsis "NeXTSTEP-like window manager")
74 "http://windowmaker.org/pub/source/release/WindowMaker-"
78 "12p8kljqgx5hnic0zvs5mxwp7kg21sb6qjagb2qw8ydvf5amrgwx"))))
79 (build-system gnu-build-system)
81 `(#:modules ((guix build gnu-build-system)
85 (modify-phases %standard-phases
86 (add-before 'configure 'pre-configure
87 (lambda* (#:key outputs #:allow-other-keys)
88 ;; 'wmaker' wants to invoke 'wmaker.inst' the first time,
89 ;; and the 'wmsetbg', so make sure it uses the right ones.
90 ;; We can't use a wrapper here because that would pollute
91 ;; $PATH in the whole session.
92 (let* ((out (assoc-ref outputs "out"))
93 (bin (string-append out "/bin")))
94 (substitute* "src/main.c"
96 (string-append "\"" bin "/wmaker.inst")))
97 (substitute* '("src/defaults.c" "WPrefs.app/Menu.c")
99 (string-append "\"" bin "/wmsetbg")))
100 ;; Add enough cells to the command character array to
101 ;; allow passing our large path to the wmsetbg binary.
102 ;; The path to wmsetbg in Guix requires 67 extra characters.
103 (substitute* "src/defaults.c"
104 (("len = strlen\\(text\\) \\+ 40;")
105 (string-append "len = strlen(text) + 107;")))
107 (add-after 'install 'install-xsession
108 (lambda* (#:key outputs #:allow-other-keys)
109 (let* ((out (assoc-ref outputs "out"))
110 (xsessions (string-append out "/share/xsessions")))
112 (call-with-output-file
113 (string-append xsessions "/windowmaker.desktop")
121 (string-map (match-lambda
126 (add-after 'install-xsession 'wrap
127 (lambda* (#:key outputs #:allow-other-keys)
128 (let* ((out (assoc-ref outputs "out"))
129 (bin (string-append out "/bin")))
130 ;; In turn, 'wmaker.inst' wants to invoke 'wmmenugen'
131 ;; etc., so make sure everything is in $PATH.
132 (wrap-program (string-append bin "/wmaker.inst")
133 `("PATH" ":" prefix (,bin)))
139 ("libxinerama" ,libxinerama)
140 ("fontconfig" ,fontconfig)
144 ("libtiff" ,libtiff)))
146 `(("pkg-config" ,pkg-config)))
147 (home-page "http://windowmaker.org/")
149 "Window Maker is an X11 window manager originally designed to provide
150 integration support for the GNUstep Desktop Environment. In every way
151 possible, it reproduces the elegant look and feel of the NeXTSTEP user
152 interface. It is fast, feature rich, easy to configure, and easy to use.")
154 ;; Artwork is distributed under the WTFPL.
157 (define-public wmbattery
164 "mirror://debian/pool/main/w/wmbattery/wmbattery_"
165 version ".orig.tar.gz"))
168 "084a3irxbmgms4bqaga80mlx9wgvlkx6d2w0ns939yrpfzg87laj"))))
169 (build-system gnu-build-system)
171 `(#:tests? #f ; no "check" target
173 (modify-phases %standard-phases
174 (add-after 'unpack 'autoconf
176 (invoke "autoreconf" "-vfi")
185 `(("autoconf" ,autoconf)
186 ("automake" ,automake)
187 ("pkg-config" ,pkg-config)))
188 (home-page "http://www.dockapps.net/wmbattery")
189 (synopsis "Display laptop battery info")
191 "Wmbattery displays the status of your laptop's battery in a small icon.
192 This includes if it is plugged in, if the battery is charging, how many minutes
193 of battery life remain, battery life remaining (with both a percentage and a
194 graph), and battery status (high - green, low - yellow, or critical - red).")
204 "http://www.thregr.org/~wavexx/software/wmnd/releases/"
205 name "-" version ".tar.gz"))
208 "1amkbiwgr31gwkcp7wrjsr7aj1kns8bpmjpv70n86wb8v9mpm828"))))
209 (build-system gnu-build-system)
215 `(("pkg-config" ,pkg-config)))
216 (home-page "http://www.thregr.org/~wavexx/software/wmnd/")
217 (synopsis "Network interface monitor")
219 "WMND is a dockapp for monitoring network interfaces under WindowMaker and
220 other compatible window managers.")
223 (define-public wmcpuload
230 "mirror://debian/pool/main/w/wmcpuload/"
231 name "_" version ".orig.tar.gz"))
234 "1334y0axnxydwv05d172f405iljrfakg4kcyg9kmn46v6ywv424g"))))
235 (build-system gnu-build-system)
241 `(("pkg-config" ,pkg-config)))
242 (home-page "http://www.dockapps.net/wmcpuload")
243 (synopsis "Monitor CPU usage")
245 "Wmcpuload displays the current CPU usage, expressed as a percentile and a
246 chart, and has an LCD look-alike user interface. The back-light may be turned
247 on and off by clicking the mouse button over the application. If the CPU usage
248 hits a certain threshold, an alarm-mode will alert you by turning back-light
252 (define-public wmclock
259 "mirror://debian/pool/main/w/wmclock/"
260 name "_" version ".orig.tar.gz"))
263 "1lx276ba8r2yydhmwj1g586jdqg695ad89ng36fr3mb067gvb2rz"))))
264 (build-system gnu-build-system)
267 (modify-phases %standard-phases
268 (add-after 'unpack 'autoconf
270 (invoke "autoreconf" "-vfi")
272 ;; wmclock requires autoreconf to generate its configure script.
278 `(("autoconf" ,autoconf)
279 ("automake" ,automake)
280 ("pkg-config" ,pkg-config)))
281 (home-page "http://www.dockapps.net/wmclock")
282 (synopsis "Display the date and time")
284 "wmclock is an applet for Window Maker which displays the date and time in
285 a dockable tile. It features multiple language support, 24h or 12h time
286 display, and can run a user-specified program on mouse click.")
289 (define-public wmfire
295 (uri (string-append "http://www.improbability.net/"
296 name "/" name "-" version ".tar.gz"))
299 "101grahd80n97y2dczb629clmcgiavdpbbwy78kk5wgs362m12z3"))
301 (search-patches "wmfire-update-for-new-gdk-versions.patch"))))
302 (build-system gnu-build-system)
305 ("libgtop" ,libgtop)))
307 `(("pkg-config" ,pkg-config)))
308 (home-page "http://www.improbability.net/")
309 (synopsis "Display flames to represent resource usage")
311 "wmfire is an applet for Window Maker that can monitor the average cpu
312 load, or individual cpu load on SMP computers. Additionally it can monitor the
313 memory, network load, a file or just be set to show a pretty flame. On
314 entering the dock a burning spot replaces the cursor, and after two seconds
315 symbols to represent the current monitor are \"burnt\" onscreen. The flame
316 colour can also be changed.")