8ca32e47cfc841e38dcc160e756f8a8815479988
[jackhill/guix/guix.git] / gnu / packages / gnustep.scm
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>
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)
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))
33
34 (define-public windowmaker
35 (package
36 (name "windowmaker")
37 (version "0.95.6")
38 (source (origin
39 (method url-fetch)
40 (uri (string-append
41 "http://windowmaker.org/pub/source/release/WindowMaker-"
42 version ".tar.gz"))
43 (sha256
44 (base32
45 "1i3dw1yagsa3rs9x2na2ynqlgmbahayws0kz4vl00fla6550nns3"))))
46 (build-system gnu-build-system)
47 (arguments
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"
58 (("\"wmaker\\.inst")
59 (string-append "\"" bin "/wmaker.inst")))
60 (substitute* '("src/defaults.c" "WPrefs.app/Menu.c")
61 (("\"wmsetbg")
62 (string-append "\"" bin "/wmsetbg")))))
63 (alist-cons-after
64 'install 'wrap
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)))))
72 %standard-phases))))
73 (inputs
74 `(("libxmu" ,libxmu)
75 ("libxft" ,libxft)
76 ("libx11" ,libx11)
77 ("fontconfig" ,fontconfig)
78 ("libjpeg" ,libjpeg)))
79 (native-inputs
80 `(("pkg-config" ,pkg-config)))
81 (home-page "http://windowmaker.org/")
82 (synopsis "NeXTSTEP-like window manager")
83 (description
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.")
88
89 ;; Artwork is distributed under the WTFPL.
90 (license gpl2+)))
91
92 (define-public wmbattery
93 (package
94 (name "wmbattery")
95 (version "2.50")
96 (source (origin
97 (method url-fetch)
98 (uri (string-append
99 "mirror://debian/pool/main/w/wmbattery/wmbattery_"
100 version ".orig.tar.gz"))
101 (sha256
102 (base32
103 "0hi6bivv3xd2k68w08krndfl68wdx7nmc2wjzsmcd4q3qgwgyk44"))))
104 (build-system gnu-build-system)
105 (arguments
106 `(#:tests? #f ; no "check" target
107 #:phases
108 (modify-phases %standard-phases
109 (add-after 'unpack 'autoconf
110 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
111 (inputs
112 `(("glib" ,glib)
113 ("libx11" ,libx11)
114 ("libxext" ,libxext)
115 ("libxpm" ,libxpm)
116 ("upower" ,upower)))
117 (native-inputs
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")
123 (description
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).")
128 (license gpl2)))
129
130 (define-public wmnd
131 (package
132 (name "wmnd")
133 (version "0.4.17")
134 (source (origin
135 (method url-fetch)
136 (uri (string-append
137 "http://www.thregr.org/~wavexx/software/wmnd/releases/"
138 name "-" version ".tar.gz"))
139 (sha256
140 (base32
141 "1amkbiwgr31gwkcp7wrjsr7aj1kns8bpmjpv70n86wb8v9mpm828"))))
142 (build-system gnu-build-system)
143 (inputs
144 `(("libx11" ,libx11)
145 ("libxext" ,libxext)
146 ("libxpm" ,libxpm)))
147 (native-inputs
148 `(("pkg-config" ,pkg-config)))
149 (home-page "http://www.thregr.org/~wavexx/software/wmnd/")
150 (synopsis "Network interface monitor")
151 (description
152 "WMND is a dockapp for monitoring network interfaces under WindowMaker and
153 other compatible window managers.")
154 (license gpl2+)))