forked from mirrors/nixpkgs
* Set the QTDIR variable in a Qt setup hook.
svn path=/nixpkgs/trunk/; revision=2240
This commit is contained in:
parent
cbdd91f2a6
commit
1dcbda3398
|
@ -1,7 +1,5 @@
|
|||
. $stdenv/setup
|
||||
|
||||
export QTDIR=$qt3
|
||||
|
||||
|
||||
buildPhase=myBuilder
|
||||
myBuilder() {
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
. $stdenv/setup
|
||||
. $substitute
|
||||
|
||||
ensureDir $out/nix-support
|
||||
substitute "$hook" "$out/nix-support/setup-hook" --subst-var out
|
||||
|
||||
|
||||
preConfigure=preConfigure
|
||||
|
@ -9,11 +13,9 @@ preConfigure() {
|
|||
# will cause ./configure misdetections).
|
||||
for i in config.tests/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do
|
||||
echo "patching $i..."
|
||||
sed < $i > $i.tmp \
|
||||
-e 's^ /lib^ /FOO^g' \
|
||||
-e 's^/usr^/FOO^g'
|
||||
if test -x $i; then chmod +x $i.tmp; fi
|
||||
mv $i.tmp $i
|
||||
substituteInPlace "$i" \
|
||||
--replace " /lib" " /FOO" \
|
||||
--replace "/usr" "/FOO"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ stdenv.mkDerivation {
|
|||
name = "qt-3.3.3";
|
||||
|
||||
builder = ./builder.sh;
|
||||
substitute = ../../../build-support/substitute/substitute.sh;
|
||||
hook = ./setup-hook.sh;
|
||||
src = fetchurl {
|
||||
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/qt-x11-free-3.3.3.tar.bz2;
|
||||
md5 = "3e0a0c8429b0a974b39b5f535ddff01c";
|
||||
|
|
1
pkgs/development/libraries/qt-3/setup-hook.sh
Normal file
1
pkgs/development/libraries/qt-3/setup-hook.sh
Normal file
|
@ -0,0 +1 @@
|
|||
export QTDIR=@out@
|
Loading…
Reference in a new issue