[118513] trunk/dports/devel/dbus

Clemens Lang cal at macports.org
Thu Apr 3 15:22:05 PDT 2014


> I see your point.
> I would be happy to remove it if such warnings are distracting and/or
> unhelpful.

You don't have to take my word for it:

> Does
>            if {[variant_isset startupitem]}
> ever return true if there is NO
>            variant startupitem {
> ?

Yes, it does:

$> cat Portfile
PortSystem          1.0

name                PortName
version             PortVersion
maintainers         MaintainerHandle

categories          Categories
description         Description
long_description    LongDescription

platforms           Platforms

homepage            Homepage

if {[variant_isset foobar]} {
    ui_msg "+foobar!"

$> port variants +foobar
PortName has the variants:
   universal: Build for multiple architectures

I actually think this is a mis-feature, but it's not trivially solvable
and I haven't thought of a good solution I'd implement yet.

Clemens Lang

More information about the macports-dev mailing list