--- /usr/portage/www-plugins/pipelight/pipelight-9999.ebuild 2014-08-02 00:01:40.000000000 -0400 +++ /usr/portage/www-plugins/pipelight/pipelight-9999.ebuild 2014-08-03 15:03:29.382964080 -0400 @@ -37,9 +37,11 @@ # does not support DESTDIR, so we use sed to adjust it before running it to # properly duplicate the plugins. # XXX: Patch the script to support DESTDIR and send the patch upstream. - sed -e "s:^\(PIPELIGHT_LIBRARY_PATH=\"\)\\(.*\):\1${ED}usr/$(get_libdir)/${PN}\":" \ - "${DESTDIR}/usr/bin/pipelight-plugin" > "${T}/pipelight-plugin" \ - || die "Generating temporary pipelight-plugin failed" + cp "${D}/usr/bin/pipelight-plugin" "${T}" + sed -i -e "s:^\(PIPELIGHT_SHARE_PATH=\"\)/\\(.*\):\1${ED}\2:" \ + -e "s:^\(PIPELIGHT_LIBRARY_PATH=\"\)/\\(.*\):\1${ED}\2:" \ + -e "s:^\(PLUGIN_PATH=\"\)/\\(.*\):\1${ED}\2:" \ + "${T}/pipelight-plugin" || die "Generating temporary pipelight-plugin failed" chmod u+x "${T}/pipelight-plugin" \ || die "Setting permissions on temporary pipelight-plugin failed"