mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
sysutils/lfm: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
This commit is contained in:
parent
a0e8e13094
commit
56783cabef
@ -1,5 +1,6 @@
|
||||
PORTNAME= lfm
|
||||
PORTVERSION= 3.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= PYPI
|
||||
|
||||
@ -10,12 +11,12 @@ WWW= https://inigo.katxi.org/devel/lfm/
|
||||
LICENSE= GPLv3+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils noflavors
|
||||
USE_PYTHON= autoplist noflavors pep517
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/print(__doc__)/d' ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
30
sysutils/lfm/files/patch-setup.py
Normal file
30
sysutils/lfm/files/patch-setup.py
Normal file
@ -0,0 +1,30 @@
|
||||
--- setup.py.orig 2017-06-25 17:04:03 UTC
|
||||
+++ setup.py
|
||||
@@ -37,18 +37,12 @@ Topic :: Utilities
|
||||
Topic :: Utilities
|
||||
"""
|
||||
|
||||
-print(__doc__)
|
||||
-
|
||||
# check python version
|
||||
ver = (version_info.major, version_info.minor)
|
||||
if ver < (3, 4):
|
||||
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:
|
||||
@@ -71,7 +65,7 @@ try:
|
||||
license='GPL3+',
|
||||
packages=['lfm'],
|
||||
scripts=['lfm/lfm'],
|
||||
- data_files=[(join(prefix, 'share/man/man1'), MAN_FILES)],
|
||||
+ data_files=[('share/man/man1', MAN_FILES)],
|
||||
package_data={'': CONFIG_FILES + [join('doc', f) for f in DOC_FILES]},
|
||||
)
|
||||
finally:
|
Loading…
Reference in New Issue
Block a user