sys-apps/gcp: Replace sed with patch
authorDavid Seifert <soap@gentoo.org>
Sun, 23 Jun 2019 23:56:38 +0000 (01:56 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 23 Jun 2019 23:56:38 +0000 (01:56 +0200)
Package-Manager: Portage-2.3.67, Repoman-2.3.15
Signed-off-by: David Seifert <soap@gentoo.org>
sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch [new file with mode: 0644]
sys-apps/gcp/gcp-0.2.1.ebuild

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 (file)
index 0000000..78ddb5d
--- /dev/null
@@ -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',
index 814287b287f5d9eca0e3ac232deeed8ac1363a14..3425601feba6ab23f153925ca8351f6e27676478 100644 (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 )