gnustep.scm 11 KB

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