gnu: lvm2: Fix static build after 62ec02bf21.
[jackhill/guix/guix.git] / gnu / packages / mate.scm
CommitLineData
bb2fe79e
FH
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
06599980 3;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
bb2fe79e
FH
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 mate)
21 #:use-module ((guix licenses) #:prefix license:)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix utils)
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages pkg-config)
28 #:use-module (gnu packages glib)
29 #:use-module (gnu packages gtk)
4b48a9fe
FH
30 #:use-module (gnu packages gnome)
31 #:use-module (gnu packages xorg)
f2c7369a
FH
32 #:use-module (gnu packages xdisorg)
33 #:use-module (gnu packages base)
7af1ca29
FH
34 #:use-module (gnu packages xml)
35 #:use-module (gnu packages python))
bb2fe79e
FH
36
37(define-public mate-icon-theme
38 (package
39 (name "mate-icon-theme")
b6c5ad85 40 (version "1.16.0")
bb2fe79e
FH
41 (source (origin
42 (method url-fetch)
43 (uri (string-append "http://pub.mate-desktop.org/releases/"
44 (version-major+minor version) "/"
45 name "-" version ".tar.xz"))
46 (sha256
47 (base32
b6c5ad85 48 "1zldw22p1i76iss8car39pmfagpfxxlfk1fdhvr4x5r6gf36gv7d"))))
bb2fe79e
FH
49 (build-system gnu-build-system)
50 (native-inputs
51 `(("pkg-config" ,pkg-config)
52 ("intltool" ,intltool)
53 ("gtk+" ,gtk+)
54 ("icon-naming-utils" ,icon-naming-utils)))
55 (home-page "http://mate-desktop.org/")
56 (synopsis "The MATE desktop environment icon theme")
57 (description
58 "This package contains the default icon theme used by the MATE desktop.")
59 (license license:lgpl3+)))
cbfe494d
FH
60
61(define-public mate-themes
62 (package
63 (name "mate-themes")
4e85f8d9 64 (version "3.22.10")
cbfe494d
FH
65 (source (origin
66 (method url-fetch)
e3ec6c80 67 (uri (string-append "http://pub.mate-desktop.org/releases/themes/"
4e85f8d9
KK
68 (version-major+minor version) "/mate-themes-"
69 version ".tar.xz"))
cbfe494d
FH
70 (sha256
71 (base32
4e85f8d9 72 "03ficjfxa4qpx4vcshhk2zxryivckxpw7wcjgbn8xqnjk3lgzjcb"))))
cbfe494d
FH
73 (build-system gnu-build-system)
74 (native-inputs
75 `(("pkg-config" ,pkg-config)
76 ("intltool" ,intltool)))
77 (inputs
e3ec6c80 78 `(("gtk+" ,gtk+)
cbfe494d
FH
79 ("gdk-pixbuf" ,gdk-pixbuf)
80 ("gtk-engines" ,gtk-engines)
81 ("murrine" ,murrine)))
82 (home-page "http://mate-desktop.org/")
83 (synopsis
84 "Official themes for the MATE desktop")
85 (description
86 "This package includes the standard themes for the MATE desktop, for
e3ec6c80
EF
87example Menta, TraditionalOk, GreenLaguna or BlackMate. This package has
88themes for both gtk+-2 and gtk+-3.")
cbfe494d
FH
89 (license (list license:lgpl2.1+ license:cc-by-sa3.0 license:gpl3+
90 license:gpl2+))))
4b48a9fe
FH
91
92(define-public mate-desktop
93 (package
94 (name "mate-desktop")
9927943c 95 (version "1.16.1")
4b48a9fe
FH
96 (source (origin
97 (method url-fetch)
98 (uri (string-append "http://pub.mate-desktop.org/releases/"
99 (version-major+minor version) "/"
100 name "-" version ".tar.xz"))
101 (sha256
102 (base32
9927943c 103 "1pzncfgrzp2mp9407ivk1113hkadpf110blr058h31jkwsk8syjq"))))
4b48a9fe 104 (build-system gnu-build-system)
9927943c
EF
105 (arguments
106 `(#:configure-flags '("--with-gtk=3.0"
107 "--enable-mpaste")))
4b48a9fe
FH
108 (native-inputs
109 `(("pkg-config" ,pkg-config)
110 ("intltool" ,intltool)
111 ("glib:bin" ,glib "bin")
112 ("gobject-introspection" ,gobject-introspection)
113 ("yelp-tools" ,yelp-tools)))
114 ;;("gtk-doc" ,gtk-doc))) ; add back in when gtk-doc builds
115 (inputs
9927943c
EF
116 `(("gtk+" ,gtk+)
117 ("libxrandr" ,libxrandr)
118 ("python2" ,python-2)
4b48a9fe 119 ("startup-notification" ,startup-notification)))
9927943c
EF
120 (propagated-inputs
121 `(("dconf" ,dconf))) ; mate-desktop-2.0.pc
4b48a9fe
FH
122 (home-page "http://mate-desktop.org/")
123 (synopsis "Library with common API for various MATE modules")
124 (description
125 "This package contains a public API shared by several applications on the
126desktop and the mate-about program.")
127 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.1+))))
f2c7369a
FH
128
129(define-public libmateweather
130 (package
131 (name "libmateweather")
06599980 132 (version "1.16.1")
f2c7369a
FH
133 (source (origin
134 (method url-fetch)
135 (uri (string-append "http://pub.mate-desktop.org/releases/"
136 (version-major+minor version) "/"
137 name "-" version ".tar.xz"))
138 (sha256
139 (base32
06599980 140 "0w1b8b1ckmkbvwnqi9yh2lwbskzhz99s5yxdkar5xiqylnjrwmm3"))))
f2c7369a
FH
141 (build-system gnu-build-system)
142 (arguments
143 `(#:configure-flags
06599980
EF
144 `("--with-gtk=3.0"
145 ,(string-append "--with-zoneinfo-dir="
f2c7369a
FH
146 (assoc-ref %build-inputs "tzdata")
147 "/share/zoneinfo"))
148 #:phases
149 (modify-phases %standard-phases
150 (add-before
151 'check 'pre-check
152 (lambda* (#:key inputs #:allow-other-keys)
153 (substitute* "data/check-timezones.sh"
154 (("/usr/share/zoneinfo/zone.tab")
155 (string-append (assoc-ref inputs "tzdata")
156 "/share/zoneinfo/zone.tab")))
157 #t)))))
158 (native-inputs
159 `(("pkg-config" ,pkg-config)
160 ("intltool" ,intltool)
161 ("glib:bin" ,glib "bin")))
162 (inputs
163 `(("dconf" ,dconf)
06599980
EF
164 ("gdk-pixbuf" ,gdk-pixbuf)
165 ("gtk+" ,gtk+)
f2c7369a
FH
166 ("tzdata" ,tzdata)))
167 (propagated-inputs
06599980
EF
168 ;; both of these are requires.private in mateweather.pc
169 `(("libsoup" ,libsoup)
170 ("libxml2" ,libxml2)))
f2c7369a
FH
171 (home-page "http://mate-desktop.org/")
172 (synopsis "MATE library for weather information from the Internet")
173 (description
06599980 174 "This library provides access to weather information from the internet for
f2c7369a
FH
175the MATE desktop environment.")
176 (license license:lgpl2.1+)))
7af1ca29
FH
177
178(define-public mate-menus
179 (package
180 (name "mate-menus")
27caff1b 181 (version "1.16.0")
7af1ca29
FH
182 (source (origin
183 (method url-fetch)
184 (uri (string-append "http://pub.mate-desktop.org/releases/"
185 (version-major+minor version) "/"
186 name "-" version ".tar.xz"))
187 (sha256
188 (base32
27caff1b 189 "0crw07iszwsqk54y8znfqdgfz76rjdz8992v4q9kpwwlrl11xmc5"))))
7af1ca29
FH
190 (build-system gnu-build-system)
191 (arguments
192 `(#:phases
193 (modify-phases %standard-phases
194 (add-after
195 'unpack 'fix-introspection-install-dir
196 (lambda* (#:key outputs #:allow-other-keys)
197 (let ((out (assoc-ref outputs "out")))
198 (substitute* '("configure")
199 (("`\\$PKG_CONFIG --variable=girdir gobject-introspection-1.0`")
200 (string-append "\"" out "/share/gir-1.0/\""))
201 (("\\$\\(\\$PKG_CONFIG --variable=typelibdir gobject-introspection-1.0\\)")
27caff1b
EF
202 (string-append out "/lib/girepository-1.0/")))
203 #t))))))
7af1ca29
FH
204 (native-inputs
205 `(("pkg-config" ,pkg-config)
206 ("intltool" ,intltool)
207 ("gobject-introspection" ,gobject-introspection)))
208 (inputs
27caff1b
EF
209 `(("glib" ,glib)
210 ("python" ,python-2)))
7af1ca29
FH
211 (home-page "http://mate-desktop.org/")
212 (synopsis "Freedesktop menu specification implementation for MATE")
213 (description
214 "The package contains an implementation of the freedesktop menu
215specification, the MATE menu layout configuration files, .directory files and
216assorted menu related utility programs.")
217 (license (list license:gpl2+ license:lgpl2.0+))))