--- /dev/null
+--- haskell-platform-2010.2.0.0/scripts/install.sh~ 2010-07-16 01:21:49.000000000 +0200
++++ haskell-platform-2010.2.0.0/scripts/install.sh 2010-08-26 19:23:21.735658700 +0200
+@@ -21,21 +21,21 @@
+
+ [ -x Setup ] || die "The ${PKG}/Setup script does not exist or cannot be run"
+
+- ./Setup copy ${VERBOSE} \
++ ./Setup copy ${VERBOSE} --destdir=${DESTDIR} \
+ || die "Installing the ${PKG} component failed"
+
+- ./Setup register ${VERBOSE} --gen-pkg-config="${PKG}.conf" \
++ ./Setup register ${VERBOSE} --gen-pkg-config="${DESTDIR}/${libdir}/${ghcdir}/package.conf.d/${PKG}.conf" \
+ || die "Generating the registration information for the package ${PKG} failed"
+
+- if [ -f ${PKG}.conf ]; then
+- if test "${USER_INSTALL}" = "YES"; then
+- GHC_PKG_DB="--user"
+- else
+- GHC_PKG_DB="--global"
+- fi
+- ${GHC_PKG} update ${GHC_PKG_DB} "${PKG}.conf" \
+- || die "Registering the package ${PKG} failed"
+- fi
++# if [ -f ${PKG}.conf ]; then
++# if test "${USER_INSTALL}" = "YES"; then
++# GHC_PKG_DB="--user"
++# else
++# GHC_PKG_DB="--global"
++# fi
++# ${GHC_PKG} update ${GHC_PKG_DB} "${PKG}.conf" \
++# || die "Registering the package ${PKG} failed"
++# fi
+
+ cd ../..
+ }