'Undo Shiboken RPATH handling and add Spack RPATH.'

def patch(self):

    pypkg = self.spec['python'].package
    rpath = self.rpath
    rpath.append(os.path.join(self.prefix, pypkg.site_packages_dir, 'Shiboken'))
    filter_file('OPTION_CMAKE,', ('OPTION_CMAKE,    ' + ('"-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE",    "-DCMAKE_INSTALL_RPATH=%s",' % ':'.join(rpath))), 'setup.py')
    filter_file('^\\s*rpath_cmd\\(shiboken_path,    srcpath\\)', '#rpath_cmd(shiboken_path,    srcpath)', 'shiboken_postinstall.py')
