[133343] trunk/dports/sysutils/pypi2port/Portfile

Joshua Root jmr at macports.org
Sat Feb 28 08:23:14 PST 2015


On 2015-2-28 15:29 , Ryan Schmidt wrote:
> 
>> On Feb 26, 2015, at 2:39 PM, gaurav at macports.org wrote:
>>
>> Revision
>> 133343
>> Author
>> gaurav at macports.org
>> Date
>> 2015-02-26 12:39:20 -0800 (Thu, 26 Feb 2015)
>> Log Message
>>
>> trunk/dports/sysutils: Added Portfile for pypi2port
>> Added Paths
>>
>> 	• trunk/dports/sysutils/pypi2port/Portfile
>> Diff
>>
>> Added: trunk/dports/sysutils/pypi2port/Portfile (0 => 133343)
>>
>> --- trunk/dports/sysutils/pypi2port/Portfile	                        (rev 0)
>> +++ trunk/dports/sysutils/pypi2port/Portfile	2015-02-26 20:39:20 UTC (rev 133343)
>>
>> @@ -0,0 +1,46 @@
>>
>> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
>> +# $Id$
>> +
>> +PortSystem          1.0
>> +PortGroup           python 1.0
>> +
>> +name                pypi2port
>> +version             133341
>> +svn.revision        ${version}
>> +categories          sysutils macports
>> +platforms           darwin
>> +maintainers         gaurav openmaintainer
>> +license             BSD
>> +supported_archs     noarch
>> +
>> +description         A python script to generate MacPorts Portfiles
>> +long_description    ${description} from pypi
>> +homepage            https://trac.macports.org/wiki/howto/${name}
>> +
>> +fetch.type          svn
>> +svn.url             https://svn.macports.org/repository/macports/contrib/${name}
>> +
>> +python.versions     27 34
> 
> For a python application port like this, the software is only going to use one single version of python, so there should probably only be one version listed in python.versions.

In fact the docs are clear that you should not set python.versions in
this case, but rather set python.default_version to a single version.
You can offer variants like:

variant python34 conflicts python27 description "Use Python 3.4" {
    python.default_version 34
}

- Josh


More information about the macports-dev mailing list