From nobody Sun Sep 08 18:45:40 2024 X-Original-To: dev-commits-ports-all@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 4X1zS45CJvz5VVGP; Sun, 08 Sep 2024 18:45:40 +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 4X1zS42ds4z3xTX; Sun, 8 Sep 2024 18:45:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725821140; 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=MFG1LjingKMrKr8uZEfWeq0wkdwnW9OJmven9Mw0Fxs=; b=vvuzi6OSPwq09C2ymuMv83muX3aPqVW33Rbutpi8sOWGUd9ZQ6xDUGpNJi3HFsYmCZ7rWO taqvYMJzZ/nNtAJ8fV8pu6DBWvvIxrFK/aWrlRNhRqzalvB4fqf0Ityp1I4TSEQv85SsYK TLHBpNjFTDZJFAhQ+ruKAHyhNxCVG0T36/jO8xXiX8B/EErtBcDC4fbuQ9ccNfv4pbIZ6B On5lvWVFPsYFg20giTUI1DKP3Ofa1JF8NY7Dd9+5TH7jfzm7hTo8/g8XN8y4gWEyYTRd3Y F2+vOqoPAAFLm6Lqy/UQ77dCOlyBwGdgzyDBQrg7g/LuiJtd0CCC+17X10YRNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725821140; a=rsa-sha256; cv=none; b=nw6pY5ZLk/RELpAKBkI5CbeON5/XLdhZoXFlAm/5SuJMhWNa91cjlZBAs07yVQReN68UMU ShiDLZno2mzdViujZJMStSDdupfbU3+WajEU+lNTau11aqQG/v0xNzZv1z2LPd+E+tzU68 Mu7l/KyJNgAMbavt0tQf9w+UTtD24g2DHhUn/H/nU4k+qhyw1fritUw74V5Mr4CEUgTX+v vD+bWPOSIWV2PbZeg+klDZcLW9Ds+Vazedi6bGGt51YjZPngl8RMD3P6kwAhuzpBLsnLYo WUWOCWBZqgd+pAKPLBXYkXpSaYy33ugt7HdRy5Z/jmhyH6fRTrfvvIFuuP0fTQ== 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=1725821140; 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=MFG1LjingKMrKr8uZEfWeq0wkdwnW9OJmven9Mw0Fxs=; b=qXE0IAWnSV/Zi8PJ306FiAQq0N8iBQhsMIW3asxO50FLL0RcPpPUF3nyQSVwhqd/P9miRz RlNel5+TwhnkObqJqeFB++x2XqUNtj+LGNGU2ezmC9BKVy5N2nLLn4R5VBGGpw/unjELx/ mvxCHK5oUOwOgEp7FoUkt7deCnJiHC7oTaDz5Xkn9DPXvlcnqnbHhXE2zXwlL9cS+VwK5w hC5ipRAlyjulObozTTIdI+dBNdCSyvVFBwregRDlZNyDvylN4V8/zNC7jSxwkWcvG/9VfD EHpDe5lE3R0HoCNGQoyApp0U/xxyZauAXbjwY85+ZrSLW45u224XklBHiT+D0A== 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 4X1zS424VhzWj8; Sun, 8 Sep 2024 18:45:40 +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 488Ije53041317; Sun, 8 Sep 2024 18:45:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 488Ije7v041314; Sun, 8 Sep 2024 18:45:40 GMT (envelope-from git) Date: Sun, 8 Sep 2024 18:45:40 GMT Message-Id: <202409081845.488Ije7v041314@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: 85c3d8fce457 - main - textproc/py-furo: Convert to USE_PYTHON=pep517 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: 85c3d8fce45774b0bef77570016e59232d9bc5da Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=85c3d8fce45774b0bef77570016e59232d9bc5da commit 85c3d8fce45774b0bef77570016e59232d9bc5da Author: Po-Chuan Hsieh AuthorDate: 2024-09-08 18:21:18 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-08 18:37:47 +0000 textproc/py-furo: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change Upstream builds this port with sphinx-theme-builder. However, it does not work on FreeBSD yet since the nodeenv would try to download pre-built node.js binary executable which is unavailable for FreeBSD. Therefore, I use flit-core with pre-built static files instead. --- textproc/py-furo/Makefile | 6 ++- textproc/py-furo/files/patch-pyproject.toml | 20 +++++++++ textproc/py-furo/files/setup.py | 64 ----------------------------- 3 files changed, 24 insertions(+), 66 deletions(-) diff --git a/textproc/py-furo/Makefile b/textproc/py-furo/Makefile index 65c50eb76961..87880e65bbcb 100644 --- a/textproc/py-furo/Makefile +++ b/textproc/py-furo/Makefile @@ -1,5 +1,6 @@ PORTNAME= furo PORTVERSION= 2024.8.6 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI \ LOCAL/sunpoet:static @@ -15,18 +16,19 @@ WWW= https://pradyunsg.me/furo/ \ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.9.0:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.7:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx>=5.0,1<9.0,1:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx-basic-ng>=1.0.0b2:textproc/py-sphinx-basic-ng@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + @${FIND} ${WRKSRC} -name .gitignore -delete post-install: cd ${WRKDIR}/static/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/furo/theme/furo/static/ diff --git a/textproc/py-furo/files/patch-pyproject.toml b/textproc/py-furo/files/patch-pyproject.toml new file mode 100644 index 000000000000..3b6bc146f138 --- /dev/null +++ b/textproc/py-furo/files/patch-pyproject.toml @@ -0,0 +1,20 @@ +--- pyproject.toml.orig 2024-07-24 09:09:51 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] +-requires = ["sphinx-theme-builder >= 0.2.0a10"] +-build-backend = "sphinx_theme_builder" ++requires = ["flit-core >= 3.9.0"] ++build-backend = "flit_core.buildapi" + + [tool.sphinx-theme-builder] + node-version = "18.16.0" +@@ -15,7 +15,7 @@ dependencies = [ + requires-python = ">=3.8" + dependencies = [ + "beautifulsoup4", +- "sphinx >= 6.0,<9.0", ++ "sphinx >= 5.0,<9.0", + "sphinx-basic-ng >= 1.0.0.beta2", + "pygments >= 2.7", + ] diff --git a/textproc/py-furo/files/setup.py b/textproc/py-furo/files/setup.py deleted file mode 100644 index e06f11d12151..000000000000 --- a/textproc/py-furo/files/setup.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python -# setup.py generated by flit for tools that don't yet use PEP 517 - -from distutils.core import setup - -packages = \ -['furo'] - -package_data = \ -{'': ['*'], - 'furo': ['assets/*', - 'assets/scripts/*', - 'assets/styles/*', - 'assets/styles/base/*', - 'assets/styles/components/*', - 'assets/styles/content/*', - 'assets/styles/extensions/*', - 'assets/styles/variables/*', - 'theme/*', - 'theme/furo/*', - 'theme/furo/components/*', - 'theme/furo/partials/*', - 'theme/furo/sidebar/*', - 'theme/furo/static/*']} - -package_dir = \ -{'': 'src'} - -install_requires = \ -['beautifulsoup4', 'sphinx >= 5.0,<9.0', 'sphinx-basic-ng >= 1.0.0.beta2', 'pygments >= 2.7'] - -entry_points = \ -{'sphinx.html_themes': ['furo = furo']} - -setup(name='furo', - version='%%PORTVERSION%%', - description='A clean customisable Sphinx documentation theme.', - author=None, - author_email='Pradyun Gedam ', - classifiers=[ - 'Framework :: Sphinx', - 'Framework :: Sphinx :: Theme', - 'Development Status :: 5 - Production/Stable', - 'License :: OSI Approved :: MIT License', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Operating System :: OS Independent', - 'Topic :: Documentation', - 'Topic :: Software Development :: Documentation', - ], - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - install_requires=install_requires, - entry_points=entry_points, - python_requires='>=3.8', - )