PortGroups / New to Port File Development, Sorry!

Joshua Root jmr at macports.org
Tue Aug 28 11:49:04 PDT 2012


On 2012-8-29 03:05 , Ben Smith wrote:
> Thanks for all of your help.  I've taken all of the suggestions of the
> various people into account.  However, unless I'm misunderstanding
> something, I have to do my own linking.
> 
> It has been suggested in the trac ticket to add:
> 
> python.link_binaries_suffix
> 
> and switch over to:
> 
> PortSystem          1.0
> PortGroup           python 1.0
> python.version      27
> 
> Instead of
> 
> python.link_binaries no
> 
> post-destroot {
> foreach x [glob -type {x} ${destroot}${python.prefix}/bin/*] { system
> "ln $x ${destroot}${prefix}/bin" }
> }
> 
> But without doing the link myself, it doesn't appear to create the
> link.  I'm assuming that this is a common issue because the manual
> method I want to use is exactly what GoogleCL is using.

python.link_binaries_suffix had only existed for a couple of months when
googlecl was created, so probably the author was simply unaware of the
feature. The linking code provided by the portgroup works fine for many,
many ports.

- Josh


More information about the macports-dev mailing list