From 47dcef324f50394d9067f63f664ec61990898f28 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 25 Aug 2014 13:47:56 +0200 Subject: [PATCH] packaging: manage efl vars in /etc/profile Change-Id: Ie6aa19a1d7accab45a88723f053a654e3eff37ae Signed-off-by: Philippe Coval --- packaging/efl.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packaging/efl.spec b/packaging/efl.spec index a2290b2..78aee52 100644 --- a/packaging/efl.spec +++ b/packaging/efl.spec @@ -572,8 +572,15 @@ rm -rf %{buildroot}%{_libdir}/ecore/system/upower %if %{with wayland} f="/etc/profile.d/ecore.sh" -grep EFL_WAYLAND_USE_XDG_SHELL "$f" 2>/dev/null \ +grep --silent EFL_WAYLAND_USE_XDG_SHELL "$f" \ || printf "\nEFL_WAYLAND_USE_XDG_SHELL='defined'\nexport EFL_WAYLAND_USE_XDG_SHELL\n" >> "$f" + +grep --silent ECORE_EVAS_ENGINE "$f" \ + || printf "\nECORE_EVAS_ENGINE=wayland_shm\n[ ! -d /dev/dri ] || ECORE_EVAS_ENGINE=wayland_egl\nexport ECORE_EVAS_ENGINE" >> "$f" + +grep --silent ECORE_IMF_MODULE "$f" \ + || printf "\nECORE_IMF_MODULE=wayland\nexport ECORE_IMF_MODULE\n" >> "$f" + %endif %postun -n ecore -p /sbin/ldconfig -- 2.7.4