[101806] trunk/dports/databases

Ryan Schmidt ryandesign at macports.org
Mon Jan 21 17:12:32 PST 2013


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ccm.diff
Type: application/octet-stream
Size: 850 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130121/3c768f58/attachment.obj>


More information about the macports-dev mailing list