203083987f
svn path=/nixpkgs/branches/stdenv-updates/; revision=9946
15 lines
361 B
Bash
Executable file
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)
|