From nobody Sat Jul 22 21:18:11 2023 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 4R7fRQ0TBJz4plYJ; Sat, 22 Jul 2023 21:18:26 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R7fRP45J0z3NXS; Sat, 22 Jul 2023 21:18:25 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-51e6113437cso4230949a12.2; Sat, 22 Jul 2023 14:18:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690060703; x=1690665503; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U16hRBKZQATaO6MawW4dSmlZhYfzHM+IJYqaManq+iA=; b=F9ycoLjDevo7Jy/aKniGPvTKcI9fldrPkbivZDn271kPInmuiadTGwjtgUZlQcfb7C NPMG0Rl18sktG9e3sizVS1M5ZfBq/aimcXPo3tndO6IEZ/vNR18YJwfUf15BJwha2XYc stvef8b+mkhYr9UEi/3YT7xymTdQGJP047zb1wDDj/je7t/4umJSr4RfT5Bzwl3/KTTG s8BVaP6G4Gxu6CN7Wzisb44eYdYdA7WKr9I59rnYyDS0REdX1YP6qFEabqwnaxrzOgVP s2LfWfkNgsCwxSdLVxmu1BA99boGzv/e4vhwJafTbrCOF5HDjD1pV6mgBHOMs5YXMTGa f9ag== X-Gm-Message-State: ABy/qLacihOkpU+V8FgX/dAu/ccq5F1qF4QoHMalIkzkKsm32LJt1Syk n1uY829vnViA7eaPtHr8zf/eePvBopo2JWaIU1hK0r47 X-Google-Smtp-Source: APBJJlHK/itTJCEIHX57f/ZIHrRLvv+8e6WUghyRPCuwBXgyvV5t3xv5wVILCELszGRG1V9+YF39tNrOawOv/C+ITVE= X-Received: by 2002:aa7:dcd0:0:b0:516:9fef:f8e7 with SMTP id w16-20020aa7dcd0000000b005169feff8e7mr5037824edu.3.1690060703045; Sat, 22 Jul 2023 14:18:23 -0700 (PDT) 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 References: <202307220748.36M7mgIt016872@gitrepo.freebsd.org> In-Reply-To: <202307220748.36M7mgIt016872@gitrepo.freebsd.org> From: "Jason E. Hale" Date: Sat, 22 Jul 2023 17:18:11 -0400 Message-ID: Subject: Re: git: 7bb64b89d0e5 - main - framework: add Mk/Uses/pycryptography To: "Tobias C. Berner" Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4R7fRP45J0z3NXS X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Sat, Jul 22, 2023 at 3:48=E2=80=AFAM Tobias C. Berner 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: , build, run > +# : 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