[149312] trunk/dports/python/py-ngl/Portfile

Ryan Schmidt ryandesign at macports.org
Sat Jun 11 01:50:48 PDT 2016


> On Jun 10, 2016, at 3:51 PM, dstrubbe at macports.org wrote:
> 
> Revision
> 149312
> Author
> dstrubbe at macports.org
> Date
> 2016-06-10 13:51:48 -0700 (Fri, 10 Jun 2016)
> Log Message
> 
> py-ngl: Add test phase.
> Modified Paths
> 
> 	• trunk/dports/python/py-ngl/Portfile
> Diff
> 
> Modified: trunk/dports/python/py-ngl/Portfile (149311 => 149312)
> 
> --- trunk/dports/python/py-ngl/Portfile	2016-06-10 20:50:42 UTC (rev 149311)
> +++ trunk/dports/python/py-ngl/Portfile	2016-06-10 20:51:48 UTC (rev 149312)
> 
> @@ -66,6 +66,13 @@
> 
>      }
> 
>  
> 
>      livecheck.type   none
> 
> +
> +    test.run         yes
> +    # FIXME: how to set macosx, 10.10, and x86_64 in general?
> +    test.env-append        PYTHONPATH=${worksrcpath}/build/lib.macosx-10.10-x86_64-${python.version}/PyNGL:${PYTHONPATH}
> +    test {
> +        system "${python.bin} ${worksrcpath}/build/scripts-${python.version}/pynglex -w x11 ngl01p"
> +    }

This causes the portindex to fail with:

Error: Unable to open port: can't read "PYTHONPATH": no such variable

I looked at how other ports did it and fixed what I could in https://trac.macports.org/changeset/149328, but it still doesn't work; see https://trac.macports.org/ticket/50229#comment:8



More information about the macports-dev mailing list