[100449] users/raimue/ports/sysutils/collectd

Clemens Lang cal at macports.org
Thu Dec 13 02:31:20 PST 2012


On Wed, Dec 12, 2012 at 07:01:45PM +0100, Rainer Müller wrote:
> This is the code that was originally written by Clemens, so probably
> he can clarify this. I guess it is written this way to avoid adding a
> dependency twice.

Yes, exactly.

On Wed, Dec 12, 2012 at 02:07:39PM -0600, Ryan Schmidt wrote:
> If feeling pedantic, one could do e.g.:
> 
> if {[variant_isset rrdtool] || [variant_isset rrdcached]} {
>     depends_lib-append port:rrdtool
> }

That's however harder to auto-generate, and that part of the Portfile is
autogenerated from a script in files/.

Tbh, I was surprised base didn't filter duplicate dependencies.
-- 
Clemens Lang



More information about the macports-dev mailing list