2006-02-10 12:15:04 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
2008-09-27 01:45:55 +01:00
|
|
|
set -x
|
|
|
|
|
|
|
|
sed -i 's=/bin/pwd=pwd=' install.sh
|
2006-02-10 12:15:04 +00: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 02:10:27 +00:00
|
|
|
[ -z ${system##*64*} ] && suf=64
|
|
|
|
|
2006-02-10 12:15:04 +00:00
|
|
|
# !!! ugh, should fix this eventually; just make a normal gcc dependency
|
|
|
|
gcc=$(cat $NIX_GCC/nix-support/orig-gcc)
|
2007-11-28 02:10:27 +00:00
|
|
|
rpath="$rpath:$libstdcpp5/lib$suf"
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2008-09-27 01:45:55 +01:00
|
|
|
for i in $out/lib/opera/*/opera $out/lib/opera/*/operaplugincleaner; do
|
|
|
|
[ -h "$i" ] && i=$(readline "$i")
|
|
|
|
echo "$i <<<<<<<<<<<<"
|
2006-02-10 12:15:04 +00:00
|
|
|
patchelf \
|
2006-10-27 13:43:32 +01:00
|
|
|
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
2006-02-10 12:15:04 +00:00
|
|
|
--set-rpath "$rpath" \
|
|
|
|
"$i"
|
|
|
|
done
|
2008-09-27 01:45:55 +01: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
|
2009-05-13 15:47:10 +01:00
|
|
|
|
|
|
|
ensureDir $out/share/applications
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications
|
|
|
|
|
2006-02-10 12:15:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|