[101806] trunk/dports/databases

Blair Zajac blair at orcaware.com
Mon Jan 21 21:05:02 PST 2013


On 1/21/13 5:12 PM, Ryan Schmidt wrote:
>
> On Jan 19, 2013, at 18:32, blair at macports.org wrote:
>
>> Revision: 101806
>>           https://trac.macports.org/changeset/101806
>> Author:   blair at macports.org
>> Date:     2013-01-19 16:32:54 -0800 (Sat, 19 Jan 2013)
>> Log Message:
>> -----------
>> ccm: new port for the Cassandra Cluster Manager.
>
>> Added: trunk/dports/databases/ccm/Portfile
>> ===================================================================
>> --- trunk/dports/databases/ccm/Portfile	                        (rev 0)
>> +++ trunk/dports/databases/ccm/Portfile	2013-01-20 00:32:54 UTC (rev 101806)
>> @@ -0,0 +1,37 @@
>> +# -*- 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
>> +PortGroup       github 1.0
>> +
>> +name            ccm
>> +github.setup    pcmanus ccm d8277800f244fa927c7b105766ac870729ba646e
>> +version         0.0.1
>> +categories      databases
>
>> +homepage        https://github.com/pcmanus/ccm
>
> You can remove the name and homepage lines; that's part of what the github portgroup sets for you.
>
>> +    depends_lib port:py${python.version}-yaml
>
> Since ccm itself uses python 2.7 (its shebang line reads "#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python") it should itself depend on python27. The python portgroup will automatically add a dependency on the correct python port, so you need only append to, instead of replacing, depends_lib.
>
> ccm doesn't appear to install any architecture-specific files, so it should say "supported_archs noarch".
>
> See attached patch.

Thanks, I made all the changes by r101929 but 'port deps ccm' doesn't 
show python27.

Blair


More information about the macports-dev mailing list