diff options
author | David Seifert <soap@gentoo.org> | 2019-06-24 01:56:38 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2019-06-24 01:56:38 +0200 |
commit | a1c9ad3c7b200df80ad418ec64f33ea38875966b (patch) | |
tree | 19a5703b4e8608147d283beb173b7f48d4a89ca6 /sys-apps/gcp | |
parent | sys-apps/gcp: Remove old (diff) | |
download | gentoo-a1c9ad3c7b200df80ad418ec64f33ea38875966b.tar.gz gentoo-a1c9ad3c7b200df80ad418ec64f33ea38875966b.tar.bz2 gentoo-a1c9ad3c7b200df80ad418ec64f33ea38875966b.zip |
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>
Diffstat (limited to 'sys-apps/gcp')
-rw-r--r-- | sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch | 13 | ||||
-rw-r--r-- | sys-apps/gcp/gcp-0.2.1.ebuild | 10 |
2 files changed, 14 insertions, 9 deletions
diff --git a/sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch b/sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch new file mode 100644 index 000000000000..78ddb5d09617 --- /dev/null +++ b/sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch @@ -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', diff --git a/sys-apps/gcp/gcp-0.2.1.ebuild b/sys-apps/gcp/gcp-0.2.1.ebuild index 814287b287f5..3425601feba6 100644 --- a/sys-apps/gcp/gcp-0.2.1.ebuild +++ b/sys-apps/gcp/gcp-0.2.1.ebuild @@ -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 ) |