# Copyright 2019-2020 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # # @ECLASS: icecatconfig-v6.60.eclass # @MAINTAINER: # moog621@gmail.com # @SUPPORTED_EAPIS: 5 6 7 # @BLURB: the new gnuzilla common configuration eclass for FF33 and newer, v6 # @DESCRIPTION: # This eclass is used in gnuzilla ebuilds (icecat) # to provide a single common place for the common gnuzilla engine compoments. # # The eclass provides all common dependencies as well as common use flags. # # Some use flags which may be optional in particular gnuzilla packages can be # supported through setting eclass variables. # # This eclass inherits mozconfig helper functions as defined in mozcoreconf-v3, # and so ebuilds inheriting this eclass do not need to inherit that. case ${EAPI} in 0|1|2|3|4) die "EAPI=${EAPI} not supported" ;; 5) inherit multilib ;; esac inherit flag-o-matic toolchain-funcs mozcoreconf-v6 # @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_WIFI # @DESCRIPTION: # Set this variable before the inherit line, when an ebuild needs to provide # optional necko-wifi support via IUSE="wifi". Currently this would include # ebuilds for firefox, and potentially seamonkey. # # Leave the variable UNSET if necko-wifi support should not be available. # Set the variable to "enabled" if the use flag should be enabled by default. # Set the variable to any value if the use flag should exist but not be default-enabled. # @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_JIT # @DESCRIPTION: # Set this variable before the inherit line, when an ebuild needs to provide # deterministic jit support via IUSE="jit". The upstream default will be used # otherwise, which is generally to enable jit unless support for the platform # is missing. # # Set the variable to "enabled" if the use flag should be enabled by default. # Set the variable to any value if the use flag should exist but not be default-enabled. # @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_GTK3 # @DESCRIPTION: # Set this variable before the inherit line, when an ebuild can provide # optional gtk3 support via IUSE="force-gtk3". Currently this would include # thunderbird and seamonkey in the future, once support is ready for testing. # # Leave the variable UNSET if gtk3 support should not be optionally available. # Set the variable to "enabled" if the use flag should be enabled by default. # Set the variable to any value if the use flag should exist but not be default-enabled. # If gtk+:3 is to be the standard toolkit, do not use this and instead use # MOZCONFIG_OPTIONAL_GTK2ONLY. # @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_GTK2ONLY # @DESCRIPTION: # Set this variable before the inherit line, when an ebuild can provide # optional gtk2-only support via IUSE="gtk2". # # Note that this option conflicts directly with MOZCONFIG_OPTIONAL_GTK3, both # variables cannot be set at the same time and this variable will be ignored if # MOZCONFIG_OPTIONAL_GTK3 is set. # # Leave the variable UNSET if gtk2-only support should not be available. # Set the variable to "enabled" if the use flag should be enabled by default. # Set the variable to any value if the use flag should exist but not be default-enabled. # use-flags common among all gnuzilla ebuilds IUSE="${IUSE} clang dbus debug neon pulseaudio selinux startup-notification system-icu system-jpeg system-libevent system-sqlite system-libvpx" # some notes on deps: # gtk:2 minimum is technically 2.10 but gio support (enabled by default) needs 2.14 # media-libs/mesa needs to be 10.2 or above due to a bug with flash+vdpau RDEPEND=">=app-text/hunspell-1.5.4:= dev-libs/atk dev-libs/expat >=x11-libs/cairo-1.10[X] >=x11-libs/gtk+-2.18:2 x11-libs/gdk-pixbuf >=x11-libs/pango-1.22.0 >=media-libs/libpng-1.6.34:0=[apng] >=media-libs/mesa-10.2:* media-libs/fontconfig >=media-libs/freetype-2.4.10 kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) virtual/freedesktop-icon-theme dbus? ( >=sys-apps/dbus-0.60 >=dev-libs/dbus-glib-0.72 ) startup-notification? ( >=x11-libs/startup-notification-0.8 ) >=x11-libs/pixman-0.19.2 >=dev-libs/glib-2.26:2 >=sys-libs/zlib-1.2.3 >=virtual/libffi-3.0.10:= virtual/ffmpeg x11-libs/libX11 x11-libs/libXcomposite x11-libs/libXdamage x11-libs/libXext x11-libs/libXfixes x11-libs/libXrender x11-libs/libXt system-icu? ( >=dev-libs/icu-59.1:= ) system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] ) system-sqlite? ( >=dev-db/sqlite-3.23.1:3[secure-delete,debug=] ) system-libvpx? ( >=media-libs/libvpx-1.5.0:0=[postproc] >"${prefs_file}" || die # force cairo as the canvas renderer on platforms without skia support if [[ $(tc-endian) == "big" ]] ; then echo "sticky_pref(\"gfx.canvas.azure.backends\",\"cairo\");" \ >>"${prefs_file}" || die echo "sticky_pref(\"gfx.content.azure.backends\",\"cairo\");" \ >>"${prefs_file}" || die fi }