summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/glances')
-rw-r--r--sys-process/glances/glances-2.7.1.ebuild8
-rw-r--r--sys-process/glances/glances-2.7.ebuild8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys-process/glances/glances-2.7.1.ebuild b/sys-process/glances/glances-2.7.1.ebuild
index 0edf3a9ad2e4..9d04a05de483 100644
--- a/sys-process/glances/glances-2.7.1.ebuild
+++ b/sys-process/glances/glances-2.7.1.ebuild
@@ -34,10 +34,10 @@ pkg_setup() {
python_prepare_all() {
# Remove duplicate entries of a prebuilt doc build and
# ensure install of the file glances.conf in /etc/${PN}
- sed -i -r '\|share/doc/glances|,/\),/ {
- s.*share/doc/glances.*|("etc/glances", ["conf/glances.conf"]),|p
- d
- }' -- 'setup.py' || die
+ sed \
+ -e '/share\/doc\/glances/d' \
+ -e "s:'conf/glances.conf':('etc/glances', ['conf/glances.conf':g" \
+ -i setup.py || die
distutils-r1_python_prepare_all
}
diff --git a/sys-process/glances/glances-2.7.ebuild b/sys-process/glances/glances-2.7.ebuild
index 0edf3a9ad2e4..9d04a05de483 100644
--- a/sys-process/glances/glances-2.7.ebuild
+++ b/sys-process/glances/glances-2.7.ebuild
@@ -34,10 +34,10 @@ pkg_setup() {
python_prepare_all() {
# Remove duplicate entries of a prebuilt doc build and
# ensure install of the file glances.conf in /etc/${PN}
- sed -i -r '\|share/doc/glances|,/\),/ {
- s.*share/doc/glances.*|("etc/glances", ["conf/glances.conf"]),|p
- d
- }' -- 'setup.py' || die
+ sed \
+ -e '/share\/doc\/glances/d' \
+ -e "s:'conf/glances.conf':('etc/glances', ['conf/glances.conf':g" \
+ -i setup.py || die
distutils-r1_python_prepare_all
}