Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2020 15:51:31 +0600
From:      Muhammad Moinur Rahman <bofh@freebsd.org>
To:        Samy Mahmoudi <samy.mahmoudi@gmail.com>
Cc:        "ports@freebsd.org" <ports@freebsd.org>, python@freebsd.org
Subject:   Re: Using pkg in documentation
Message-ID:  <1F41F6EB-D21F-4D87-9958-07C47EEF9ADD@freebsd.org>
In-Reply-To: <CAFigVTMafvSn-4TE98yF4duya=MOmzrNp13B1EpXVKdvxMkUZg@mail.gmail.com>
References:  <51F445F4-9F4F-4B64-BFC3-FBCC337A8267@freebsd.org> <CAFigVTMafvSn-4TE98yF4duya=MOmzrNp13B1EpXVKdvxMkUZg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1F41F6EB-D21F-4D87-9958-07C47EEF9ADD>