From owner-freebsd-python@freebsd.org Mon Apr 27 09:51:42 2020 Return-Path: <owner-freebsd-python@freebsd.org> Delivered-To: freebsd-python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CD3E82B1948 for <freebsd-python@mailman.nyi.freebsd.org>; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 499g6657fXz3Gqt for <freebsd-python@freebsd.org>; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AE6F72B1947; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) Delivered-To: python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE1042B1945; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499g664DPjz3Gqr; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from mx.bofh.network (mx.bofh.network [IPv6:2001:19f0:5001:2b77:5400:2ff:fe7b:aa2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.bofh.network", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: bofh/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 27F9B1C8C8; Mon, 27 Apr 2020 09:51:42 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from [IPv6:2402:54c0:ffff:ffff:3c3f:b695:df7f:e11d] (<unknown> [2402:54c0:ffff:ffff:3c3f:b695:df7f:e11d]) by mx.bofh.network (OpenSMTPD) with ESMTPSA id cc0fffc4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 27 Apr 2020 09:51:34 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Using pkg in documentation From: Muhammad Moinur Rahman <bofh@freebsd.org> In-Reply-To: <CAFigVTMafvSn-4TE98yF4duya=MOmzrNp13B1EpXVKdvxMkUZg@mail.gmail.com> Date: Mon, 27 Apr 2020 15:51:31 +0600 Cc: "ports@freebsd.org" <ports@freebsd.org>, python@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1F41F6EB-D21F-4D87-9958-07C47EEF9ADD@freebsd.org> References: <51F445F4-9F4F-4B64-BFC3-FBCC337A8267@freebsd.org> <CAFigVTMafvSn-4TE98yF4duya=MOmzrNp13B1EpXVKdvxMkUZg@mail.gmail.com> To: Samy Mahmoudi <samy.mahmoudi@gmail.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/> List-Post: <mailto:freebsd-python@freebsd.org> List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>, <mailto:freebsd-python-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 27 Apr 2020 09:51:42 -0000 > On 27 Apr, 2020, at 05:54, Samy Mahmoudi <samy.mahmoudi@gmail.com> = wrote: >=20 > Hi, >=20 > What about using the meta-port lang/python ? You could write something = like > the following lines in your documentation: > PY=3D`pkg rquery -r FreeBSD "%dn" lang/python | head -n 1 | sed = "s/python//"` > pkg install py${PY}-babel >=20 > "-r FreeBSD" can indeed be ommited in a default configuration where = the > user has not configured several repositories. As you cannot guarantee = that > last condition is met, I would suggest not to omit that part. >=20 > I hope this will help, > Samy Mahmoudi > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org=E2=80=9D That=E2=80=99s one possible way of doing it. But we don=E2=80=99t have a = meta port for php so it=E2=80=99s not going to work for that. I am = looking for a uniform way of doing it.