1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
3 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
5 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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)
30 #:use-module (gnu packages gnome)
31 #:use-module (gnu packages xorg)
32 #:use-module (gnu packages xdisorg)
33 #:use-module (gnu packages base)
34 #:use-module (gnu packages xml)
35 #:use-module (gnu packages python))
37 (define-public mate-icon-theme
39 (name "mate-icon-theme")
43 (uri (string-append "http://pub.mate-desktop.org/releases/"
44 (version-major+minor version) "/"
45 name "-" version ".tar.xz"))
48 "1zldw22p1i76iss8car39pmfagpfxxlfk1fdhvr4x5r6gf36gv7d"))))
49 (build-system gnu-build-system)
51 `(("pkg-config" ,pkg-config)
52 ("intltool" ,intltool)
54 ("icon-naming-utils" ,icon-naming-utils)))
55 (home-page "http://mate-desktop.org/")
56 (synopsis "The MATE desktop environment icon theme")
58 "This package contains the default icon theme used by the MATE desktop.")
59 (license license:lgpl3+)))
61 (define-public mate-themes
64 (version (package-version gtk+))
67 (uri (string-append "http://pub.mate-desktop.org/releases/themes/"
68 (version-major+minor (package-version gtk+))
69 "/mate-themes-" (package-version gtk+)
73 "12p6xvqs8smbk9nivi43089fiw1jbb3g9836arr0sksmmziklnvy"))))
74 (build-system gnu-build-system)
76 `(("pkg-config" ,pkg-config)
77 ("intltool" ,intltool)))
80 ("gdk-pixbuf" ,gdk-pixbuf)
81 ("gtk-engines" ,gtk-engines)
82 ("murrine" ,murrine)))
83 (home-page "http://mate-desktop.org/")
85 "Official themes for the MATE desktop")
87 "This package includes the standard themes for the MATE desktop, for
88 example Menta, TraditionalOk, GreenLaguna or BlackMate. This package has
89 themes for both gtk+-2 and gtk+-3.")
90 (license (list license:lgpl2.1+ license:cc-by-sa3.0 license:gpl3+
93 (define-public mate-desktop
99 (uri (string-append "http://pub.mate-desktop.org/releases/"
100 (version-major+minor version) "/"
101 name "-" version ".tar.xz"))
104 "1pzncfgrzp2mp9407ivk1113hkadpf110blr058h31jkwsk8syjq"))))
105 (build-system gnu-build-system)
107 `(#:configure-flags '("--with-gtk=3.0"
110 `(("pkg-config" ,pkg-config)
111 ("intltool" ,intltool)
112 ("glib:bin" ,glib "bin")
113 ("gobject-introspection" ,gobject-introspection)
114 ("yelp-tools" ,yelp-tools)))
115 ;;("gtk-doc" ,gtk-doc))) ; add back in when gtk-doc builds
118 ("libxrandr" ,libxrandr)
119 ("python2" ,python-2)
120 ("startup-notification" ,startup-notification)))
122 `(("dconf" ,dconf))) ; mate-desktop-2.0.pc
123 (home-page "http://mate-desktop.org/")
124 (synopsis "Library with common API for various MATE modules")
126 "This package contains a public API shared by several applications on the
127 desktop and the mate-about program.")
128 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.1+))))
130 (define-public libmateweather
132 (name "libmateweather")
136 (uri (string-append "http://pub.mate-desktop.org/releases/"
137 (version-major+minor version) "/"
138 name "-" version ".tar.xz"))
141 "0w1b8b1ckmkbvwnqi9yh2lwbskzhz99s5yxdkar5xiqylnjrwmm3"))))
142 (build-system gnu-build-system)
146 ,(string-append "--with-zoneinfo-dir="
147 (assoc-ref %build-inputs "tzdata")
150 (modify-phases %standard-phases
153 (lambda* (#:key inputs #:allow-other-keys)
154 (substitute* "data/check-timezones.sh"
155 (("/usr/share/zoneinfo/zone.tab")
156 (string-append (assoc-ref inputs "tzdata")
157 "/share/zoneinfo/zone.tab")))
160 `(("pkg-config" ,pkg-config)
161 ("intltool" ,intltool)
162 ("glib:bin" ,glib "bin")))
165 ("gdk-pixbuf" ,gdk-pixbuf)
169 ;; both of these are requires.private in mateweather.pc
170 `(("libsoup" ,libsoup)
171 ("libxml2" ,libxml2)))
172 (home-page "http://mate-desktop.org/")
173 (synopsis "MATE library for weather information from the Internet")
175 "This library provides access to weather information from the internet for
176 the MATE desktop environment.")
177 (license license:lgpl2.1+)))
179 (define-public mate-menus
185 (uri (string-append "http://pub.mate-desktop.org/releases/"
186 (version-major+minor version) "/"
187 name "-" version ".tar.xz"))
190 "0crw07iszwsqk54y8znfqdgfz76rjdz8992v4q9kpwwlrl11xmc5"))))
191 (build-system gnu-build-system)
194 (modify-phases %standard-phases
196 'unpack 'fix-introspection-install-dir
197 (lambda* (#:key outputs #:allow-other-keys)
198 (let ((out (assoc-ref outputs "out")))
199 (substitute* '("configure")
200 (("`\\$PKG_CONFIG --variable=girdir gobject-introspection-1.0`")
201 (string-append "\"" out "/share/gir-1.0/\""))
202 (("\\$\\(\\$PKG_CONFIG --variable=typelibdir gobject-introspection-1.0\\)")
203 (string-append out "/lib/girepository-1.0/")))
206 `(("pkg-config" ,pkg-config)
207 ("intltool" ,intltool)
208 ("gobject-introspection" ,gobject-introspection)))
211 ("python" ,python-2)))
212 (home-page "http://mate-desktop.org/")
213 (synopsis "Freedesktop menu specification implementation for MATE")
215 "The package contains an implementation of the freedesktop menu
216 specification, the MATE menu layout configuration files, .directory files and
217 assorted menu related utility programs.")
218 (license (list license:gpl2+ license:lgpl2.0+))))