Date: Tue, 21 Jun 2022 16:37:34 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 311310846ac4 - main - textproc/py-ini2toml: Add FULL and LITE options Message-ID: <202206211637.25LGbYZ5059607@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=311310846ac4091c729aa71d303275436ea79c5a commit 311310846ac4091c729aa71d303275436ea79c5a Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-06-21 16:33:15 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-06-21 16:36:23 +0000 textproc/py-ini2toml: Add FULL and LITE options - Bump PORTREVISION for dependency change --- textproc/py-ini2toml/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/textproc/py-ini2toml/Makefile b/textproc/py-ini2toml/Makefile index cf923dba2125..eae08a6d67cb 100644 --- a/textproc/py-ini2toml/Makefile +++ b/textproc/py-ini2toml/Makefile @@ -2,6 +2,7 @@ PORTNAME= ini2toml PORTVERSION= 0.10 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -19,4 +20,19 @@ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes -.include <bsd.port.mk> +OPTIONS_DEFINE= FULL LITE +OPTIONS_DEFAULT=FULL +FULL_DESC= Create TOML document with TOML-equivalent comment +LITE_DESC= Create TOML document without comment + +FULL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configupdater>=3.0.1<4:devel/py-configupdater@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomlkit>=0.10.0<2:textproc/py-tomlkit@${PY_FLAVOR} +LITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tomli-w>=0.4.0<2:textproc/py-tomli-w@${PY_FLAVOR} + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 30800 && (${PORT_OPTIONS:MFULL} || ${PORT_OPTIONS:MLITE}) +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206211637.25LGbYZ5059607>