Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog mozconfig-v4.eclass
Date: Mon, 28 Jul 2014 20:59:12
Message-Id: 20140728205907.4FBE62004C@flycatcher.gentoo.org
1 axs 14/07/28 20:59:07
2
3 Modified: ChangeLog
4 Added: mozconfig-v4.eclass
5 Log:
6 committed new mozconfig eclass for mozilla31 and later
7
8 Revision Changes Path
9 1.1328 eclass/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1328&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1328&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1327&r2=1.1328
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
18 retrieving revision 1.1327
19 retrieving revision 1.1328
20 diff -u -r1.1327 -r1.1328
21 --- ChangeLog 28 Jul 2014 14:13:50 -0000 1.1327
22 +++ ChangeLog 28 Jul 2014 20:59:07 -0000 1.1328
23 @@ -1,6 +1,9 @@
24 # ChangeLog for eclass directory
25 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1327 2014/07/28 14:13:50 mgorny Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1328 2014/07/28 20:59:07 axs Exp $
28 +
29 + 28 Jul 2014; Ian Stakenvicius (_AxS_) <axs@g.o> +mozconfig-v4.eclass:
30 + committed new mozconfig eclass for mozilla31 and later
31
32 28 Jul 2014; Michał Górny <mgorny@g.o> git-r3.eclass:
33 Mention git-clone man page for URI syntax, bug #511636.
34
35
36
37 1.1 eclass/mozconfig-v4.eclass
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozconfig-v4.eclass?rev=1.1&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozconfig-v4.eclass?rev=1.1&content-type=text/plain
41
42 Index: mozconfig-v4.eclass
43 ===================================================================
44 # Copyright 1999-2014 Gentoo Foundation
45 # Distributed under the terms of the GNU General Public License v2
46 # $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig-v4.eclass,v 1.1 2014/07/28 20:59:07 axs Exp $
47 #
48 # mozconfig-v4.eclass: the new mozilla.eclass
49
50 inherit multilib flag-o-matic mozcoreconf-2
51
52 # use-flags common among all mozilla ebuilds
53 IUSE="dbus debug startup-notification"
54
55 RDEPEND=">=app-text/hunspell-1.2
56 dev-libs/expat
57 >=dev-libs/libevent-1.4.7
58 >=x11-libs/cairo-1.10[X]
59 >=x11-libs/gtk+-2.10:2
60 >=x11-libs/pango-1.22.0
61 media-libs/alsa-lib
62 virtual/freedesktop-icon-theme
63 dbus? ( >=dev-libs/dbus-glib-0.72 )
64 startup-notification? ( >=x11-libs/startup-notification-0.8 )
65 wifi? ( >=sys-apps/dbus-0.60
66 net-wireless/wireless-tools )
67 >=dev-libs/glib-2.26:2"
68
69 DEPEND="app-arch/zip
70 app-arch/unzip
71 ${RDEPEND}"
72
73 mozconfig_config() {
74
75 mozconfig_annotate '' --enable-default-toolkit=cairo-gtk2
76
77 if has bindist ${IUSE}; then
78 mozconfig_use_enable !bindist official-branding
79 if [[ ${PN} == firefox ]] && use bindist ; then
80 mozconfig_annotate '' --with-branding=browser/branding/aurora
81 fi
82 fi
83
84 mozconfig_use_enable debug
85 mozconfig_use_enable debug tests
86
87 if ! use debug ; then
88 mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols
89 fi
90
91 mozconfig_use_enable startup-notification
92
93 if has wifi ${IUSE} && use wifi; then
94 if ! use dbus; then
95 echo "Enabling dbus support due to wifi request"
96 mozconfig_annotate wifi --enable-necko-wifi
97 mozconfig_annotate dbus --enable-dbus
98 else
99 mozconfig_annotate wifi --enable-necko-wifi
100 fi
101 fi
102
103 mozconfig_annotate 'required' --enable-ogg
104 mozconfig_annotate 'required' --enable-wave
105
106 if has jit ${IUSE}; then
107 mozconfig_use_enable jit ion
108 mozconfig_use_enable jit yarr-jit
109 fi
110
111 mozconfig_use_enable dbus
112
113 # These are enabled by default in all mozilla applications
114 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
115 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
116 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
117 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
118 mozconfig_annotate '' --enable-system-hunspell
119 mozconfig_annotate '' --disable-gnomevfs
120 mozconfig_annotate '' --disable-gnomeui
121 mozconfig_annotate '' --enable-gio
122 mozconfig_annotate '' --disable-crashreporter
123 }