1 |
El Lunes, 31 de Julio de 2006 08:08, Andreas Schoelver escribió: |
2 |
> Hi Jesús |
3 |
> |
4 |
> On Mon, 31 Jul 2006 01:11:30 +0200 |
5 |
> Jesús Guerrero <6thpink@×××××.es> wrote: |
6 |
> |
7 |
> [...] |
8 |
> |
9 |
> > > My favorite browser is firefox, but how do I tell both of mono-tools |
10 |
> > > and gnome about that? |
11 |
> > > |
12 |
> > > Andreas |
13 |
> > |
14 |
> > AFAIK, USE="firefox" will remove the dep on seamonkey and that stuff. I |
15 |
> > dont use gnome though, maybe someone can confirm this. |
16 |
> |
17 |
> This helps with gnome. |
18 |
> But why does USE="mozilla" *not* help? |
19 |
> Also mozilla is a web-client. |
20 |
> |
21 |
> BTW: I only use some apps of gnome, maybe I should not emerge the whole |
22 |
> gnome thing at all. |
23 |
> |
24 |
> Andreas |
25 |
|
26 |
Ok, as I said, i am not a gnome user, but a quick emerge -t is enough to get |
27 |
some info. It is not gnome directly the one that needs firefox/seamonkey, but |
28 |
yelp, as can be seen here: |
29 |
|
30 |
[code] |
31 |
|
32 |
# emerge -t gnome-light | grep -U5 firefox |
33 |
[ebuild N ] gnome-base/gnome-panel-2.14.2 USE="eds -debug -doc" |
34 |
[ebuild N ] x11-libs/libwnck-2.14.2 USE="-debug -doc" |
35 |
[ebuild N ] gnome-base/gnome-session-2.14.2 |
36 |
USE="tcpd -branding -debug -esd -ipv6" |
37 |
[ebuild N ] x11-themes/gnome-themes-2.14.2 USE="-accessibility -debug" |
38 |
[ebuild N ] x11-themes/gtk-engines-2.6.9 USE="-accessibility -debug" |
39 |
[ebuild N ] gnome-extra/yelp-2.14.2-r2 USE="-debug -firefox" |
40 |
[ebuild N ] gnome-base/libgnomeprintui-2.12.1 USE="-debug -doc" |
41 |
[ebuild N ] gnome-base/libgnomeprint-2.12.1 USE="cups -debug -doc" |
42 |
[ebuild N ] net-print/libgnomecups-0.2.2 USE="-debug" |
43 |
[ebuild N ] www-client/seamonkey-1.0.3 USE="crypt |
44 |
xprint -debug -gnome -ipv6 -java -ldap -mozcalendar -mozdevelop -moznocompose -moznoirc -moznomail -moznoroaming -postgres -xinerama" |
45 |
[ebuild N ] gnome-base/control-center-2.14.2 USE="alsa |
46 |
eds -debug -gstreamer" |
47 |
|
48 |
[/code] |
49 |
|
50 |
I think the reason why the mozilla USE does not affect this if pretty obvious. |
51 |
It is yelp the one that needs firefox or seamonkey, and, as you can see, it |
52 |
has no "mozilla" use flag available. Could it be done by modifying the |
53 |
ebuild? I am almost sure, not that seamonkey or firefox are anything |
54 |
different to mozilla in capabilities. |
55 |
|
56 |
I tinkered a bit with this and came along with this ebuild (i have no idea |
57 |
about ebuilds, so, just bear with me if something is not nice, it just |
58 |
works :P ). |
59 |
|
60 |
[code] |
61 |
|
62 |
# Copyright 1999-2006 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/yelp/yelp-2.14.2-r2.ebuild,v |
65 |
1.6 2006/07/17 18:27:39 dang Exp $ |
66 |
|
67 |
inherit eutils gnome2 autotools |
68 |
|
69 |
DESCRIPTION="Help browser for GNOME" |
70 |
HOMEPAGE="http://www.gnome.org/" |
71 |
|
72 |
LICENSE="GPL-2" |
73 |
SLOT="0" |
74 |
KEYWORDS="~alpha amd64 hppa ~ia64 ppc ~ppc64 sparc x86" |
75 |
IUSE="firefox mozilla" |
76 |
|
77 |
RDEPEND=">=dev-libs/glib-2 |
78 |
>=gnome-base/orbit-2.12.4 |
79 |
>=gnome-base/gconf-2 |
80 |
>=app-text/gnome-doc-utils-0.3.1 |
81 |
>=gnome-base/gnome-vfs-2 |
82 |
>=x11-libs/gtk+-2.5.3 |
83 |
>=gnome-base/libbonobo-1.108 |
84 |
>=gnome-base/libglade-2 |
85 |
>=gnome-base/libgnome-2.0.2 |
86 |
>=gnome-base/libgnomeui-1.103 |
87 |
>=gnome-base/libgnomeprint-2.2 |
88 |
>=gnome-base/libgnomeprintui-2.2 |
89 |
>=dev-libs/libxml2-2.6.5 |
90 |
>=dev-libs/libxslt-1.1.4 |
91 |
>=x11-libs/startup-notification-0.8 |
92 |
sparc? ( >=www-client/mozilla-firefox-1.0.2-r1 ) |
93 |
ia64? ( >=www-client/mozilla-firefox-1.0.2-r1 ) |
94 |
ppc64? ( www-client/seamonkey ) |
95 |
!sparc? ( !ia64? ( !firefox? ( !mozilla? ( www-client/seamonkey ) ) ) ) |
96 |
firefox? ( >=www-client/mozilla-firefox-1.0.2-r1 ) |
97 |
mozilla? ( >=www-client/mozilla-1.7.13 ) |
98 |
dev-libs/popt |
99 |
sys-libs/zlib |
100 |
app-arch/bzip2" |
101 |
|
102 |
DEPEND="${RDEPEND} |
103 |
sys-devel/gettext |
104 |
>=dev-util/intltool-0.28 |
105 |
>=dev-util/pkgconfig-0.9" |
106 |
|
107 |
DOCS="AUTHORS ChangeLog NEWS README TODO" |
108 |
|
109 |
|
110 |
pkg_setup() { |
111 |
G2CONF="${G2CONF} --enable-man --enable-info" |
112 |
|
113 |
if use firefox || use sparc || use ia64; then |
114 |
G2CONF="${G2CONF} --with-mozilla=firefox" |
115 |
else |
116 |
G2CONF="${G2CONF} --with-mozilla=seamonkey" |
117 |
fi |
118 |
} |
119 |
|
120 |
src_unpack() { |
121 |
gnome2_src_unpack |
122 |
|
123 |
epatch ${FILESDIR}/${PN}-2.14.0-mozilla-include-fix.patch |
124 |
|
125 |
# Fixes bug #132527, already merged upstream into next 2.14 release |
126 |
epatch ${FILESDIR}/${P}-ampersand-escaping.patch |
127 |
|
128 |
mv aclocal.m4 old_macros.m4 |
129 |
AT_M4DIR="m4 ." eautoreconf |
130 |
} |
131 |
|
132 |
[/code] |
133 |
|
134 |
I just modified the |
135 |
original /usr/portage/gnome-extra/yelp/yelp-2.14.2-r2.ebuild to look like |
136 |
that. You can just put it in an overlay or something. It work, and now if you |
137 |
USE="mozilla" you get this. |
138 |
|
139 |
[code] |
140 |
|
141 |
└─[161]-> # USE="mozilla" emerge -pv yelp |
142 |
|
143 |
These are the packages that would be merged, in order: |
144 |
|
145 |
Calculating dependencies... done! |
146 |
[ebuild N ] gnome-base/orbit-2.14.2 USE="ssl -debug -doc" 0 kB |
147 |
[ebuild N ] gnome-base/libbonobo-2.14.0 USE="-debug -doc" 0 kB |
148 |
[ebuild N ] gnome-base/gconf-2.14.0 USE="-debug -doc" 0 kB |
149 |
[ebuild N ] gnome-base/gnome-mime-data-2.4.2 USE="-debug" 0 kB |
150 |
[ebuild N ] gnome-base/gnome-vfs-2.14.2-r1 USE="hal |
151 |
ssl -avahi -debug -doc -gnutls -ipv6 -samba" 0 kB |
152 |
[ebuild N ] gnome-base/libgnome-2.14.1 USE="-debug -doc -esd -static" 0 |
153 |
kB |
154 |
[ebuild N ] net-print/libgnomecups-0.2.2 USE="-debug" 0 kB |
155 |
[ebuild N ] gnome-base/libgnomeprint-2.12.1 USE="cups -debug -doc" 0 kB |
156 |
[ebuild N ] x11-libs/startup-notification-0.8 0 kB |
157 |
[ebuild N ] www-client/mozilla-1.7.13 USE="crypt mozsvg ssl truetype |
158 |
xprint -debug -gnome -ipv6 -java -ldap -mozcalendar -mozdevelop -moznocompose -moznoirc -moznomail -moznoxft -postgres -xinerama" |
159 |
569 kB |
160 |
[ebuild N ] app-text/gnome-doc-utils-0.6.1 USE="-debug" 0 kB |
161 |
[ebuild N ] gnome-base/libgnomecanvas-2.14.0 USE="X -debug -doc -static" |
162 |
0 kB |
163 |
[ebuild N ] dev-perl/XML-Simple-2.14 USE="perl -minimal" 0 kB |
164 |
[ebuild N ] x11-misc/icon-naming-utils-0.7.2 0 kB |
165 |
[ebuild N ] x11-themes/gnome-icon-theme-2.14.2 USE="-debug" 0 kB |
166 |
[ebuild N ] gnome-base/libgnomeprintui-2.12.1 USE="-debug -doc" 0 kB |
167 |
[ebuild N ] gnome-base/gnome-keyring-0.4.9 USE="-debug" 0 kB |
168 |
[ebuild N ] gnome-base/libbonoboui-2.14.0 USE="X -debug -doc" 0 kB |
169 |
[ebuild N ] gnome-base/libgnomeui-2.14.1 USE="jpeg -debug -doc" 0 kB |
170 |
[ebuild N ] gnome-extra/yelp-2.14.2-r2 USE="mozilla -debug -firefox" 0 kB |
171 |
|
172 |
Total size of downloads: 569 kB |
173 |
|
174 |
[/code] |
175 |
|
176 |
I dont have gnome or mozilla, so it want to install a bunch of thins, if you |
177 |
have both, you should not require seamonkey nor firefox now. |
178 |
|
179 |
If you find it useful, feel free to open a but in bugzilla and feel free to |
180 |
submit this modiffied ebuild, so it can go into portage and you dont have to |
181 |
mess with ebuild in the future. I dont know how long mozilla will be in |
182 |
portage though... I dont like it. :P |
183 |
|
184 |
Enjoy, regards. :) |
185 |
|
186 |
-- |
187 |
gentoo-user@g.o mailing list |