2006-02-10 13:15:04 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
2008-09-27 02:45:55 +02:00
|
|
|
set -x
|
|
|
|
|
|
|
|
sed -i 's=/bin/pwd=pwd=' 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
|
|
|
|
2008-09-27 02:45:55 +02:00
|
|
|
for i in $out/lib/opera/*/opera $out/lib/opera/*/operaplugincleaner; do
|
|
|
|
[ -h "$i" ] && i=$(readline "$i")
|
|
|
|
echo "$i <<<<<<<<<<<<"
|
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
|
2008-09-27 02:45:55 +02:00
|
|
|
# substitute pwd as late as possible so that the md5 checkusm check of opera passes
|
|
|
|
sed -i 's=/bin/pwd=pwd=' $out/bin/opera
|
2006-02-10 13:15:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|