On Apr 7, 2014, at 18:30, [email protected] wrote:

> Revision
> 118680
> Author
> [email protected]
> Date
> 2014-04-07 16:30:45 -0700 (Mon, 07 Apr 2014)
> Log Message
> 
> mojca/root: add a simple 'port select' functionality, move bin and man pages, 
> create a symlink root5/root6 in bin

> Modified: users/mojca/ports/science/root5/Portfile (118679 => 118680)
> 
> --- users/mojca/ports/science/root5/Portfile  2014-04-07 23:05:34 UTC (rev 
> 118679)
> +++ users/mojca/ports/science/root5/Portfile  2014-04-07 23:30:45 UTC (rev 
> 118680)

>  # port specific location. For 'port select'
> 
> -set install_bindir ${prefix}/libexec/root${version_major}
> -# Install directly into prefix
> -#set install_bindir ${prefix}/bin
> 
> +set install_bindir  "${prefix}/libexec/root${version_major}/bin"
> +set install_mandir  "${prefix}/libexec/root${version_major}/share/man"

Here, in the root5 portfile, install_bindir already begins with ${prefix}


> +post-destroot {
> +    # create a symlink 'root5' in bin
> +    ln -s ${prefix}/${install_bindir}/root 
> ${destroot}${prefix}/bin/root${version_major}
> +}

Here, you’re prepending ${prefix} to it again, so now it’s doubled and the 
symlink doesn’t point to the right place.


> Modified: users/mojca/ports/science/root6/Portfile (118679 => 118680)
> 
> --- users/mojca/ports/science/root6/Portfile  2014-04-07 23:05:34 UTC (rev 
> 118679)
> +++ users/mojca/ports/science/root6/Portfile  2014-04-07 23:30:45 UTC (rev 
> 118680)

> +set install_bindir  "libexec/root${version_major}/bin"
> +set install_mandir  "libexec/root${version_major}/share/man”

Here, in the root6 portfile, these vars don’t start with ${prefix}


> +post-destroot {
> +    # create a symlink 'root6' in bin
> +    ln -s ${prefix}/${install_bindir}/root 
> ${destroot}${prefix}/bin/root${version_major}
> +}

So this symlink should be fine.


_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to