commit: f5cb62bafa6dcb1d18ce781c7e69be6e11af743b Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Thu Mar 7 03:57:20 2024 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Thu Mar 7 03:59:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5cb62ba
net-misc/electron-cash: enable PEP517 build Closes: https://bugs.gentoo.org/910005 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> net-misc/electron-cash/electron-cash-4.2.11.ebuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/net-misc/electron-cash/electron-cash-4.2.11.ebuild b/net-misc/electron-cash/electron-cash-4.2.11.ebuild index 8028eb404b26..993cd0db3cc4 100644 --- a/net-misc/electron-cash/electron-cash-4.2.11.ebuild +++ b/net-misc/electron-cash/electron-cash-4.2.11.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI="8" -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=setuptools PYTHON_REQ_USE="ncurses?" @@ -32,6 +33,8 @@ REQUIRED_USE=" vkb? ( qt5 ) " +BDEPEND="${DISTUTILS_DEPS}" + RDEPEND=" dev-python/dnspython[${PYTHON_USEDEP}] dev-python/ecdsa[${PYTHON_USEDEP}] @@ -65,7 +68,9 @@ src_prepare() { eapply "${FILESDIR}/3.3.6-no-user-root.patch" # Prevent icon from being installed in the wrong location - sed -i '/icons/d' setup.py || die + sed -e '/icons/d' \ + -e "s:\\(os.path.join(\\)share_dir:\\1'share':" \ + -i setup.py || die if use qt5; then pyrcc5 icons.qrc -o electroncash_gui/qt/icons_rc.py || die
