nixpkgs/pkgs/desktops/kde-4/libs/setup.sh
Yury G. Kudryashov 203083987f kde-4: rc2
svn path=/nixpkgs/branches/stdenv-updates/; revision=9946
2007-12-15 23:46:25 +00:00

15 lines
361 B
Bash
Executable file

addKDEDIRS()
{
addToSearchPath KDEDIRS /share/kde4 /. $1
}
fixCmakeDbusCalls()
{
dbusPrefix=${1:-@out@}
echo "Fixing dbus calls in CMakeLists.txt files"
# Trailing slash in sed is essential
find .. -name CMakeLists.txt \
| xargs sed -e "s#\${DBUS_INTERFACES_INSTALL_DIR}/#${dbusPrefix}/share/dbus-1/interfaces/#" -i
}
envHooks=(${envHooks[@]} addKDEDIRS)