diff options
Diffstat (limited to 'dev-libs/efl')
-rw-r--r-- | dev-libs/efl/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/efl/efl-1.26.1-r1.ebuild | 310 | ||||
-rw-r--r-- | dev-libs/efl/metadata.xml | 1 |
3 files changed, 314 insertions, 1 deletions
diff --git a/dev-libs/efl/Manifest b/dev-libs/efl/Manifest index 6890d8bc6b91..9ca1153cabf1 100644 --- a/dev-libs/efl/Manifest +++ b/dev-libs/efl/Manifest @@ -1,4 +1,6 @@ AUX efl-1.25.1-libavif-fix.patch 2477 BLAKE2B 36ad24c7ba88a34e4da0d69cfda74b3a7a890dc639d966403511373a182cf908229a15e6c3302c3635a8ac134399a71823d2dc65320f4304078c674da7978911 SHA512 7293fbccc394f09887398940996d44f59170fc556662f095bdcead752be84b7583411af8303e462703272b00523a8e14407d14c4f0e1589ba395b592b7c29f01 DIST efl-1.25.1.tar.xz 72306872 BLAKE2B 060d729380ba62677307c5346da1786e879c14c4e40f0a3288c8cb81ece08f4ac501d989495b1c3dcbfeb19a86d23130892ae874861de5684c867aef60cb07d6 SHA512 cd281c2299aa6f74f0204e59a13dc254135e6dc40641e0a437c6f5025efe517d415f0915f69e123123319a9bbddb748aec1948ed0b5eb386e028cf45b244bed8 +DIST efl-1.26.1.tar.xz 168538588 BLAKE2B 2274b8939635d472560a7131651586e6ab5dfc71094f15fad0a30711ae2fdf40098ce6cd70a9b664c9f16c6b6880f51de96372dcc6d251bcad8c069429c3bfcb SHA512 50fd972315d10997a077e403e3484a6637a66217a66865216a3e47d214cfe7647876fade087da8d9ee5104ca99ce11db27ba6279564b1076f3353f3f9c702cb1 EBUILD efl-1.25.1-r13.ebuild 8244 BLAKE2B 33ed2bf2ffc2954ff3d485c0da4580b41c8df9847b4dd95ec886f491324239de06f97b6d123b2c38d33be28031d073721b90667be88ce3bc8de8ac32b2790867 SHA512 de0a9aea7d4e66c4b4fc11f2b0951b2f3296e9b84cb4bf0df5d6c5a723b21e325b8fc5d6258b76e4504b7759208bf8e52907b51113d86b3304f8d0938a90edaf -MISC metadata.xml 1889 BLAKE2B 00d61cd4f80a59696ca2a0b2547d5ac39f93312e35271b6f94ce7aed168d3aa042a05378b1bb2d3874dcab9c166ed5ae53a1c955fadc6b588dc40deec07ccdab SHA512 b852affad80c80834e80da06d33e3c3e42aba404cb5b628bee06f23977d3956225bf38e9897e24d31325cc10efebcd448d4c50ad9d4e8a154e23400a545e2e9f +EBUILD efl-1.26.1-r1.ebuild 8229 BLAKE2B 463e8595c5e09e32383f017a85eccfa1e76daef69c982b91dcb044e6be006568a1e555a2bb9293d15cb1973e0e67d045eae5feebb22ea2664e5e8dcccc9cff4a SHA512 f08bcf284fc99ea70a0e0606da15ec7eb0c6077ebadb5e209ccc43d6c1322bd74ea240d19e3b13e876f2f3c74a1481419eea70a754c10bba6458e60737a76092 +MISC metadata.xml 1943 BLAKE2B 192127f421b9e9216ac8b9b2b161dd99bff9ae0286e1051bd541e4102046ebd23d835d2a0745d5ec82e9ce2b56e37569b2b3e0532f7d2daa485c17eda17bebd8 SHA512 c7a8d0dcfddfa4e1b2f0fce817e9daf3f07c014eeeeb3a7cf4d43df89b35aab24872e5fad1dcf3bf00213dbbb309436a49e005d8ce94095b1810067e5b68b250 diff --git a/dev-libs/efl/efl-1.26.1-r1.ebuild b/dev-libs/efl/efl-1.26.1-r1.ebuild new file mode 100644 index 000000000000..8528716bda38 --- /dev/null +++ b/dev-libs/efl/efl-1.26.1-r1.ebuild @@ -0,0 +1,310 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DOCS_BUILDER="doxygen" +DOCS_DEPEND="dev-texlive/texlive-fontutils" +DOCS_DIR="${S}/doc" + +LUA_REQ_USE="deprecated(+)" +LUA_COMPAT=( lua5-{1,2} luajit ) + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit docs lua-single meson python-any-r1 xdg + +DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" +HOMEPAGE="https://www.enlightenment.org" +SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${P}.tar.xz" + +LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="+X avif bmp connman cpu_flags_arm_neon dds debug drm +eet efl-one elogind examples fbcon + +fontconfig fribidi gif gnutls glib +gstreamer harfbuzz heif hyphen ibus ico + jpeg2k json nls mono opengl +pdf physics pmaps postscript psd pulseaudio raw scim + sdl +sound +svg +system-lz4 systemd tga tgv tiff tslib unwind v4l vnc wayland webp xcf + xim xpm xpresent zeroconf" + +REQUIRED_USE="${LUA_REQUIRED_USE} + ?? ( elogind systemd ) + ?? ( fbcon tslib ) + drm? ( wayland ) + examples? ( eet svg ) + ibus? ( glib ) + opengl? ( X ) + pulseaudio? ( sound ) + xim? ( X ) + xpresent? ( X )" + +# Requires everything to be enabled unconditionally. +RESTRICT="test" + +RDEPEND="${LUA_DEPS} + !x11-themes/e-flat-theme + dev-libs/libinput:= + net-misc/curl + media-libs/giflib:= + media-libs/libpng:0= + sys-apps/dbus + sys-libs/zlib + virtual/jpeg + X? ( + !opengl? ( media-libs/mesa[egl(+),gles2] ) + media-libs/freetype + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libxkbcommon + wayland? ( x11-libs/libxkbcommon[X] ) + ) + avif? ( media-libs/libavif:= ) + connman? ( net-misc/connman ) + drm? ( + dev-libs/libinput:= + dev-libs/wayland + media-libs/mesa[gbm(+)] + x11-libs/libdrm + x11-libs/libxkbcommon + ) + elogind? ( + sys-auth/elogind + virtual/libudev:= + ) + fontconfig? ( media-libs/fontconfig ) + fribidi? ( dev-libs/fribidi ) + glib? ( dev-libs/glib:2 ) + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( dev-libs/openssl:0= ) + gstreamer? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + ) + harfbuzz? ( media-libs/harfbuzz:= ) + heif? ( media-libs/libheif:= ) + hyphen? ( dev-libs/hyphen ) + ibus? ( app-i18n/ibus ) + jpeg2k? ( media-libs/openjpeg:= ) + json? ( >=media-libs/rlottie-0.0.1_pre20200424:= ) + mono? ( dev-lang/mono ) + opengl? ( virtual/opengl ) + pdf? ( app-text/poppler:=[cxx] ) + physics? ( sci-physics/bullet:= ) + postscript? ( app-text/libspectre ) + pulseaudio? ( media-sound/pulseaudio ) + raw? ( media-libs/libraw:= ) + scim? ( app-i18n/scim ) + sdl? ( media-libs/libsdl2 ) + sound? ( media-libs/libsndfile ) + svg? ( gnome-base/librsvg:2 ) + system-lz4? ( app-arch/lz4:= ) + systemd? ( sys-apps/systemd:= ) + tiff? ( media-libs/tiff ) + tslib? ( x11-libs/tslib:= ) + unwind? ( sys-libs/libunwind:= ) + v4l? ( media-libs/libv4l ) + vnc? ( net-libs/libvncserver ) + wayland? ( + dev-libs/wayland + media-libs/mesa[gles2,wayland] + x11-libs/libxkbcommon + ) + webp? ( media-libs/libwebp:= ) + xpm? ( x11-libs/libXpm ) + xpresent? ( x11-libs/libXpresent ) + zeroconf? ( net-dns/avahi )" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS} + virtual/pkgconfig + nls? ( sys-devel/gettext ) + wayland? ( dev-util/wayland-scanner )" + +pkg_setup() { + # Deprecated, provided for backward-compatibility. Everything is moved to libefreet.so. + QA_FLAGS_IGNORED="/usr/$(get_libdir)/libefreet_trash.so.${PV} + /usr/$(get_libdir)/libefreet_mime.so.${PV}" + + python-any-r1_pkg_setup +} + +src_prepare() { + default + + # Remove automagic unwind configure option, #743154 + if ! use unwind; then + sed -i "/config_h.set('HAVE_UNWIND/,/eina_ext_deps += unwind/d" src/lib/eina/meson.build || + die "Failed to remove libunwind dep" + fi + + # Fixup Doxyfile + pushd "${DOCS_DIR}" || die + cp Doxyfile.in Doxyfile || die + sed -i \ + -e "s/@PACKAGE_VERSION@/${PV}/g" \ + -e "s/@top_builddir@/../g" \ + -e "s/@top_srcdir@/../g" \ + -e "s/@srcdir@/./g" \ + Doxyfile || die + popd || die + + # Fix python shebangs for python-exec[-native-symlinks], #764086 + local shebangs=($(grep -rl "#!/usr/bin/env python3" || die)) + python_fix_shebang -q ${shebangs[*]} +} + +src_configure() { + local emesonargs=( + --buildtype=plain + + -D buffer=false + -D build-tests=false + -D cocoa=false + -D drm-deprecated=false + -D g-mainloop=false + -D mono-beta=false + -D dotnet=false + -D pixman=false + -D wl-deprecated=false + -D dotnet-stylecop-severity=Warning + + -D edje-sound-and-video=true + -D eeze=true + -D input=true + -D install-eo-files=true + -D libmount=true + -D native-arch-optimization=true + -D xinput2=true + -D xinput22=true + + $(meson_use X x11) + $(meson_use debug debug-threads) + $(meson_use drm) + $(meson_use examples build-examples) + $(meson_use fbcon fb) + $(meson_use fontconfig) + $(meson_use fribidi) + $(meson_use glib) + $(meson_use gstreamer) + $(meson_use harfbuzz) + $(meson_use hyphen) + $(meson_use lua_single_target_luajit elua) + $(meson_use nls) + $(meson_use physics) + $(meson_use pulseaudio) + $(meson_use sdl) + $(meson_use sound audio) + $(meson_use tslib) + $(meson_use v4l v4l2) + $(meson_use vnc vnc-server) + $(meson_use wayland wl) + $(meson_use xpresent) + $(meson_use zeroconf avahi) + + $(meson_use !system-lz4 embedded-lz4) + ) + + if use elogind || use systemd; then + emesonargs+=( -D systemd=true ) + else + emesonargs+=( -D systemd=false ) + fi + + if use wayland; then + emesonargs+=( -D opengl=es-egl ) + elif ! use wayland && use opengl; then + emesonargs+=( -D opengl=full ) + elif ! use wayland && use X && ! use opengl; then + emesonargs+=( -D opengl=es-egl ) + else + emesonargs+=( -D opengl=none ) + fi + + if use gnutls; then + emesonargs+=( -D crypto=gnutls ) + else + emesonargs+=( -D crypto=openssl ) + fi + + if use connman; then + emesonargs+=( -D network-backend=connman ) + else + emesonargs+=( -D network-backend=none ) + fi + + local disabledEvasLoaders="" + ! use avif && disabledEvasLoaders="avif," + ! use bmp && disabledEvasLoaders+="bmp,wbmp," + ! use dds && disabledEvasLoaders+="dds," + ! use eet && disabledEvasLoaders+="eet," + ! use gstreamer && disabledEvasLoaders+="gst," + ! use heif && disabledEvasLoaders+="heif," + ! use ico && disabledEvasLoaders+="ico," + ! use jpeg2k && disabledEvasLoaders+="jp2k," + ! use json && disabledEvasLoaders+="json," + ! use pdf && disabledEvasLoaders+="pdf," + ! use pmaps && disabledEvasLoaders+="pmaps," + ! use postscript && disabledEvasLoaders+="ps," + ! use psd && disabledEvasLoaders+="psd," + ! use raw && disabledEvasLoaders+="raw," + ! use svg && disabledEvasLoaders+="rsvg,svg," + ! use tga && disabledEvasLoaders+="tga," + ! use tgv && disabledEvasLoaders+="tgv," + ! use tiff && disabledEvasLoaders+="tiff," + ! use webp && disabledEvasLoaders+="webp," + ! use xcf && disabledEvasLoaders+="xcf," + ! use xpm && disabledEvasLoaders+="xpm," + [[ ! -z "$disabledEvasLoaders" ]] && disabledEvasLoaders=${disabledEvasLoaders::-1} + emesonargs+=( -D evas-loaders-disabler="${disabledEvasLoaders}" ) + + local disabledImfLoaders="" + ! use ibus && disabledImfLoaders+="ibus," + ! use scim && disabledImfLoaders+="scim," + ! use xim && disabledImfLoaders+="xim," + [[ ! -z "$disabledImfLoaders" ]] && disabledImfLoaders=${disabledImfLoaders::-1} + emesonargs+=( -D ecore-imf-loaders-disabler="${disabledImfLoaders}" ) + + local bindingsList="cxx," + use lua_single_target_luajit && bindingsList+="lua," + use mono && bindingsList+="mono," + [[ ! -z "$bindingsList" ]] && bindingsList=${bindingsList::-1} + emesonargs+=( -D bindings="${bindingsList}" ) + + local luaChoice="" + if use lua_single_target_luajit; then + luaChoice+="luajit" + else + luaChoice+="lua" + fi + emesonargs+=( -D lua-interpreter="${luaChoice}" ) + + # Not all arm CPU's have neon instruction set, #722552 + if use arm && ! use cpu_flags_arm_neon; then + emesonargs+=( -D native-arch-optimization=false ) + fi + + meson_src_configure +} + +src_compile() { + docs_compile + meson_src_compile +} + +src_install() { + meson_src_install + + if use examples; then + docompress -x /usr/share/doc/${PF}/examples/ + dodoc -r "${BUILD_DIR}"/src/examples/ + fi +} diff --git a/dev-libs/efl/metadata.xml b/dev-libs/efl/metadata.xml index 44684ed64be4..7d086589bd6a 100644 --- a/dev-libs/efl/metadata.xml +++ b/dev-libs/efl/metadata.xml @@ -15,6 +15,7 @@ <flag name="fribidi">Enable bidirectional text support</flag> <flag name="glib">Enable <pkg>dev-libs/glib</pkg> support</flag> <flag name="harfbuzz">Enable complex text shaping and layout support</flag> + <flag name="heif">Enable HEIF image loader</flag> <flag name="hyphen">Enable text hyphenation support</flag> <flag name="ibus">Enable Intelligent Input Bus</flag> <flag name="ico">Enable Ico image loader</flag> |