[102717] trunk/dports/python/py-h5py/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Feb 7 10:08:11 PST 2013


On Feb 7, 2013, at 11:33, eborisch at macports.org wrote:

> Revision: 102717
>          https://trac.macports.org/changeset/102717
> Author:   eborisch at macports.org
> Date:     2013-02-07 09:33:23 -0800 (Thu, 07 Feb 2013)
> Log Message:
> -----------
> py-h5py[-devel]: Update to 2.1.2; add conflicts.
> 
> Modified Paths:
> --------------
>    trunk/dports/python/py-h5py/Portfile


> # Support for -devel
> set DEV_VERSION     0
> @@ -23,10 +24,13 @@
> subport             py32-h5py-devel {set DEV_VERSION 32}
> 
> if {${DEV_VERSION}} {
> -    python.version  ${DEV_VERSION}
> +    python.version      ${DEV_VERSION}
>     epoch               20121002
> #    No current devel version
> #    version         2.X
> +    conflicts           py${python.version}-h5py
> +} else {
> +    conflicts           py${python.version}-h5py-devel
> }

So, this isn't right:

$ port info py-h5py | grep Conflicts
Conflicts with:       py-h-h5py-devel

The problem is you're trying to use ${python.version} when ${name} == ${subport}. Probably the python portgroup should throw an error, but instead, it gives you characters three and four of the port name.






More information about the macports-dev mailing list