commit:     d237dc80f3481dd2f36b423385793ab0b13cc205
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 21 20:33:21 2017 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sat Jan 21 20:33:21 2017 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=d237dc80

www-client/firefox: Add basic rust support, is only useful for developers at 
the moment. Feature
should not be enabled in portage tree. Update metadata.xml for rust and gtk3 
useflag

 www-client/firefox/firefox-51.0_beta14.ebuild | 10 +++++++++-
 www-client/firefox/metadata.xml               |  2 ++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/www-client/firefox/firefox-51.0_beta14.ebuild 
b/www-client/firefox/firefox-51.0_beta14.ebuild
index 18a1ce5..2fa3902 100644
--- a/www-client/firefox/firefox-51.0_beta14.ebuild
+++ b/www-client/firefox/firefox-51.0_beta14.ebuild
@@ -41,7 +41,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 
~amd64-linux ~x86-lin
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist hardened hwaccel jack pgo selinux +gmp-autoupdate test"
+IUSE="bindist +gmp-autoupdate hardened hwaccel jack pgo rust selinux test"
 RESTRICT="!bindist? ( bindist )"
 
 PATCH_URIS=( 
https://dev.gentoo.org/~{anarchy,axs,polynomial-c}/mozilla/patchsets/${PATCH}.tar.xz
 )
@@ -61,6 +61,7 @@ RDEPEND="
 
 DEPEND="${RDEPEND}
        pgo? ( >=sys-devel/gcc-4.5 )
+       rust? ( dev-lang/rust )
        amd64? ( ${ASM_DEPEND} virtual/opengl )
        x86? ( ${ASM_DEPEND} virtual/opengl )"
 
@@ -95,6 +96,11 @@ pkg_setup() {
                ewarn "You will do a double build for profile guided 
optimization."
                ewarn "This will result in your build taking at least twice as 
long as before."
        fi
+
+       if use rust; then
+               einfo
+               ewarn "This is very experimental, should only be used by those 
developing firefox."
+       fi
 }
 
 pkg_pretend() {
@@ -210,6 +216,8 @@ src_configure() {
 
        mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
 
+       mozconfig_use_enable rust
+
        # Allow for a proper pgo build
        if use pgo; then
                echo "mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 
\$(MAKE) -C \$(MOZ_OBJDIR) pgo-profile-run'" >> "${S}"/.mozconfig

diff --git a/www-client/firefox/metadata.xml b/www-client/firefox/metadata.xml
index 63e6523..73dd758 100644
--- a/www-client/firefox/metadata.xml
+++ b/www-client/firefox/metadata.xml
@@ -11,6 +11,7 @@
        <flag name="custom-optimization">Build with user-specified compiler 
optimizations
                (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)</flag>
        <flag name="gtk2">Use the cairo-gtk2 rendering engine</flag>
+       <flag name="gtk3">Use the cairo-gtk3 rendering engine</flag>
        <flag name="gmp-autoupdate">Allow Gecko Media Plugins (binary blobs) to 
be automatically
                downloaded and kept up-to-date in user profiles</flag>
        <flag name="gstreamer-0">Use gstreamer:0.10 instead of gstreamer:1 for 
media support</flag>
@@ -20,6 +21,7 @@
        <flag name="pgo">Add support for profile-guided optimization using 
gcc-4.5,
                for faster binaries. This option will double the compile 
time.</flag>
        <flag name="skia">Enable the SKIA engine for 2D rendering as an 
alternative to cairo</flag>
+       <flag name="rust">Enable support for using rust compiler  
(experimental)</flag>
        <flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg>
                instead of bundled.</flag>
        <flag name="system-harfbuzz">Use the system-wide 
<pkg>media-libs/harfbuzz</pkg>

Reply via email to