2006-02-10 13:15:04 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
2007-11-28 03:10:27 +01:00
|
|
|
sed -i 's=/bin/pwd=pwd=' opera install.sh
|
2006-02-10 13:15:04 +01:00
|
|
|
# Note: the "no" is because the install scripts asks whether we
|
|
|
|
# want to install icons in some system-wide directories.
|
|
|
|
echo no | ./install.sh --prefix=$out
|
|
|
|
|
|
|
|
rpath=/no-such-path
|
|
|
|
for i in $libPath; do
|
|
|
|
rpath="$rpath:$i/lib"
|
|
|
|
done
|
|
|
|
|
2007-11-28 03:10:27 +01:00
|
|
|
[ -z ${system##*64*} ] && suf=64
|
|
|
|
|
2006-02-10 13:15:04 +01:00
|
|
|
# !!! ugh, should fix this eventually; just make a normal gcc dependency
|
|
|
|
gcc=$(cat $NIX_GCC/nix-support/orig-gcc)
|
2007-11-28 03:10:27 +01:00
|
|
|
rpath="$rpath:$libstdcpp5/lib$suf"
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2007-11-28 03:10:27 +01:00
|
|
|
for i in $out/lib/opera/*/opera $out/lib/opera/*/operaplugin{wrapper,cleaner}; do
|
2006-02-10 13:15:04 +01:00
|
|
|
patchelf \
|
2006-10-27 14:43:32 +02:00
|
|
|
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
2006-02-10 13:15:04 +01:00
|
|
|
--set-rpath "$rpath" \
|
|
|
|
"$i"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|