summaryrefslogtreecommitdiff
path: root/kde-base/plasma-workspace/plasma-workspace-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/plasma-workspace/plasma-workspace-9999.ebuild')
-rw-r--r--kde-base/plasma-workspace/plasma-workspace-9999.ebuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/kde-base/plasma-workspace/plasma-workspace-9999.ebuild b/kde-base/plasma-workspace/plasma-workspace-9999.ebuild
index baae6a1da7d..b58ab845b4d 100644
--- a/kde-base/plasma-workspace/plasma-workspace-9999.ebuild
+++ b/kde-base/plasma-workspace/plasma-workspace-9999.ebuild
@@ -75,9 +75,8 @@ src_configure() {
src_install() {
kde4-meta_src_install
- python_version
rm -f \
- "${D}/usr/$(get_libdir)/python${PYVER}"/site-packages/PyKDE4/*.py[co] \
+ "${D}$(python_get_sitedir)"/PyKDE4/*.py[co] \
"${D}${KDEDIR}"/share/apps/plasma_scriptengine_python/*.py[co]
}
@@ -86,7 +85,7 @@ pkg_postinst() {
if use python; then
python_mod_optimize \
- "/usr/$(get_libdir)/python${PYVER}"/site-packages/PyKDE4 \
+ "${ROOT}$(python_get_sitedir)"/PyKDE4 \
"${KDEDIR}"/share/apps/plasma_scriptengine_python
fi
}
@@ -96,7 +95,7 @@ pkg_postrm() {
if [[ -d "${KDEDIR}"/share/apps/plasma_scriptengine_python ]]; then
python_mod_cleanup \
- "/usr/$(get_libdir)/python${PYVER}"/site-packages/PyKDE4 \
+ "${ROOT}$(python_get_sitedir)"/PyKDE4 \
"${KDEDIR}"/share/apps/plasma_scriptengine_python
fi
}