Date: Sat, 22 Jul 2023 17:18:11 -0400 From: "Jason E. Hale" <jhale@freebsd.org> To: "Tobias C. Berner" <tcberner@freebsd.org> Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 7bb64b89d0e5 - main - framework: add Mk/Uses/pycryptography Message-ID: <CAJE75NH6bGHdmwEwtPhT-WKXfc1tjH=UPQF_26XF_yf%2B6kQZsQ@mail.gmail.com> In-Reply-To: <202307220748.36M7mgIt016872@gitrepo.freebsd.org> References: <202307220748.36M7mgIt016872@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 22, 2023 at 3:48=E2=80=AFAM Tobias C. Berner <tcberner@freebsd.= org> wrote: > > diff --git a/Mk/Uses/pycryptography.mk b/Mk/Uses/pycryptography.mk > new file mode 100644 > index 000000000000..78576746e414 > --- /dev/null > +++ b/Mk/Uses/pycryptography.mk > @@ -0,0 +1,46 @@ > +# Handle dependency on security/py-cryptogrpaphy[-legacy] Typo:..............................................................^ > +# > +# Feature: pycrptography Typo:.....................^ > +# Usage: USES=3Dpycryptography > +# Valid ARGS: <none>, build, run > +# <none>: default same as build,run > +# build: add BUILD_DEPENDS > +# run: add RUN_DEPENDS > +# test: add TEST_DEPENDS > +# > +# MAINTAINER: portmgr@FreeBSD.org Shouldn't python@ maintain this? > +# > + > +.if ! defined(_INCLUDE_USES_PYCRYPTOGRAPHY_MK) > +_INCLUDE_USES_PYCRYPTOGRAPHY_MK=3D YES > + > +# valid arguments: > +_PYCRYPTOGRAPHY_MK_VALID_MODES=3D build run test > + > +# Suffixes > +_PYCRYPTOGRAPHY_MK_SUFFIX_rust=3D # > +_PYCRYPTOGRAPHY_MK_SUFFIX_legacy=3D -legacy > + > +# Dependency > +_PYCRYPTOGRAPHY_MK_SUFFIX=3D ${_PYCRYPTOGRAPHY_MK_SUFFIX_${PYCRYPTOG= RAPHY_DEFAULT}} > +_PYCRYPTOGRAPHY_MK_PKG=3D ${PYTHON_PKGNAMEPREFIX}cryptogr= aphy${_PYCRYPTOGRAPHY_MK_SUFFIX} > +_PYCRYPTOGRAPHY_MK_PORT=3D security/py-cryptography${_PYCRYPTOGRAP= HY_MK_SUFFIX} > +_PYCRYPTOGRAPHY_MK_DEPENDENCY=3D ${_PYCRYPTOGRAPHY_MK_PKG}>0:${_PYCRYPTO= GRAPHY_MK_PORT}@${PY_FLAVOR} > + > +# =3D=3D=3D parse version arguments =3D=3D=3D > +_PYGRYPTOGRAPHY_MK_MODES=3D # empty Typo:...^ > +. for _mode in ${_PYCRYPTOGRAPHY_MK_VALID_MODES} > +. if ${pycryptography_ARGS:M${_mode}} > +_PYCRYPTOGRAPHY_MK_MODES+=3D ${_mode} > +. endif > +. endfor > +. if empty(_PYGRYPTOGRAPHY_MK_MODES) Typo:...................^ > +_PYCRYPTOGRAPHY_MK_MODES=3D build run > +. endif > + > +# =3D=3D add actual dependencies =3D=3D=3D > +. for _mode in ${_PYCRYPTOGRAPHY_MK_MODES} > +${_mode:tu}_DEPENDS+=3D ${_PYCRYPTOGRAPHY_MK_DEPENDENCY} > +. endfor > + > +.endif -Jason
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJE75NH6bGHdmwEwtPhT-WKXfc1tjH=UPQF_26XF_yf%2B6kQZsQ>