sys-apps/gcp: Replace sed with patch

Package-Manager: Portage-2.3.67, Repoman-2.3.15
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2019-06-24 01:56:38 +02:00
parent fcdd6a5062
commit a1c9ad3c7b
2 changed files with 14 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
--- a/setup.py
+++ b/setup.py
@@ -41,9 +41,8 @@
# 'console_scripts': ['gcp=gcp:main'],
# },
data_files=[
- ('man/man1', ["gcp.1"]),
+ ('share/man/man1', ["gcp.1"]),
('share/locale/fr/LC_MESSAGES', ['i18n/fr/LC_MESSAGES/gcp.mo']),
- ('share/doc/%s' % name, ['CHANGELOG', 'LICENSE', 'README.md']),
],
install_requires=['PyGObject', 'dbus-python'],
python_requires='>=3',

View File

@@ -21,12 +21,4 @@ RDEPEND="
dev-python/progressbar[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]"
python_prepare_all() {
sed \
-e "s|'LICENSE', ||g" \
-e "s|man/man1|share/man/man1|g" \
-e "/share\/doc\/%s/d" \
-i setup.py || die
distutils-r1_python_prepare_all
}
PATCHES=( "${FILESDIR}"/${PN}-0.2.1-gentoo-fhs.patch )