new DEFAULT_VERSIONS variable

Scot Hetzel swhetzel at gmail.com
Fri Oct 4 06:33:53 UTC 2013


On Thu, Oct 3, 2013 at 8:52 AM, Baptiste Daroussin <bapt at freebsd.org> wrote:
> On Thu, Oct 03, 2013 at 09:47:43AM -0400, Jerry wrote:
>> I just saw this in UPDATING:
>>
>> 20131003:
>>   AFFECTS: users of lang/python* and ports
>>   AUTHOR: mva at FreeBSD.org
>>
>>   The default versions of lang/python* have been changed to support the
>>   new DEFAULT_VERSIONS variable.
>>
>>   PYTHON_DEFAULT_VERSION, PYTHON2_DEFAULT_VERSION and
>>   PYTHON3_DEFAULT_VERSION are deprecated. If you have set them in your
>>   make.conf, you should change them something like
>>
>>   DEFAULT_VERSIONS=python=2.7 python2=2.7 python3=3.3
>>
>> Does this affect BERKLEY DB or Ruby also? If not, is it a planned future
>> implementation?
>>
>
> The entry as of 20130920 stated also perl5, ruby, tcltk.
>
> I would be glad to see bdb, postgresql, mysql, etc also being added here :)
>
I have USES files for berkeleydb, sqlite and firebird.  So far their
they can be used as:

USE+= berkeleydb
USE+= berkeleydb:41+

They also support DEFAULT_VERSIONS, currently the syntactic for them is:

DEFAULT_VERSIONS=berkeleydb=41+ sqlite=3 firebird=25

These files also support the old WITH_*_VER variables and a per port
variable to select the version (.i.e for berkeleydb):

category_portname_BDB_VER

I still have some testing to do on these 3 USES files and creating the
postgresql.mk and mysql.mk (unless someone beats me to them ;-).

-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list