[92754] trunk/dports/python/py-biggles/Portfile
Ryan Schmidt
ryandesign at macports.org
Sat May 5 14:37:10 PDT 2012
On May 5, 2012, at 16:34, Daniel Ericsson wrote:
> On 5 maj 2012, at 23:20, Ryan Schmidt wrote:
>
>>> +version 1.6.7
>>> +github.setup nolta biggles ${version} v
>>> name py-biggles
>>> -version 1.6.6
>>
>> The purpose of the github.setup line, among other things, is to set the version for you. So you're meant to write this simply as:
>>
>> github.setup nolta biggles 1.6.7 v
>
> Ah, thanks I was a bit frustrated by the github portgroup not playing nice with the python portgroup by replacing ${name}, at that point I was mostly concerned about getting the lines in the right order :)
There shouldn't be a problem using the two portgroups together. As you know, the python portgroup does not set ${name} for you; you must set it yourself in the portfile.
The github portgroup does set ${name} for you, for the convenience of that majority of ports using the github portgroup that are not python modules. For those that are python modules, or for whatever other reason want to use a different ${name}, you just overwrite name later, as you've done.
More information about the macports-dev
mailing list