Lines 34-41
Link Here
|
34 |
>=dev-util/gperf-3.0.3 |
34 |
>=dev-util/gperf-3.0.3 |
35 |
>=dev-util/pkgconfig-0.23" |
35 |
>=dev-util/pkgconfig-0.23" |
36 |
|
36 |
|
37 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
|
|
38 |
|
39 |
src_prepare() { |
37 |
src_prepare() { |
40 |
# Gentoo uses .kde4, not .kde |
38 |
# Gentoo uses .kde4, not .kde |
41 |
sed -e 's/\.kde/.kde4/' -i net/proxy/proxy_config_service_linux.cc \ |
39 |
sed -e 's/\.kde/.kde4/' -i net/proxy/proxy_config_service_linux.cc \ |
Lines 54-59
Link Here
|
54 |
} |
52 |
} |
55 |
|
53 |
|
56 |
src_configure() { |
54 |
src_configure() { |
|
|
55 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
56 |
|
57 |
# CFLAGS/LDFLAGS |
57 |
# CFLAGS/LDFLAGS |
58 |
mkdir -p "${S}"/.gyp |
58 |
mkdir -p "${S}"/.gyp |
59 |
cat << EOF > "${S}"/.gyp/include.gypi |
59 |
cat << EOF > "${S}"/.gyp/include.gypi |
Lines 74-82
Link Here
|
74 |
# Sandbox paths |
74 |
# Sandbox paths |
75 |
myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
75 |
myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
76 |
|
76 |
|
77 |
if use amd64; then |
77 |
if [[ $ABI = amd64 ]] ; then |
78 |
myconf="${myconf} -Dtarget_arch=x64" |
78 |
myconf="${myconf} -Dtarget_arch=x64" |
79 |
fi |
79 |
fi |
|
|
80 |
|
81 |
if [[ $ABI = x86 ]] ; then |
82 |
myconf="${myconf} -Dtarget_arch=ia32" |
83 |
fi |
84 |
|
80 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
85 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
81 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
86 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
82 |
fi |
87 |
fi |
Lines 95-100
Link Here
|
95 |
} |
100 |
} |
96 |
|
101 |
|
97 |
src_install() { |
102 |
src_install() { |
|
|
103 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
104 |
|
98 |
# Chromium does not have "install" target in the build system. |
105 |
# Chromium does not have "install" target in the build system. |
99 |
|
106 |
|
100 |
dodir ${CHROMIUM_HOME} |
107 |
dodir ${CHROMIUM_HOME} |