[96225] trunk/dports/www/elinks-devel/Portfile

Ryan Schmidt ryandesign at macports.org
Sun Aug 5 04:08:26 PDT 2012


On Aug 5, 2012, at 03:02, and.damore at macports.org wrote:

> Revision: 96225
>          https://trac.macports.org/changeset/96225
> Author:   and.damore at macports.org
> Date:     2012-08-05 01:02:28 -0700 (Sun, 05 Aug 2012)
> Log Message:
> -----------
> port elinks-devel: switching from port to file dependency for lua variant
> 
> Modified Paths:
> --------------
>    trunk/dports/www/elinks-devel/Portfile
> 
> Modified: trunk/dports/www/elinks-devel/Portfile
> ===================================================================
> --- trunk/dports/www/elinks-devel/Portfile	2012-08-05 04:13:04 UTC (rev 96224)
> +++ trunk/dports/www/elinks-devel/Portfile	2012-08-05 08:02:28 UTC (rev 96225)
> @@ -136,7 +136,7 @@
> }
> 
> variant lua description {Enable support for Lua scripting} {
> -    depends_lib-append port:lua50
> +    depends_lib-append bin:${prefix}/bin/lua:lua

That's actually not how bin: dependencies work; bin: dependencies match the binary name only, not its path. But it is how path: dependencies work, so that's what you should use. Note that if the path begins with "${prefix}/" then you can omit that part. So if you're trying to allow multiple lua ports to satisfy the dependency then you should write:

depends_lib-append path:bin/lua:lua

However see also:

https://trac.macports.org/ticket/32590#comment:4



More information about the macports-dev mailing list