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@no-reply.pragmatique.xyz>
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 "148i8awjdrqzd0xqfc6q4qvhhs46jl15nx7n2nii7lrwzx502wqj"))))
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 (add-after 'unpack 'set-home-directory
153 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
154 (lambda _ (setenv "HOME" "/tmp") #t)))))
155 (home-page "https://www.enlightenment.org/about-efl")
156 (synopsis "Enlightenment Foundation Libraries")
158 "Enlightenment Foundation Libraries is a set of libraries developed
159 for Enlightenment. Libraries covers data serialization, wide support for
160 graphics rendering, UI layout and themes, interaction with OS, access to
161 removable devices or support for multimedia.")
162 ;; Different parts are under different licenses.
163 (license (list license:bsd-2 license:lgpl2.1 license:zlib))))
165 (define-public terminology
172 (string-append "https://download.enlightenment.org/rel/apps/"
173 "terminology/terminology-" version ".tar.xz"))
176 "13rl1k22yf8qrpzdm5nh6ij641fibadr2ww1r7rnz7mbhzj3d4gb"))
177 (modules '((guix build utils)))
178 ;; Remove the bundled fonts.
179 ;; TODO: Remove bundled lz4.
182 (delete-file-recursively "data/fonts")
183 (substitute* '("data/Makefile.in" "data/Makefile.am")
185 (substitute* "configure"
186 (("data/fonts/Makefile") "")
187 (("\\\"data/fonts/Makefile") "# \"data/fonts/Makefile"))
188 (substitute* '("data/themes/Makefile.in"
189 "data/themes/Makefile.am"
190 "data/themes/nyanology/Makefile.in"
191 "data/themes/nyanology/Makefile.am")
192 (("-fd \\$\\(top_srcdir\\)/data/fonts") ""))))))
193 (build-system gnu-build-system)
196 (modify-phases %standard-phases
197 (add-after 'unpack 'set-home-directory
198 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
199 (lambda _ (setenv "HOME" "/tmp") #t)))))
201 `(("gettext" ,gettext-minimal)
202 ("pkg-config" ,pkg-config)))
205 (home-page "https://www.enlightenment.org/about-terminology")
206 (synopsis "Powerful terminal emulator based on EFL")
208 "Terminology is fast and feature rich terminal emulator. It is solely
209 based on Enlightenment Foundation Libraries. It supports multiple tabs, UTF-8,
210 URL and local path detection, themes, popup based content viewer for non-text
212 (license license:bsd-2)))
222 "https://download.enlightenment.org/rel/apps/rage/rage-"
226 "06kbgcnbhl9clhdl7k983m4d0n6ggsl4qvizzi1nrp8c7np87fix"))))
227 (build-system gnu-build-system)
230 (modify-phases %standard-phases
231 (add-after 'unpack 'set-home-directory
232 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
233 (lambda _ (setenv "HOME" "/tmp") #t)))))
235 `(("pkg-config" ,pkg-config)))
238 (home-page "https://www.enlightenment.org/about-rage")
239 (synopsis "Video and audio player based on EFL")
241 "Rage is a video and audio player written with Enlightenment Foundation
242 Libraries with some extra bells and whistles.")
243 (license license:bsd-2)))
245 (define-public enlightenment
247 (name "enlightenment")
252 (string-append "https://download.enlightenment.org/rel/apps/"
253 name "/" name "-" version ".tar.xz"))
256 "0w5f3707hyfc20i6xqh4jlr5p2yhy1z794061mjsz2rp4w00qmpb"))))
257 (build-system gnu-build-system)
259 `(#:configure-flags '("--enable-mount-eeze")
261 (modify-phases %standard-phases
262 (add-before 'configure 'set-system-actions
263 (lambda* (#:key inputs #:allow-other-keys)
264 (let ((xkeyboard (assoc-ref inputs "xkeyboard-config"))
265 (utils (assoc-ref inputs "util-linux")))
266 ;; We need to patch the path to 'base.lst' to be able
267 ;; to switch the keyboard layout in E.
268 (substitute* "src/modules/xkbswitch/e_mod_parse.c"
269 (("/usr/share/X11/xkb/rules/xorg.lst")
270 (string-append xkeyboard
271 "/share/X11/xkb/rules/base.lst")))
272 (substitute* "configure"
273 (("/bin/mount") (string-append utils "/bin/mount"))
274 (("/bin/umount") (string-append utils "/bin/umount"))
275 (("/usr/bin/eject") (string-append utils "/bin/eject"))
276 ; TODO: Replace suspend and hibernate also.
277 (("/sbin/shutdown -h now") "/run/current-system/profile/sbin/halt")
278 (("/sbin/shutdown -r now") "/run/current-system/profile/sbin/reboot"))
281 `(("gettext" ,gettext-minimal)
282 ("pkg-config" ,pkg-config)
283 ("util-linux" ,util-linux)))
285 `(("alsa-lib" ,alsa-lib)
288 ("freetype" ,freetype)
291 ("linux-pam" ,linux-pam)
292 ("xcb-util-keysyms" ,xcb-util-keysyms)
293 ("xkeyboard-config" ,xkeyboard-config)))
294 (home-page "https://www.enlightenment.org/about-enlightenment")
295 (synopsis "Lightweight desktop environment")
297 "Enlightenment is resource friendly desktop environment with integrated
298 file manager, wide range of configuration options, plugin system allowing to
299 unload unused functionality, with support for touchscreen and suitable for
301 (license license:bsd-2)))
303 (define-public python-efl
311 (pypi-uri "python-efl" version)
312 (string-append "http://download.enlightenment.org/rel/bindings/"
313 "python/python-efl-" version ".tar.gz")))
316 "1680pgpf501nhbc9arm0nfj6rpcw17aryh0pgmmmszxlgpifpdzy"))))
317 (build-system python-build-system)
320 (modify-phases %standard-phases
324 (system* "env" "ENABLE_CYTHON=1" "python" "setup.py" "build"))))
325 (add-before 'build 'set-flags
328 (string-append "-I" (assoc-ref %build-inputs "python-dbus")
329 "/include/dbus-1.0"))
331 (add-before 'check 'set-environment
333 ;; Some tests require write access to HOME.
334 (setenv "HOME" "/tmp")
337 `(("pkg-config" ,pkg-config)
338 ("python-cython" ,python-cython)))
341 ("python-dbus" ,python-dbus)))
342 (home-page "https://www.enlightenment.org/")
343 (synopsis "Python bindings for EFL")
345 "PYTHON-EFL are the python bindings for the whole Enlightenment Foundation
346 Libraries stack (eo, evas, ecore, edje, emotion, ethumb and elementary).")
347 (license license:lgpl3)))
349 (define-public python2-efl
350 (package-with-python2 python-efl))
359 (uri (string-append "https://github.com/ajwillia-ms/edi/releases/"
360 "download/v" version "/edi-" version ".tar.bz2"))
363 "0k0ymi9ilhkypqb9pniv365kh3jgbl2g2k0ylvsmisn2jhbqk49a"))))
364 (build-system gnu-build-system)
367 (modify-phases %standard-phases
368 (add-after 'unpack 'set-home-directory
369 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
370 (lambda _ (setenv "HOME" "/tmp") #t)))
371 #:configure-flags '("--with-tests=coverage")))
375 ("pkg-config" ,pkg-config)))
379 (home-page "https://www.enlightenment.org/about-edi")
380 (synopsis "Development environment for Enlightenment")
381 (description "EDI is a development environment designed for and built using
382 the EFL. It's aim is to create a new, native development environment for Linux
383 that tries to lower the barrier to getting involved in Enlightenment development
384 and in creating applications based on the Enlightenment Foundation Library suite.")
385 (license (list license:public-domain ; data/extra/skeleton
386 license:gpl2)))) ; edi
394 (uri (pypi-uri "Lekha" version))
397 "0zr6i74ik58pbzrd7r9l7sawqbdv0r2c1a9927qkqzwga27x8j15"))))
398 (build-system python-build-system)
400 `(#:tests? #f ; no test target
403 (modify-phases %standard-phases
404 (add-after 'unpack 'fix-data-location
405 (lambda _ (substitute* "setup.py"
409 `(("python2-efl" ,python2-efl)
410 ("python2-pypdf2" ,python2-pypdf2)
411 ("python2-pyxdg" ,python2-pyxdg)))
412 (synopsis "Simple PDF viewer")
414 "Simple PDF viewer based on the Enlightenment Foundation Libraries.")
415 (home-page "https://github.com/kaihu/lekha")
416 (license license:gpl3+)))