Lines 12-25
Link Here
|
12 |
LICENSE="BSD" |
12 |
LICENSE="BSD" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~arm ~x86" |
14 |
KEYWORDS="~amd64 ~arm ~x86" |
15 |
IUSE="bindist +plugins-symlink" |
15 |
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fi fil fr gu he hi hr hu id it ja kn ko lt lv ml mr nb nl or pl pt_BR pt_PT ro ru sk sl sr sv sw ta te th tr uk vi zh_CN zh_TW" |
|
|
16 |
IUSE="bindist gnome +inspector +plugins-symlink" |
17 |
for x in ${LANGS}; do |
18 |
IUSE="${IUSE} linguas_${x}" |
19 |
done |
16 |
|
20 |
|
17 |
RDEPEND="app-arch/bzip2 |
21 |
RDEPEND="app-arch/bzip2 |
18 |
>=dev-libs/libevent-1.4.13 |
22 |
>=dev-libs/libevent-1.4.13 |
19 |
dev-libs/libxml2 |
23 |
dev-libs/libxml2 |
20 |
dev-libs/libxslt |
24 |
dev-libs/libxslt |
21 |
>=dev-libs/nss-3.12.3 |
25 |
>=dev-libs/nss-3.12.3 |
22 |
>=gnome-base/gconf-2.24.0 |
26 |
gnome? ( >=gnome-base/gconf-2.24.0 ) |
23 |
>=media-libs/alsa-lib-1.0.19 |
27 |
>=media-libs/alsa-lib-1.0.19 |
24 |
media-libs/jpeg:0 |
28 |
media-libs/jpeg:0 |
25 |
media-libs/libpng |
29 |
media-libs/libpng |
Lines 29-40
Link Here
|
29 |
x11-libs/libXScrnSaver" |
33 |
x11-libs/libXScrnSaver" |
30 |
# dev-db/sqlite:3 |
34 |
# dev-db/sqlite:3 |
31 |
DEPEND="${RDEPEND} |
35 |
DEPEND="${RDEPEND} |
|
|
36 |
!gnome? ( >=gnome-base/gconf-2.24.0 ) |
32 |
>=dev-util/gperf-3.0.3 |
37 |
>=dev-util/gperf-3.0.3 |
33 |
>=dev-util/pkgconfig-0.23 |
38 |
>=dev-util/pkgconfig-0.23 |
34 |
sys-devel/flex" |
39 |
sys-devel/flex" |
35 |
RDEPEND+=" |
40 |
RDEPEND+=" |
36 |
|| ( |
41 |
|| ( |
37 |
x11-themes/gnome-icon-theme |
42 |
x11-themes/gnome-icon-theme |
|
|
43 |
x11-themes/oxygen-molecule |
38 |
x11-themes/tango-icon-theme |
44 |
x11-themes/tango-icon-theme |
39 |
x11-themes/xfce4-icon-theme |
45 |
x11-themes/xfce4-icon-theme |
40 |
) |
46 |
) |
Lines 76-81
Link Here
|
76 |
elog "or the internet." |
82 |
elog "or the internet." |
77 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
83 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
78 |
fi |
84 |
fi |
|
|
85 |
|
86 |
if ! use gnome; then |
87 |
einfo |
88 |
elog "You need to build gconf and orbit with" |
89 |
elog "EXTRA_ECONF=\"--disable-shared --enable-static\"." |
90 |
elog "Change your settings this way:" |
91 |
elog "mkdir -p /etc/portage/env/gnome-base/ && \\" |
92 |
elog "echo EXTRA_ECONF=\"--disable-shared --enable-static\" > /etc/portage/env/gnome-base/gconf && \\" |
93 |
elog "cp /etc/portage/env/gnome-base/{gconf,orbit}" |
94 |
fi |
79 |
} |
95 |
} |
80 |
|
96 |
|
81 |
src_prepare() { |
97 |
src_prepare() { |
Lines 105-110
Link Here
|
105 |
sed -e '/^#include "mozzconf.h"$/d' \ |
121 |
sed -e '/^#include "mozzconf.h"$/d' \ |
106 |
-i third_party/zlib/zconf.h \ |
122 |
-i third_party/zlib/zconf.h \ |
107 |
|| die "zlib sed failed" |
123 |
|| die "zlib sed failed" |
|
|
124 |
|
125 |
# gconf |
126 |
! use gnome && sed -i -e '/pkg-config/s/ gconf/ --static gconf/' \ |
127 |
build/linux/system.gyp || die "sed gconf failed" |
108 |
} |
128 |
} |
109 |
|
129 |
|
110 |
src_configure() { |
130 |
src_configure() { |
Lines 177-189
Link Here
|
177 |
|
197 |
|
178 |
insinto ${CHROMIUM_HOME} |
198 |
insinto ${CHROMIUM_HOME} |
179 |
doins out/Release/chrome.pak |
199 |
doins out/Release/chrome.pak |
|
|
200 |
use inspector && doins -r out/Release/resources |
180 |
|
201 |
|
181 |
doins -r out/Release/locales |
202 |
# linguas |
182 |
doins -r out/Release/resources |
203 |
mv out/Release/locales/es-419.pak out/Release/locales/es-LA.pak |
|
|
204 |
insinto ${CHROMIUM_HOME}/locales |
205 |
# fallback locale |
206 |
doins "out/Release/locales/en-US.pak" |
207 |
for lang in ${LANGS}; do |
208 |
if use linguas_${lang}; then |
209 |
doins "out/Release/locales/${lang/_/-}.pak" |
210 |
fi |
211 |
done |
212 |
# else LANG=es_419.UTF-8 does not work |
213 |
use linguas_es_LA && dosym es-LA.pak ${CHROMIUM_HOME}/locales/es-419.pak |
183 |
|
214 |
|
184 |
# chrome.1 is for chromium --help |
215 |
# chrome.1 is for chromium --help |
185 |
newman out/Release/chrome.1 chrome.1 |
216 |
newman out/Release/chrome.1 chrome.1 |
186 |
newman out/Release/chrome.1 chromium.1 |
217 |
dosym chrome.1.bz2 /usr/share/man/man1/chromium.1.bz2 |
187 |
|
218 |
|
188 |
# Chromium looks for these in its folder |
219 |
# Chromium looks for these in its folder |
189 |
# See media_posix.cc and base_paths_linux.cc |
220 |
# See media_posix.cc and base_paths_linux.cc |
Lines 203-209
Link Here
|
203 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
234 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
204 |
|| die "desktop file sed failed" |
235 |
|| die "desktop file sed failed" |
205 |
# Gnome default application entry |
236 |
# Gnome default application entry |
206 |
dodir /usr/share/gnome-control-center/default-apps |
237 |
if use gnome; then |
207 |
insinto /usr/share/gnome-control-center/default-apps |
238 |
dodir /usr/share/gnome-control-center/default-apps |
208 |
doins "${FILESDIR}"/chromium.xml |
239 |
insinto /usr/share/gnome-control-center/default-apps |
|
|
240 |
doins "${FILESDIR}"/chromium.xml |
241 |
fi |
242 |
|
243 |
# clean |
244 |
find "${D}" -name *.d -type f -exec rm {} \; |
209 |
} |
245 |
} |