${version} vs. ${portversion}

Kevin Van Vechten kvv at apple.com
Fri Mar 23 10:47:38 PDT 2007


"version" is what Portfiles are supposed to use.  I recall we added  
"portversion" to the internals since there was some ambiguity  
surrounding "version" in various parts of base/.  "portversion" works  
in the Portfile because the namespace bleeds through.

- kvv

On Mar 23, 2007, at 1:17 AM, Ryan Schmidt wrote:

> What's the difference between ${version} and ${portversion}? There  
> are 1350 ports that use the former construct, and 74 that use the  
> latter. Do they represent the same thing? If so, why do we have two  
> variables?
>
>
> dports $ grep '${portversion}' */*/Portfile | cut -d ':' -f 1 |  
> sort | uniq | wc -l
>       74
> dports $ grep '${version}' */*/Portfile | cut -d ':' -f 1 | sort |  
> uniq | wc -l
>     1350
>
>
> -- 



More information about the macports-dev mailing list