Adding ${python.branch} without the . to Python groups

Blair Zajac blair at orcaware.com
Fri Aug 17 13:02:21 PDT 2012


On 08/17/2012 11:37 AM, Lawrence Velázquez wrote:
> On Aug 17, 2012, at 2:02 PM, Blair Zajac <blair at orcaware.com> wrote:
>
>> Can we add to the python groups another variable without the . in it, so I can do
>>
>> depends_lib-append  port:py{python.SOMETHING}-logilab-common
>>
>> What should we call SOMETHING?
>
> No need to add anything. Use "python.version".

I tried that and it doesn't work:

Index: py27-lint/Portfile
===================================================================
--- py27-lint/Portfile	(revision 96709)
+++ py27-lint/Portfile	(working copy)
@@ -31,7 +31,8 @@
                      sha1    52b1a671bacc115a953b1e0d423ecbaf9064ce2e \
                      rmd160  2f40b7efa44617b994ae1057e0351577dddf400c

-depends_lib         port:py27-logilab-common port:py27-logilab-astng
+depends_lib         port:py${python.version}-logilab-common
+                    port:py${python.version}-logilab-astng

  post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}


bash-3.2# port -v install py27-lint
Error: Unable to open port: can't read "python.version": no such variable

Blair



More information about the macports-dev mailing list