From nobody Wed Jul 03 15:38:46 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WDkTL4r11z5Ppdj; Wed, 03 Jul 2024 15:38:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDkTL4SBsz44wk; Wed, 3 Jul 2024 15:38:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720021126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yztH2aBtwWPbqqlmSKzRijwDlFYFhFdRYDl+NctNZWw=; b=iyUnvWr2gRC34WCGVCVPcPlcYFIC4LE6MBlw+RFzD8QYEfH9Dky1Yznuhw3+2JagqasiQ7 sUO3QwEO5TkvuWNEfdPmE58Kq6fWJphWvNloy9PR7pWKujWhzDtoVkhbs5J04+Eeb20QmV LPqZZO0rmm+vtJTqelPRyE/OYUkNGGGKCq43LttZa62zC280NNGU4b9KNZbfJyV33vrqzR +p7V3ra36zpjgMACmzo6gGEcjWgwWhUTyiPpnEwEY/MNgPcIuXUothsUa2IGyBGbTalr59 JPtCFVp12sQmyAiGhGxoMfeVxk1mqZ9hXDdgZ4cuV6AW3eEDf9ro2XVqlaagVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720021126; a=rsa-sha256; cv=none; b=r/87A1NfZTNippNfLj8fF2wUBd9A1mtqQDycR6yUNcpP++3V3zwybxGNGezDVdLxhA9aWN dVqVg9oGzAx8KyfM7rgdmzv6s/HvxPkA8UHfRSHdZ9faAAbjUu25dLplzOVz6KUSVKzeY2 ZqssweuhJCvIsW10TslSvKtwnGYM1efFAG1P6loN/pczOPKDotOOS03eYGVydedAhYym5y USNfHe2O0E65OOWqrUFE/Gh72OxSIruvJLxwq6Ae/ZKTHAV3FyH+sXlUMtzpdAND0tOEeZ JKA/49W5oameYIBtfnatPKhPhB0zv9v78dwocdyhU79fU7i77FFXfVaenQFqBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720021126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yztH2aBtwWPbqqlmSKzRijwDlFYFhFdRYDl+NctNZWw=; b=MrIlBJ9gMGkEoV5ptBqtUgxcwgcIlP2PlwSa2WuEkckD8e+KI/XzbwDt2naHkQKBqCHv97 nySwv1ozpDQl/SsY2JWK7dWnVAcUqo8Aya6xBips4AKR4i+XTIS9uUgcaaC2GqFJZtUtJJ 6E16ZPjSdjptaWWIRwl4eLXV0/MSO8QTh9G61NczH9d40mBldzSvkpc+cFiHaaI+yy7Ris TBIk8NOx3dguOr9moyoAFpj7IfH6sxyNQt5CD8ySNphEFDaBDCGEDKdcVQXlAOJy21AaLR lQawQQ8dmL89BaWy1GRInkTvP600wYfJbFnI9EtgdKpNzEYDUcnCFR04PnlWIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WDkTL43RMzcVl; Wed, 3 Jul 2024 15:38:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 463Fckdd073895; Wed, 3 Jul 2024 15:38:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 463Fck0r073892; Wed, 3 Jul 2024 15:38:46 GMT (envelope-from git) Date: Wed, 3 Jul 2024 15:38:46 GMT Message-Id: <202407031538.463Fck0r073892@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 56783cabef13 - main - sysutils/lfm: Convert to USE_PYTHON=pep517 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56783cabef13919eed9c98eb53317d6db38178bf Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=56783cabef13919eed9c98eb53317d6db38178bf commit 56783cabef13919eed9c98eb53317d6db38178bf Author: Po-Chuan Hsieh AuthorDate: 2024-07-03 15:34:30 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-07-03 15:34:30 +0000 sysutils/lfm: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- sysutils/lfm/Makefile | 9 +++++---- sysutils/lfm/files/patch-setup.py | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/sysutils/lfm/Makefile b/sysutils/lfm/Makefile index 350f17811b69..6d2986496e9f 100644 --- a/sysutils/lfm/Makefile +++ b/sysutils/lfm/Makefile @@ -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 diff --git a/sysutils/lfm/files/patch-setup.py b/sysutils/lfm/files/patch-setup.py new file mode 100644 index 000000000000..bef38f3126a5 --- /dev/null +++ b/sysutils/lfm/files/patch-setup.py @@ -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: