commit: 5cb773cf137cd5fcef22513441e8c58634ed3632 Author: RĂ©mi Cardona <remi <AT> gentoo <DOT> org> AuthorDate: Sun Apr 15 00:49:58 2018 +0000 Commit: Remi Cardona <remi <AT> gentoo <DOT> org> CommitDate: Sun Apr 15 00:49:58 2018 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=5cb773cf
dev-util/gdbus-codegen: fix hashbang for gdbus-codegen From: Dale Lukas Peterson <hazelnusse <AT> gmail.com> Closes: https://bugs.gentoo.org/653170 Package-Manager: Portage-2.3.28, Repoman-2.3.9 Manifest-Sign-Key: 0xE0663D48103108F8 dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch | 3 ++- .../{gdbus-codegen-2.56.1.ebuild => gdbus-codegen-2.56.1-r1.ebuild} | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch b/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch index 5b369798..30f0d7dc 100644 --- a/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch +++ b/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch @@ -45,7 +45,8 @@ index 67d367543..190afa28f 100755 - path = os.path.join('@DATADIR@', 'glib-2.0') - -sys.path.insert(0, path) - from codegen import codegen_main +-from codegen import codegen_main ++from gdbus_codegen import codegen_main sys.exit(codegen_main.codegen_main()) -- diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.56.1.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.56.1-r1.ebuild similarity index 94% rename from dev-util/gdbus-codegen/gdbus-codegen-2.56.1.ebuild rename to dev-util/gdbus-codegen/gdbus-codegen-2.56.1-r1.ebuild index 3f4d065f..943c070c 100644 --- a/dev-util/gdbus-codegen/gdbus-codegen-2.56.1.ebuild +++ b/dev-util/gdbus-codegen/gdbus-codegen-2.56.1-r1.ebuild @@ -30,7 +30,7 @@ python_prepare_all() { ) distutils-r1_python_prepare_all - cp gdbus-codegen.in gdbus-codegen || die "cp failed" + sed -e 's:@PYTHON@:python:' gdbus-codegen.in > gdbus-codegen || die cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed" sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed" }