Using pkg in documentation

Samy Mahmoudi samy.mahmoudi at gmail.com
Sun Apr 26 23:54:27 UTC 2020


Hi,

What about using the meta-port lang/python ? You could write something like
the following lines in your documentation:
PY=`pkg rquery -r FreeBSD "%dn" lang/python | head -n 1 | sed "s/python//"`
pkg install py${PY}-babel

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

I hope this will help,
Samy Mahmoudi


More information about the freebsd-ports mailing list