commit:     71dc5ba0496485db973ce2938f1a2fa61b7947e9
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  6 17:47:27 2024 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 17:53:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71dc5ba0

app-misc/lfm: use PEP517 build, update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/909883
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 .../lfm/files/lfm-3.1-dont-error-on-wheel.patch    | 14 +++++++++++
 app-misc/lfm/lfm-3.1-r1.ebuild                     | 29 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/app-misc/lfm/files/lfm-3.1-dont-error-on-wheel.patch 
b/app-misc/lfm/files/lfm-3.1-dont-error-on-wheel.patch
new file mode 100644
index 000000000000..d74014fb05ff
--- /dev/null
+++ b/app-misc/lfm/files/lfm-3.1-dont-error-on-wheel.patch
@@ -0,0 +1,14 @@
+diff -ur lfm-3.1/setup.py lfm-3.1.new/setup.py
+--- lfm-3.1/setup.py   2024-03-06 11:44:37.646520051 -0600
++++ lfm-3.1.new/setup.py       2024-03-06 11:45:18.058725112 -0600
+@@ -45,10 +45,6 @@
+     print('ERROR: Python 3.4 or higher is required to run lfm.')
+     exit(-1)
+ 
+-# to avoid bug in pip 7.x. See https://bitbucket.org/pypa/wheel/issues/92
+-if 'bdist_wheel' in argv:
+-    raise RuntimeError("This setup.py does not support wheels")
+-
+ import shutil
+ try:
+     try:

diff --git a/app-misc/lfm/lfm-3.1-r1.ebuild b/app-misc/lfm/lfm-3.1-r1.ebuild
new file mode 100644
index 000000000000..c6f5c61a6916
--- /dev/null
+++ b/app-misc/lfm/lfm-3.1-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_REQ_USE="ncurses"
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="Last File Manager is a powerful file manager for the console"
+HOMEPAGE="https://inigo.katxi.org/devel/lfm/";
+SRC_URI="https://inigo.katxi.org/devel/${PN}/${P}.tar.gz";
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}"/lfm-3.1-dont-error-on-wheel.patch )
+
+src_prepare() {
+       default
+       sed -e '/data_files/d' -i setup.py || die
+}
+
+src_install() {
+       distutils-r1_src_install
+       doman ${PN}.1
+}

Reply via email to