gnu: windowmaker: Update to 0.95.8.
[jackhill/guix/guix.git] / gnu / packages / gnustep.scm
CommitLineData
d7a9ed37
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
64851f4a 3;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
d7a9ed37
LC
4;;;
5;;; This file is part of GNU Guix.
6;;;
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.
11;;;
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.
16;;;
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/>.
19
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)
f9ab1da0 26 #:use-module (gnu packages gnome)
9c6b7ef5 27 #:use-module (gnu packages gtk)
f9ab1da0
KY
28 #:use-module (gnu packages texinfo)
29 #:use-module (gnu packages autotools)
30 #:use-module (gnu packages glib)
d7a9ed37 31 #:use-module (gnu packages fontutils)
e55354b8 32 #:use-module (gnu packages image)
d7a9ed37
LC
33 #:use-module (gnu packages pkg-config))
34
35(define-public windowmaker
36 (package
37 (name "windowmaker")
8cac5bca 38 (version "0.95.8")
d7a9ed37
LC
39 (source (origin
40 (method url-fetch)
41 (uri (string-append
42 "http://windowmaker.org/pub/source/release/WindowMaker-"
43 version ".tar.gz"))
44 (sha256
45 (base32
8cac5bca 46 "12p8kljqgx5hnic0zvs5mxwp7kg21sb6qjagb2qw8ydvf5amrgwx"))))
d7a9ed37
LC
47 (build-system gnu-build-system)
48 (arguments
be05e643
LC
49 '(#:phases (alist-cons-before
50 'configure 'pre-configure
d7a9ed37 51 (lambda* (#:key outputs #:allow-other-keys)
be05e643
LC
52 ;; 'wmaker' wants to invoke 'wmaker.inst' the first time,
53 ;; and the 'wmsetbg', so make sure it uses the right ones.
54 ;; We can't use a wrapper here because that would pollute
55 ;; $PATH in the whole session.
d7a9ed37
LC
56 (let* ((out (assoc-ref outputs "out"))
57 (bin (string-append out "/bin")))
be05e643
LC
58 (substitute* "src/main.c"
59 (("\"wmaker\\.inst")
60 (string-append "\"" bin "/wmaker.inst")))
61 (substitute* '("src/defaults.c" "WPrefs.app/Menu.c")
62 (("\"wmsetbg")
fdb552bb
KK
63 (string-append "\"" bin "/wmsetbg")))
64 ;; Add enough cells to the command character array to
65 ;; allow passing our large path to the wmsetbg binary.
66 ;; The path to wmsetbg in Guix requires 67 extra characters.
67 (substitute* "src/defaults.c"
68 (("len = strlen\\(text\\) \\+ 40;")
69 (string-append "len = strlen(text) + 107;")))))
be05e643
LC
70 (alist-cons-after
71 'install 'wrap
72 (lambda* (#:key outputs #:allow-other-keys)
73 (let* ((out (assoc-ref outputs "out"))
74 (bin (string-append out "/bin")))
75 ;; In turn, 'wmaker.inst' wants to invoke 'wmmenugen'
76 ;; etc., so make sure everything is in $PATH.
77 (wrap-program (string-append bin "/wmaker.inst")
78 `("PATH" ":" prefix (,bin)))))
79 %standard-phases))))
d7a9ed37
LC
80 (inputs
81 `(("libxmu" ,libxmu)
82 ("libxft" ,libxft)
83 ("libx11" ,libx11)
84 ("fontconfig" ,fontconfig)
233fbb61
KK
85 ("libjpeg" ,libjpeg)
86 ("giflib" ,giflib)
87 ("libpng" ,libpng)
88 ("libtiff" ,libtiff)))
d7a9ed37
LC
89 (native-inputs
90 `(("pkg-config" ,pkg-config)))
91 (home-page "http://windowmaker.org/")
92 (synopsis "NeXTSTEP-like window manager")
93 (description
94 "Window Maker is an X11 window manager originally designed to provide
95integration support for the GNUstep Desktop Environment. In every way
96possible, it reproduces the elegant look and feel of the NeXTSTEP user
97interface. It is fast, feature rich, easy to configure, and easy to use.")
98
99 ;; Artwork is distributed under the WTFPL.
100 (license gpl2+)))
f9ab1da0
KY
101
102(define-public wmbattery
103 (package
104 (name "wmbattery")
105 (version "2.50")
106 (source (origin
107 (method url-fetch)
108 (uri (string-append
109 "mirror://debian/pool/main/w/wmbattery/wmbattery_"
110 version ".orig.tar.gz"))
111 (sha256
112 (base32
64851f4a
KY
113 "0hi6bivv3xd2k68w08krndfl68wdx7nmc2wjzsmcd4q3qgwgyk44"))
114 (modules '((guix build utils)))
115 (snippet
116 ;; Fix memory leak:
117 ;; <https://lists.gnu.org/archive/html/guix-devel/2016-05/msg00466.html>.
118 '(substitute* "upower.c"
119 (("up = up_client_new\\(\\);")
120 (string-append "if (!up)\n"
121 " up = up_client_new();"))))))
f9ab1da0
KY
122 (build-system gnu-build-system)
123 (arguments
124 `(#:tests? #f ; no "check" target
125 #:phases
126 (modify-phases %standard-phases
127 (add-after 'unpack 'autoconf
128 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
129 (inputs
130 `(("glib" ,glib)
131 ("libx11" ,libx11)
132 ("libxext" ,libxext)
133 ("libxpm" ,libxpm)
134 ("upower" ,upower)))
135 (native-inputs
136 `(("autoconf" ,autoconf)
137 ("automake" ,automake)
138 ("pkg-config" ,pkg-config)))
139 (home-page "http://windowmaker.org/dockapps/?name=wmbattery")
140 (synopsis "Display laptop battery info")
141 (description
142 "Wmbattery displays the status of your laptop's battery in a small icon.
143This includes if it is plugged in, if the battery is charging, how many minutes
144of battery life remain, battery life remaining (with both a percentage and a
145graph), and battery status (high - green, low - yellow, or critical - red).")
146 (license gpl2)))
147
7407f7fe
KY
148(define-public wmnd
149 (package
150 (name "wmnd")
151 (version "0.4.17")
152 (source (origin
153 (method url-fetch)
154 (uri (string-append
155 "http://www.thregr.org/~wavexx/software/wmnd/releases/"
156 name "-" version ".tar.gz"))
157 (sha256
158 (base32
159 "1amkbiwgr31gwkcp7wrjsr7aj1kns8bpmjpv70n86wb8v9mpm828"))))
160 (build-system gnu-build-system)
161 (inputs
162 `(("libx11" ,libx11)
163 ("libxext" ,libxext)
164 ("libxpm" ,libxpm)))
165 (native-inputs
166 `(("pkg-config" ,pkg-config)))
167 (home-page "http://www.thregr.org/~wavexx/software/wmnd/")
168 (synopsis "Network interface monitor")
169 (description
170 "WMND is a dockapp for monitoring network interfaces under WindowMaker and
171other compatible window managers.")
172 (license gpl2+)))
bd688698
KY
173
174(define-public wmcpuload
175 (package
176 (name "wmcpuload")
177 (version "1.0.1")
178 (source (origin
179 (method url-fetch)
180 (uri (string-append
181 "mirror://debian/pool/main/w/wmcpuload/"
182 name "_" version ".orig.tar.gz"))
183 (sha256
184 (base32
185 "0irlns4cvxy2mnicx75bya166hdxq7h8bphds3ligijcl9fzgs6n"))))
186 (build-system gnu-build-system)
187 (inputs
188 `(("libx11" ,libx11)
189 ("libxext" ,libxext)
190 ("libxpm" ,libxpm)))
191 (native-inputs
192 `(("pkg-config" ,pkg-config)))
193 (home-page "http://windowmaker.org/dockapps/?name=wmcpuload")
194 (synopsis "Monitor CPU usage")
195 (description
196 "Wmcpuload displays the current CPU usage, expressed as a percentile and a
197chart, and has an LCD look-alike user interface. The back-light may be turned
198on and off by clicking the mouse button over the application. If the CPU usage
199hits a certain threshold, an alarm-mode will alert you by turning back-light
200on.")
201 (license gpl2+)))
2331e5e8
KY
202
203(define-public wmclock
204 (package
205 (name "wmclock")
206 (version "1.0.16")
207 (source (origin
208 (method url-fetch)
209 (uri (string-append
210 "mirror://debian/pool/main/w/wmclock/"
211 name "_" version ".orig.tar.gz"))
212 (sha256
213 (base32
214 "1lx276ba8r2yydhmwj1g586jdqg695ad89ng36fr3mb067gvb2rz"))))
215 (build-system gnu-build-system)
216 (arguments
217 `(#:phases
218 (modify-phases %standard-phases
219 (add-after 'unpack 'autoconf
220 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
221 ;; wmclock requires autoreconf to generate its configure script.
222 (inputs
223 `(("libx11" ,libx11)
224 ("libxext" ,libxext)
225 ("libxpm" ,libxpm)))
226 (native-inputs
227 `(("autoconf" ,autoconf)
228 ("automake" ,automake)
229 ("pkg-config" ,pkg-config)))
230 (home-page "http://windowmaker.org/dockapps/?name=wmclock")
231 (synopsis "Display the date and time")
232 (description
233 "wmclock is an applet for Window Maker which displays the date and time in
234a dockable tile. It features multiple language support, 24h or 12h time
235display, and can run a user-specified program on mouse click.")
236 (license gpl2+)))
9c6b7ef5
KY
237
238(define-public wmfire
239 (package
240 (name "wmfire")
241 (version "1.2.4")
242 (source (origin
243 (method url-fetch)
244 (uri (string-append "http://www.improbability.net/"
245 name "/" name "-" version ".tar.gz"))
246 (sha256
247 (base32
248 "101grahd80n97y2dczb629clmcgiavdpbbwy78kk5wgs362m12z3"))))
249 (build-system gnu-build-system)
250 (inputs
251 `(("gtk+" ,gtk+-2)
252 ("libgtop" ,libgtop)))
253 (native-inputs
254 `(("pkg-config" ,pkg-config)))
255 (home-page "http://www.improbability.net/")
66e07664 256 (synopsis "Display flames to represent resource usage")
9c6b7ef5
KY
257 (description
258 "wmfire is an applet for Window Maker that can monitor the average cpu
259load, or individual cpu load on SMP computers. Additionally it can monitor the
260memory, network load, a file or just be set to show a pretty flame. On
261entering the dock a burning spot replaces the cursor, and after two seconds
262symbols to represent the current monitor are \"burnt\" onscreen. The flame
263colour can also be changed.")
264 (license gpl2+)))