1 |
axs 14/09/03 21:52:44 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozconfig-v4.1.eclass |
5 |
Log: |
6 |
committed new eclass to support mozilla ebuilds |
7 |
|
8 |
Revision Changes Path |
9 |
1.1364 eclass/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1364&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1364&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1363&r2=1.1364 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
18 |
retrieving revision 1.1363 |
19 |
retrieving revision 1.1364 |
20 |
diff -u -r1.1363 -r1.1364 |
21 |
--- ChangeLog 3 Sep 2014 13:05:50 -0000 1.1363 |
22 |
+++ ChangeLog 3 Sep 2014 21:52:44 -0000 1.1364 |
23 |
@@ -1,6 +1,10 @@ |
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.1363 2014/09/03 13:05:50 grknight Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1364 2014/09/03 21:52:44 axs Exp $ |
28 |
+ |
29 |
+ 03 Sep 2014; Ian Stakenvicius (_AxS_) <axs@g.o> |
30 |
+ +mozconfig-v4.1.eclass: |
31 |
+ committed new eclass to support mozilla ebuilds |
32 |
|
33 |
03 Sep 2014; Brian Evans <grknight@g.o> mysql-multilib.eclass: |
34 |
Fix libedit MULTILIB_USEDEP wrt bug 521964 |
35 |
|
36 |
|
37 |
|
38 |
1.1 eclass/mozconfig-v4.1.eclass |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozconfig-v4.1.eclass?rev=1.1&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozconfig-v4.1.eclass?rev=1.1&content-type=text/plain |
42 |
|
43 |
Index: mozconfig-v4.1.eclass |
44 |
=================================================================== |
45 |
# Copyright 1999-2014 Gentoo Foundation |
46 |
# Distributed under the terms of the GNU General Public License v2 |
47 |
# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig-v4.1.eclass,v 1.1 2014/09/03 21:52:44 axs Exp $ |
48 |
# |
49 |
# mozconfig-v4.1.eclass: the new mozilla.eclass |
50 |
|
51 |
inherit multilib flag-o-matic mozcoreconf-2 |
52 |
|
53 |
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_WIFI |
54 |
# @DESCRIPTION: |
55 |
# Set this variable before the inherit line, when an ebuild needs to provide |
56 |
# optional necko-wifi support via IUSE="wifi". Currently this would include |
57 |
# ebuilds for firefox, and potentially seamonkey. |
58 |
# |
59 |
# Leave the variable UNSET if necko-wifi support should not be available. |
60 |
# Set the variable to "enabled" if the use flag should be enabled by default. |
61 |
# Set the variable to any value if the use flag should exist but not be default-enabled. |
62 |
|
63 |
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_JIT |
64 |
# @DESCRIPTION: |
65 |
# Set this variable before the inherit line, when an ebuild needs to provide |
66 |
# optional necko-wifi support via IUSE="jit". Currently this would include |
67 |
# ebuilds for firefox, and potentially seamonkey. |
68 |
# |
69 |
# Leave the variable UNSET if optional jit support should not be available. |
70 |
# Set the variable to "enabled" if the use flag should be enabled by default. |
71 |
# Set the variable to any value if the use flag should exist but not be default-enabled. |
72 |
|
73 |
# use-flags common among all mozilla ebuilds |
74 |
IUSE="dbus debug startup-notification" |
75 |
|
76 |
RDEPEND=">=app-text/hunspell-1.2 |
77 |
dev-libs/expat |
78 |
>=dev-libs/libevent-1.4.7 |
79 |
>=x11-libs/cairo-1.12[X] |
80 |
>=x11-libs/gtk+-2.10:2 |
81 |
>=x11-libs/pango-1.22.0 |
82 |
kernel_linux? ( media-libs/alsa-lib ) |
83 |
virtual/freedesktop-icon-theme |
84 |
dbus? ( >=dev-libs/dbus-glib-0.72 ) |
85 |
startup-notification? ( >=x11-libs/startup-notification-0.8 ) |
86 |
>=dev-libs/glib-2.26:2" |
87 |
|
88 |
if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]]; then |
89 |
if [[ ${MOZCONFIG_OPTIONAL_WIFI} = "enabled" ]]; then |
90 |
IUSE+=" +wifi" |
91 |
else |
92 |
IUSE+=" wifi" |
93 |
fi |
94 |
RDEPEND+=" |
95 |
wifi? ( >=sys-apps/dbus-0.60 |
96 |
>=dev-libs/dbus-glib-0.72 |
97 |
net-wireless/wireless-tools )" |
98 |
fi |
99 |
if [[ -n ${MOZCONFIG_OPTIONAL_JIT} ]]; then |
100 |
if [[ ${MOZCONFIG_OPTIONAL_JIT} = "enabled" ]]; then |
101 |
IUSE+=" +jit" |
102 |
else |
103 |
IUSE+=" jit" |
104 |
fi |
105 |
fi |
106 |
|
107 |
DEPEND="app-arch/zip |
108 |
app-arch/unzip |
109 |
${RDEPEND}" |
110 |
|
111 |
# @FUNCTION: mozconfig_config |
112 |
# @DESCRIPTION: |
113 |
# Set common configure options for mozilla packages. |
114 |
# Call this within src_configure() phase, after mozconfig_init |
115 |
# |
116 |
# Example: |
117 |
# |
118 |
# inherit mozconfig-v4 |
119 |
# |
120 |
# src_configure() { |
121 |
# mozconfig_init |
122 |
# mozconfig_config |
123 |
# # ... misc ebuild-unique settings via calls to |
124 |
# # ... mozconfig_{annotate,use_with,use_enable} |
125 |
# mozconfig_final |
126 |
# } |
127 |
|
128 |
mozconfig_config() { |
129 |
|
130 |
mozconfig_annotate '' --enable-default-toolkit=cairo-gtk2 |
131 |
|
132 |
if has bindist ${IUSE}; then |
133 |
mozconfig_use_enable !bindist official-branding |
134 |
if [[ ${PN} == firefox ]] && use bindist ; then |
135 |
mozconfig_annotate '' --with-branding=browser/branding/aurora |
136 |
fi |
137 |
fi |
138 |
|
139 |
mozconfig_use_enable debug |
140 |
mozconfig_use_enable debug tests |
141 |
|
142 |
if ! use debug ; then |
143 |
mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols |
144 |
fi |
145 |
|
146 |
mozconfig_use_enable startup-notification |
147 |
|
148 |
if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]] ; then |
149 |
# wifi pulls in dbus so manage both here |
150 |
mozconfig_use_enable wifi necko-wifi |
151 |
if use wifi && ! use dbus; then |
152 |
echo "Enabling dbus support due to wifi request" |
153 |
mozconfig_annotate 'dbus required by necko-wifi' --enable-dbus |
154 |
else |
155 |
mozconfig_use_enable dbus |
156 |
fi |
157 |
else |
158 |
mozconfig_use_enable dbus |
159 |
mozconfig_annotate 'disabled' --disable-necko-wifi |
160 |
fi |
161 |
|
162 |
mozconfig_annotate 'required' --enable-ogg |
163 |
mozconfig_annotate 'required' --enable-wave |
164 |
|
165 |
if [[ -n ${MOZCONFIG_OPTIONAL_JIT} ]]; then |
166 |
mozconfig_use_enable jit ion |
167 |
mozconfig_use_enable jit yarr-jit |
168 |
fi |
169 |
|
170 |
# These are enabled by default in all mozilla applications |
171 |
mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr |
172 |
mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr |
173 |
mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir) |
174 |
mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr |
175 |
mozconfig_annotate '' --enable-system-hunspell |
176 |
mozconfig_annotate '' --disable-gnomevfs |
177 |
mozconfig_annotate '' --disable-gnomeui |
178 |
mozconfig_annotate '' --enable-gio |
179 |
mozconfig_annotate '' --disable-crashreporter |
180 |
} |