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 Efraim Flashner <efraim@flashner.co.il>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages enlightenment)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (guix build-system python)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages bash)
29 #:use-module (gnu packages compression)
30 #:use-module (gnu packages curl)
31 #:use-module (gnu packages fontutils)
32 #:use-module (gnu packages fribidi)
33 #:use-module (gnu packages game-development)
34 #:use-module (gnu packages gettext)
35 #:use-module (gnu packages ghostscript)
36 #:use-module (gnu packages gl)
37 #:use-module (gnu packages glib)
38 #:use-module (gnu packages gnome)
39 #:use-module (gnu packages gstreamer)
40 #:use-module (gnu packages gtk)
41 #:use-module (gnu packages image)
42 #:use-module (gnu packages linux)
43 #:use-module (gnu packages lua)
44 #:use-module (gnu packages pdf)
45 #:use-module (gnu packages photo)
46 #:use-module (gnu packages pkg-config)
47 #:use-module (gnu packages pulseaudio)
48 #:use-module (gnu packages python)
49 #:use-module (gnu packages tls)
50 #:use-module (gnu packages video)
51 #:use-module (gnu packages xorg))
60 "https://download.enlightenment.org/rel/libs/efl/efl-"
64 "17mzbjmz8d2vs8p63r1sk3mppl3l2fhxy2jv24dp75lgqbsvp806"))))
65 (build-system gnu-build-system)
67 `(("pkg-config" ,pkg-config)))
69 `(("alsa-lib" ,alsa-lib)
70 ("compositeproto" ,compositeproto)
72 ("ghostscript" ,ghostscript)
74 ("gstreamer" ,gstreamer)
75 ("gst-plugins-base" ,gst-plugins-base)
80 ("libspectre" ,libspectre)
83 ("libxcomposite" ,libxcomposite)
84 ("libxcursor" ,libxcursor)
85 ("libxdmcp" ,libxdmcp)
88 ("libxkbfile" ,libxkbfile)
89 ("libxinerama" ,libxinerama)
91 ("libxrandr" ,libxrandr)
92 ("libxscrnsaver" ,libxscrnsaver)
96 ("openjpeg" ,openjpeg-1)
98 ("printproto" ,printproto)
99 ("scrnsaverproto" ,scrnsaverproto)
100 ("xextproto" ,xextproto)
105 ;; All these inputs are in package config files in section
107 `(("bullet" ,bullet) ; ephysics.pc
108 ("dbus" ,dbus) ; eldbus.pc, elementary.pc, elocation.pc, ethumb_client.pc
109 ("eudev" ,eudev) ; eeze.pc
110 ("fontconfig" ,fontconfig) ; evas.pc, evas-cxx.pc
111 ("freetype" ,freetype) ; evas.pc, evas-cxx.pc
112 ("fribidi" ,fribidi) ; evas.pc, evas-cxx.pc
113 ("glib" ,glib) ; ecore.pc, ecore-cxx.pc
114 ("harfbuzz" ,harfbuzz) ; evas.pc, evas-cxx.pc
115 ("luajit" ,luajit) ; elua.pc, evas.pc, evas-cxx.pc
116 ("libpng" ,libpng) ; evas.pc, evas-cxx.pc
117 ("libsndfile" ,libsndfile) ; ecore-audio.pc, ecore-audio-cxx.pc
118 ("openssl" ,openssl) ; ecore-con.pc, eet.pc, eet-cxx.pc, emile.pc
119 ("pulseaudio" ,pulseaudio) ; ecore-audio.pc, ecore-audio-cxx.pc
120 ("util-linux" ,util-linux) ; eeze.pc
121 ("zlib" ,zlib))) ; eet.pc, eet-cxx.pc, emile.pc
123 `(#:configure-flags '("--disable-silent-rules"
127 (modify-phases %standard-phases
128 ;; ecore_audio cannot find pulseaudio or libsndfile when compiled.
129 ;; Starting in version 1.18.0, these two libraries are dlopened so
130 ;; we hardcode their locations as a temporary workaround.
131 (add-after 'configure 'hardlink-dlopen-files
133 (substitute* "src/lib/ecore_audio/ecore_audio.c"
135 (string-append (assoc-ref %build-inputs "pulseaudio")
136 "/lib/libpulse.so.0")))
137 (substitute* "src/lib/ecore_audio/ecore_audio.c"
139 (string-append (assoc-ref %build-inputs "libsndfile")
140 "/lib/libsndfile.so.1")))
142 (home-page "https://www.enlightenment.org")
143 (synopsis "Enlightenment Foundation Libraries")
145 "Enlightenment Foundation Libraries is a set of libraries developed
146 for Enlightenment. Libraries covers data serialization, wide support for
147 graphics rendering, UI layout and themes, interaction with OS, access to
148 removable devices or support for multimedia.")
149 ;; Different parts are under different licenses.
150 (license (list license:bsd-2 license:lgpl2.1 license:zlib))))
152 (define-public elementary
159 (string-append "https://download.enlightenment.org/rel/libs/"
160 "elementary/elementary-" version ".tar.xz"))
163 "149xjq4z71l44w1kd8zks9b2g0wjc9656w46hzd27b58afj1dqc5"))))
164 (build-system gnu-build-system)
166 `(("pkg-config" ,pkg-config)))
168 `(("efl" ,efl))) ; elementary.pc, elementary-cxx.pc
169 (home-page "https://www.enlightenment.org")
170 (synopsis "Widget library of Enlightenment world")
172 "Elementary is a widget library/toolkit, part of the Enlightenment
173 Foundation Libraries. It is build upon Edje and Evas libraries and uses
174 full capabilities of EFL.")
175 (license license:lgpl2.1)))
177 (define-public evas-generic-loaders
179 (name "evas-generic-loaders")
185 "https://download.enlightenment.org/rel/libs/"
186 "evas_generic_loaders/evas_generic_loaders-"
190 "0ynq1nx0bfgg19p4vki1fap36yyip53zaxpzncx2slr6jcx1kxf2"))))
191 (build-system gnu-build-system)
193 `(("pkg-config" ,pkg-config)))
196 ("gstreamer" ,gstreamer)
197 ("gst-plugins-base" ,gst-plugins-base)
199 ("libspectre" ,libspectre)
200 ("poppler" ,poppler)))
201 (home-page "https://www.enlightenment.org")
202 (synopsis "Plugins for integration of various file types into Evas")
204 "Evas-generic-loaders is a collection of interfaces to outside libraries
205 and applications allowing to natively open pictures, documents and media
206 files in Evas (EFL canvas library).")
207 (license license:gpl2+)))
209 (define-public emotion-generic-players
211 (name "emotion-generic-players")
216 (string-append "https://download.enlightenment.org/rel/libs/"
217 "emotion_generic_players/emotion_generic_players"
218 "-" version ".tar.xz"))
221 "03kaql95mk0c5j50v3c5i5lmlr3gz7xlh8p8q87xz8zf9j5h1pp7"))))
222 (build-system gnu-build-system)
224 `(("pkg-config" ,pkg-config)))
228 (home-page "https://www.enlightenment.org")
229 (synopsis "Plugins for integrating media players in EFL based applications")
231 "Emotion-generic-players is a collection of interfaces to outside libraries
232 and applications allowing to natively play video files through Emotion.
233 The only supported now is VLC.")
234 (license license:bsd-2)))
236 (define-public terminology
243 (string-append "https://download.enlightenment.org/rel/apps/"
244 "terminology/terminology-" version ".tar.xz"))
247 "1kwv9vkhngdm5v38q93xpcykghnyawhjjcb5bgy0p89gpbk7mvpc"))))
248 (build-system gnu-build-system)
250 `(("pkg-config" ,pkg-config)))
253 (home-page "https://www.enlightenment.org")
254 (synopsis "Powerful terminal emulator based on EFL")
256 "Terminology is fast and feature rich terminal emulator. It is solely
257 based on Enlightenment Foundation Libraries. It supports multiple tabs, UTF-8,
258 URL and local path detection, themes, popup based content viewer for non-text
260 (license license:bsd-2)))
270 "https://download.enlightenment.org/rel/apps/rage/rage-"
274 "06kbgcnbhl9clhdl7k983m4d0n6ggsl4qvizzi1nrp8c7np87fix"))))
275 (build-system gnu-build-system)
277 `(("pkg-config" ,pkg-config)))
280 (home-page "https://www.enlightenment.org/about-rage")
281 (synopsis "Video and audio player based on EFL")
283 "Rage is a video and audio player written with Enlightenment Foundation
284 Libraries with some extra bells and whistles.")
285 (license license:bsd-2)))
287 (define-public enlightenment
289 (name "enlightenment")
294 (string-append "https://download.enlightenment.org/rel/apps/"
295 name "/" name "-" version ".tar.xz"))
298 "0fi5dxrprnvhnn2y51gnfpsjj44snriqi20k20a73vhaqxfn8xx8"))))
299 (build-system gnu-build-system)
301 `(#:configure-flags '("--enable-mount-eeze")))
303 `(("gettext" ,gnu-gettext)
304 ("pkg-config" ,pkg-config)))
306 `(("alsa-lib" ,alsa-lib)
309 ("freetype" ,freetype)
312 ("linux-pam" ,linux-pam)
313 ("xcb-util-keysyms" ,xcb-util-keysyms)))
314 (home-page "https://www.enlightenment.org")
315 (synopsis "Lightweight desktop environment")
317 "Enlightenment is resource friendly desktop environment with integrated
318 file manager, wide range of configuration options, plugin system allowing to
319 unload unused functionality, with support for touchscreen and suitable for
321 (license license:bsd-2)))
323 (define-public python-efl
330 (uri (pypi-uri "python-efl" version))
333 "0x49rb7mx7ysjp23m919r2rx8qnl4xackhl9s9x2697m7cs77n1r"))))
334 (build-system python-build-system)
337 (modify-phases %standard-phases
341 (system* "env" "ENABLE_CYTHON=1" "python" "setup.py" "build"))))
342 (add-before 'build 'set-flags
345 (string-append "-I" (assoc-ref %build-inputs "python-dbus")
346 "/include/dbus-1.0")))))))
348 `(("pkg-config" ,pkg-config)
349 ("python-cython" ,python-cython)))
352 ("python-dbus" ,python-dbus)))
353 (home-page "https://www.enlightenment.org/")
354 (synopsis "Python bindings for EFL")
356 "PYTHON-EFL are the python bindings for the whole Enlightenment Foundation
357 Libraries stack (eo, evas, ecore, edje, emotion, ethumb and elementary).")
358 (license license:lgpl3)))
360 (define-public python2-efl
361 (package-with-python2 python-efl))