commit:     d947bfd9253baa72494b42634f22d7ec2eb232be
Author:     Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
AuthorDate: Mon Jul 19 22:30:41 2021 +0000
Commit:     Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io>
CommitDate: Mon Jul 19 22:31:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d947bfd9

app-misc/ssmtool: Fix bug #802915

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Shaoyu Tseng <shaoyu0209 <AT> tuta.io>

 app-misc/ssmtool/ssmtool-0.1.11.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/app-misc/ssmtool/ssmtool-0.1.11.ebuild 
b/app-misc/ssmtool/ssmtool-0.1.11.ebuild
index 00ea5715c..aa92310e5 100644
--- a/app-misc/ssmtool/ssmtool-0.1.11.ebuild
+++ b/app-misc/ssmtool/ssmtool-0.1.11.ebuild
@@ -21,8 +21,15 @@ DEPEND="
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 
+python_prepare_all () {
+       # sed to remove the data_files option, which are necessary to include
+       # data files in the packaged version, but will install files into
+       # /usr/data if not removed before converting it to setup.py
+       sed -i -e '/options\.data_files/,+4d' setup.cfg
+       distutils-r1_python_prepare_all
+}
 python_install() {
+       distutils-r1_python_install
        newicon icon.png ssmtool.png
        domenu ssmtool.desktop
-       distutils-r1_python_install
 }

Reply via email to