Re: Using pkg in documentation

2020-04-27 Thread Muhammad Moinur Rahman
> On 27 Apr, 2020, at 05:54, Samy Mahmoudi wrote: > > 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 > >

Re: Using pkg in documentation

2020-04-27 Thread Miroslav Lachman
On 2020-04-27 09:10, Baptiste Daroussin wrote: On Mon, Apr 27, 2020 at 08:23:09AM +0200, Miroslav Lachman wrote: On 2020-04-26 21:37, Muhammad Moinur Rahman wrote: What is the way of mentioning about installing a py-package in documentation? Let’s say now the default version of python is 3.7

Re: Using pkg in documentation

2020-04-27 Thread Baptiste Daroussin
On Mon, Apr 27, 2020 at 08:23:09AM +0200, Miroslav Lachman wrote: > On 2020-04-26 21:37, Muhammad Moinur Rahman wrote: > > What is the way of mentioning about installing a py-package in > > documentation? Let’s say now the default version of python is 3.7 so in > > most of the cases we can write

Re: Using pkg in documentation

2020-04-27 Thread Miroslav Lachman
On 2020-04-26 21:37, Muhammad Moinur Rahman wrote: What is the way of mentioning about installing a py-package in documentation? Let’s say now the default version of python is 3.7 so in most of the cases we can write in our documentation that do the following: # pkg install py37-babel You

Re: Using pkg in documentation

2020-04-26 Thread Samy Mahmoudi
> PY=`pkg rquery -r FreeBSD "%dn" lang/python | head -n 1 | sed "s/python//"` You can even replace head with a sed command if you need to save some characters on the line: PY=`pkg rquery -r FreeBSD "%dn" lang/python | sed "s/python//;1q"` > ___

Re: Using pkg in documentation

2020-04-26 Thread Samy Mahmoudi
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