3
0
Fork 0
forked from mirrors/nixpkgs

* Set the QTDIR variable in a Qt setup hook.

svn path=/nixpkgs/trunk/; revision=2240
This commit is contained in:
Eelco Dolstra 2005-02-15 17:44:45 +00:00
parent cbdd91f2a6
commit 1dcbda3398
4 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,5 @@
. $stdenv/setup
export QTDIR=$qt3
buildPhase=myBuilder
myBuilder() {

View file

@ -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
}

View file

@ -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";

View file

@ -0,0 +1 @@
export QTDIR=@out@