svn commit: r401923 - in head/devel: . py-pytz py-pytz3

Kubilay Kocak koobs at FreeBSD.org
Thu Nov 19 22:16:19 UTC 2015


On 20/11/2015 4:13 AM, Jan Beich wrote:
> Muhammad Moinur Rahman <bofh at FreeBSD.org> writes:
> 
>> On Thu, Nov 19, 2015 at 4:25 PM, Kubilay Kocak <koobs at freebsd.org> wrote:
>>
>>> On 19/11/2015 9:08 PM, Muhammad Moinur Rahman wrote:
>>>> In bsd.default-versions.mk <http://bsd.default-versions.mk>
>>>> PYTHON_DEFAULT=2.7 Whereas I need one from version 3 hence I have used
>>>> PYTHON3_DEFAULT=3.4. Advice please ?
>>>>
>>>> On Thu, Nov 19, 2015 at 3:59 PM, Kubilay Kocak <koobs at freebsd.org
>>>> <mailto:koobs at freebsd.org>> wrote:
>>>>
>>>>     On 19/11/2015 8:54 PM, Muhammad Moinur Rahman wrote:
>>>>     > +PYTHON_VERSION=      python${PYTHON3_DEFAULT}
>>>>
>>>>     This should probably be a different PYTHON_* variable too.
>>>>
>>>>     The mechanism in bsd.default-versions.mk
>>>>     <http://bsd.default-versions.mk> ends up setting the correct
>>>>     "PYTHON_VERSION" variable (I believe, please check), which should be
>>>>     used instead.
>>>>
>>>>
>>>
>>> I believe USES=python:3 is the way it's already being done:
>>>
>>>
>>> https://svnweb.freebsd.org/ports/head/audio/py3-pylast/Makefile?revision=376731&view=markup#l17
>>>
>>> https://svnweb.freebsd.org/ports/head/accessibility/py3-atspi/Makefile?revision=401900&view=markup#l20
>>>
>>> https://svnweb.freebsd.org/ports/head/multimedia/py3-gstreamer1/Makefile?revision=397984&view=markup#l20
>>>
>>> https://svnweb.freebsd.org/ports/head/textproc/py3-libxml2/Makefile?revision=391332&view=markup#l19
>>>
>>> Don't forget to rename :)
>>
>> I believe in that case I cannot use SLAVE port anymore and I should move to
>> an individual port.
> 
> koobs' examples aren't very convincing. For py2 vs. py3 it could be:

In a better world, we won't need py3-* versions of ports.

>   # py-foo, master
>   USES?=	python
>   USES+=	tar:bzip2
>   USE_PYTHON=	py3kplist
> 
>   # py3-foo, slave
>   USES=		python:3
> 
>   # py2-foo, slave (when python3 by default)
>   USES=		python:2
> 



More information about the svn-ports-all mailing list