1 |
commit: a1c9ad3c7b200df80ad418ec64f33ea38875966b |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 23 23:56:38 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 23 23:56:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1c9ad3c |
7 |
|
8 |
sys-apps/gcp: Replace sed with patch |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.15 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch | 13 +++++++++++++ |
14 |
sys-apps/gcp/gcp-0.2.1.ebuild | 10 +--------- |
15 |
2 files changed, 14 insertions(+), 9 deletions(-) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 00000000000..78ddb5d0961 |
20 |
--- /dev/null |
21 |
+++ b/sys-apps/gcp/files/gcp-0.2.1-gentoo-fhs.patch |
22 |
@@ -0,0 +1,13 @@ |
23 |
+--- a/setup.py |
24 |
++++ b/setup.py |
25 |
+@@ -41,9 +41,8 @@ |
26 |
+ # 'console_scripts': ['gcp=gcp:main'], |
27 |
+ # }, |
28 |
+ data_files=[ |
29 |
+- ('man/man1', ["gcp.1"]), |
30 |
++ ('share/man/man1', ["gcp.1"]), |
31 |
+ ('share/locale/fr/LC_MESSAGES', ['i18n/fr/LC_MESSAGES/gcp.mo']), |
32 |
+- ('share/doc/%s' % name, ['CHANGELOG', 'LICENSE', 'README.md']), |
33 |
+ ], |
34 |
+ install_requires=['PyGObject', 'dbus-python'], |
35 |
+ python_requires='>=3', |
36 |
|
37 |
diff --git a/sys-apps/gcp/gcp-0.2.1.ebuild b/sys-apps/gcp/gcp-0.2.1.ebuild |
38 |
index 814287b287f..3425601feba 100644 |
39 |
--- a/sys-apps/gcp/gcp-0.2.1.ebuild |
40 |
+++ b/sys-apps/gcp/gcp-0.2.1.ebuild |
41 |
@@ -21,12 +21,4 @@ RDEPEND=" |
42 |
dev-python/progressbar[${PYTHON_USEDEP}] |
43 |
dev-python/pygobject:3[${PYTHON_USEDEP}]" |
44 |
|
45 |
-python_prepare_all() { |
46 |
- sed \ |
47 |
- -e "s|'LICENSE', ||g" \ |
48 |
- -e "s|man/man1|share/man/man1|g" \ |
49 |
- -e "/share\/doc\/%s/d" \ |
50 |
- -i setup.py || die |
51 |
- |
52 |
- distutils-r1_python_prepare_all |
53 |
-} |
54 |
+PATCHES=( "${FILESDIR}"/${PN}-0.2.1-gentoo-fhs.patch ) |