1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Tomáš Čech <sleep_walker@suse.cz>
3 ;;; Copyright © 2015 Daniel Pimentel <d4n1@member.fsf.org>
4 ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
5 ;;; Copyright © 2017 ng0 <ng0@infotropique.org>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages enlightenment)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu)
27 #:use-module (guix build-system python)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages bash)
30 #:use-module (gnu packages check)
31 #:use-module (gnu packages code)
32 #:use-module (gnu packages compression)
33 #:use-module (gnu packages curl)
34 #:use-module (gnu packages fontutils)
35 #:use-module (gnu packages freedesktop)
36 #:use-module (gnu packages fribidi)
37 #:use-module (gnu packages game-development)
38 #:use-module (gnu packages gettext)
39 #:use-module (gnu packages ghostscript)
40 #:use-module (gnu packages gl)
41 #:use-module (gnu packages glib)
42 #:use-module (gnu packages gnome)
43 #:use-module (gnu packages gstreamer)
44 #:use-module (gnu packages gtk)
45 #:use-module (gnu packages image)
46 #:use-module (gnu packages linux)
47 #:use-module (gnu packages llvm)
48 #:use-module (gnu packages lua)
49 #:use-module (gnu packages pdf)
50 #:use-module (gnu packages photo)
51 #:use-module (gnu packages pkg-config)
52 #:use-module (gnu packages pulseaudio)
53 #:use-module (gnu packages python)
54 #:use-module (gnu packages tls)
55 #:use-module (gnu packages video)
56 #:use-module (gnu packages xdisorg)
57 #:use-module (gnu packages xorg))
66 "https://download.enlightenment.org/rel/libs/efl/efl-"
70 "1h9jkb1pkp2g6ld7ra9mxgblx3x5id4162ja697klx9mfjkpxijn"))))
71 (build-system gnu-build-system)
73 `(("pkg-config" ,pkg-config)))
75 `(("alsa-lib" ,alsa-lib)
76 ("compositeproto" ,compositeproto)
78 ("ghostscript" ,ghostscript)
80 ("gstreamer" ,gstreamer)
81 ("gst-plugins-base" ,gst-plugins-base)
86 ("libspectre" ,libspectre)
91 ("libxcomposite" ,libxcomposite)
92 ("libxcursor" ,libxcursor)
93 ("libxdamage" ,libxdamage)
94 ("libxdmcp" ,libxdmcp)
97 ("libxfixes" ,libxfixes)
98 ("libxinerama" ,libxinerama)
100 ("libxrandr" ,libxrandr)
101 ("libxrender" ,libxrender)
102 ("libxscrnsaver" ,libxscrnsaver)
105 ("openjpeg" ,openjpeg-1)
107 ("printproto" ,printproto)
108 ("scrnsaverproto" ,scrnsaverproto)
109 ("wayland-protocols" ,wayland-protocols)
110 ("xextproto" ,xextproto)
115 ;; All these inputs are in package config files in section
117 `(("bullet" ,bullet) ; ephysics.pc
118 ("dbus" ,dbus) ; eldbus.pc, elementary.pc, elocation.pc, ethumb_client.pc
119 ("eudev" ,eudev) ; eeze.pc
120 ("fontconfig" ,fontconfig) ; evas.pc, evas-cxx.pc
121 ("freetype" ,freetype) ; evas.pc, evas-cxx.pc
122 ("fribidi" ,fribidi) ; evas.pc, evas-cxx.pc
123 ("glib" ,glib) ; ecore.pc, ecore-cxx.pc
124 ("harfbuzz" ,harfbuzz) ; evas.pc, evas-cxx.pc
125 ("luajit" ,luajit) ; elua.pc, evas.pc, evas-cxx.pc
126 ("libinput" ,libinput-minimal) ; elput.pc
127 ("libpng" ,libpng) ; evas.pc, evas-cxx.pc
128 ("libsndfile" ,libsndfile) ; ecore-audio.pc, ecore-audio-cxx.pc
129 ("libxkbcommon" ,libxkbcommon) ; ecore-wl2.pc, elementary.pc, elput.pc
130 ("mesa" ,mesa) ; ecore-drm2.pc
131 ("openssl" ,openssl) ; ecore-con.pc, eet.pc, eet-cxx.pc, emile.pc
132 ("pulseaudio" ,pulseaudio) ; ecore-audio.pc, ecore-audio-cxx.pc
133 ("util-linux" ,util-linux) ; mount: eeze.pc
134 ("wayland" ,wayland) ; ecore-wl2.pc, elementary.pc
135 ("zlib" ,zlib))) ; eet.pc, eet-cxx.pc, emile.pc
137 `(#:configure-flags '("--disable-silent-rules"
141 "--enable-image-loader-webp"
142 "--enable-multisense"
151 (modify-phases %standard-phases
152 ;; If we don't hardcode the location of libcurl.so then we
153 ;; have to wrap the outputs of efl's dependencies in curl.
154 (add-after 'unpack 'hardcode-libcurl-location
155 (lambda* (#:key inputs #:allow-other-keys)
156 (let* ((curl (assoc-ref inputs "curl"))
157 (lib (string-append curl "/lib/")))
158 (substitute* "src/lib/ecore_con/ecore_con_url_curl.c"
159 (("libcurl.so.?" libcurl) ; libcurl.so.[45]
160 (string-append lib libcurl)))
162 (add-after 'unpack 'set-home-directory
163 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
164 (lambda _ (setenv "HOME" "/tmp") #t)))))
165 (home-page "https://www.enlightenment.org/about-efl")
166 (synopsis "Enlightenment Foundation Libraries")
168 "Enlightenment Foundation Libraries is a set of libraries developed
169 for Enlightenment. Libraries covers data serialization, wide support for
170 graphics rendering, UI layout and themes, interaction with OS, access to
171 removable devices or support for multimedia.")
172 ;; Different parts are under different licenses.
173 (license (list license:bsd-2 license:lgpl2.1 license:zlib))))
175 (define-public terminology
182 (string-append "https://download.enlightenment.org/rel/apps/"
183 "terminology/terminology-" version ".tar.xz"))
186 "05ncxvzb9rzkyjvd95hzn8lswqdwr8cix6rd54nqn9559jibh4ns"))
187 (modules '((guix build utils)))
188 ;; Remove the bundled fonts.
189 ;; TODO: Remove bundled lz4.
192 (delete-file-recursively "data/fonts")
193 (substitute* '("data/Makefile.in" "data/Makefile.am")
195 (substitute* "configure"
196 (("data/fonts/Makefile") "")
197 (("\\\"data/fonts/Makefile") "# \"data/fonts/Makefile"))
198 (substitute* '("data/themes/Makefile.in"
199 "data/themes/Makefile.am"
200 "data/themes/nyanology/Makefile.in"
201 "data/themes/nyanology/Makefile.am")
202 (("-fd \\$\\(top_srcdir\\)/data/fonts") ""))))))
203 (build-system gnu-build-system)
206 (modify-phases %standard-phases
207 (add-after 'unpack 'set-home-directory
208 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
209 (lambda _ (setenv "HOME" "/tmp") #t)))))
211 `(("gettext" ,gettext-minimal)
212 ("pkg-config" ,pkg-config)))
215 (home-page "https://www.enlightenment.org/about-terminology")
216 (synopsis "Powerful terminal emulator based on EFL")
218 "Terminology is fast and feature rich terminal emulator. It is solely
219 based on Enlightenment Foundation Libraries. It supports multiple tabs, UTF-8,
220 URL and local path detection, themes, popup based content viewer for non-text
222 (license license:bsd-2)))
232 "https://download.enlightenment.org/rel/apps/rage/rage-"
236 "06kbgcnbhl9clhdl7k983m4d0n6ggsl4qvizzi1nrp8c7np87fix"))))
237 (build-system gnu-build-system)
240 (modify-phases %standard-phases
241 (add-after 'unpack 'set-home-directory
242 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
243 (lambda _ (setenv "HOME" "/tmp") #t)))))
245 `(("pkg-config" ,pkg-config)))
248 (home-page "https://www.enlightenment.org/about-rage")
249 (synopsis "Video and audio player based on EFL")
251 "Rage is a video and audio player written with Enlightenment Foundation
252 Libraries with some extra bells and whistles.")
253 (license license:bsd-2)))
255 (define-public enlightenment
257 (name "enlightenment")
262 (string-append "https://download.enlightenment.org/rel/apps/"
263 name "/" name "-" version ".tar.xz"))
266 "1q57fz57d0b26z06m1wiq7c1sniwh885b0vs02mk4jgwva46nyr0"))))
267 (build-system gnu-build-system)
269 `(#:configure-flags '("--enable-mount-eeze")
271 (modify-phases %standard-phases
272 (add-before 'configure 'set-system-actions
273 (lambda* (#:key inputs #:allow-other-keys)
274 (let ((xkeyboard (assoc-ref inputs "xkeyboard-config"))
275 (utils (assoc-ref inputs "util-linux")))
276 ;; We need to patch the path to 'base.lst' to be able
277 ;; to switch the keyboard layout in E.
278 (substitute* "src/modules/xkbswitch/e_mod_parse.c"
279 (("/usr/share/X11/xkb/rules/xorg.lst")
280 (string-append xkeyboard
281 "/share/X11/xkb/rules/base.lst")))
282 (substitute* "configure"
283 (("/bin/mount") (string-append utils "/bin/mount"))
284 (("/bin/umount") (string-append utils "/bin/umount"))
285 (("/usr/bin/eject") (string-append utils "/bin/eject"))
286 ; TODO: Replace suspend and hibernate also.
287 (("/sbin/shutdown -h now") "/run/current-system/profile/sbin/halt")
288 (("/sbin/shutdown -r now") "/run/current-system/profile/sbin/reboot"))
291 `(("gettext" ,gettext-minimal)
292 ("pkg-config" ,pkg-config)
293 ("util-linux" ,util-linux)))
295 `(("alsa-lib" ,alsa-lib)
298 ("freetype" ,freetype)
301 ("linux-pam" ,linux-pam)
302 ("xcb-util-keysyms" ,xcb-util-keysyms)
303 ("xkeyboard-config" ,xkeyboard-config)))
304 (home-page "https://www.enlightenment.org/about-enlightenment")
305 (synopsis "Lightweight desktop environment")
307 "Enlightenment is resource friendly desktop environment with integrated
308 file manager, wide range of configuration options, plugin system allowing to
309 unload unused functionality, with support for touchscreen and suitable for
311 (license license:bsd-2)))
313 (define-public python-efl
321 (pypi-uri "python-efl" version)
322 (string-append "http://download.enlightenment.org/rel/bindings/"
323 "python/python-efl-" version ".tar.gz")))
326 "1680pgpf501nhbc9arm0nfj6rpcw17aryh0pgmmmszxlgpifpdzy"))))
327 (build-system python-build-system)
330 (modify-phases %standard-phases
334 (system* "env" "ENABLE_CYTHON=1" "python" "setup.py" "build"))))
335 (add-before 'build 'set-flags
338 (string-append "-I" (assoc-ref %build-inputs "python-dbus")
339 "/include/dbus-1.0"))
341 (add-before 'check 'set-environment
343 ;; Some tests require write access to HOME.
344 (setenv "HOME" "/tmp")
347 `(("pkg-config" ,pkg-config)
348 ("python-cython" ,python-cython)))
351 ("python-dbus" ,python-dbus)))
352 (home-page "https://www.enlightenment.org/")
353 (synopsis "Python bindings for EFL")
355 "PYTHON-EFL are the python bindings for the whole Enlightenment Foundation
356 Libraries stack (eo, evas, ecore, edje, emotion, ethumb and elementary).")
357 (license license:lgpl3)))
359 (define-public python2-efl
360 (package-with-python2 python-efl))
369 (uri (string-append "https://github.com/ajwillia-ms/edi/releases/"
370 "download/v" version "/edi-" version ".tar.bz2"))
373 "0k0ymi9ilhkypqb9pniv365kh3jgbl2g2k0ylvsmisn2jhbqk49a"))))
374 (build-system gnu-build-system)
377 (modify-phases %standard-phases
378 (add-after 'unpack 'set-home-directory
379 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
380 (lambda _ (setenv "HOME" "/tmp") #t)))
381 #:configure-flags '("--with-tests=coverage")))
385 ("pkg-config" ,pkg-config)))
389 (home-page "https://www.enlightenment.org/about-edi")
390 (synopsis "Development environment for Enlightenment")
391 (description "EDI is a development environment designed for and built using
392 the EFL. It's aim is to create a new, native development environment for Linux
393 that tries to lower the barrier to getting involved in Enlightenment development
394 and in creating applications based on the Enlightenment Foundation Library suite.")
395 (license (list license:public-domain ; data/extra/skeleton
396 license:gpl2)))) ; edi
404 (uri (pypi-uri "Lekha" version))
407 "0zr6i74ik58pbzrd7r9l7sawqbdv0r2c1a9927qkqzwga27x8j15"))))
408 (build-system python-build-system)
410 `(#:tests? #f ; no test target
413 (modify-phases %standard-phases
414 (add-after 'unpack 'fix-data-location
415 (lambda _ (substitute* "setup.py"
419 `(("python2-efl" ,python2-efl)
420 ("python2-pypdf2" ,python2-pypdf2)
421 ("python2-pyxdg" ,python2-pyxdg)))
422 (synopsis "Simple PDF viewer")
424 "Simple PDF viewer based on the Enlightenment Foundation Libraries.")
425 (home-page "https://github.com/kaihu/lekha")
426 (license license:gpl3+)))