Simplest is probably to use .if defined. DISTNAME is defined for GH_* around line 620 in bsd.port.mk, MODULES files are included much earlier.

I didn't run into this when I tested the ksnip submission though?

--
 Sent from a phone, apologies for poor formatting.
On 28 January 2021 05:59:50 Rafael Sadowski <raf...@sizeofvoid.org> wrote:

Hi porters,

in ports that use the kf5 module and have only set GH_*, I get the
following message.

For example:

GH_ACCOUNT = ksnip
GH_PROJECT = ksnip
GH_TAGNAME = v1.8.0

MODULES = devel/kf5

$ make configure
*** Parse error in /usr/ports/graphics/ksnip: Malformed conditional (${DISTNAME:Nextra-cmake-modules-*}) (/usr/ports/devel/kf5/kf5.port.mk:9) *** Parse error: Missing dependency operator (/usr/ports/devel/kf5/kf5.port.mk:9)

Is DISTNAME perhaps not set at that point? Any idea how to fix it
cleanly? This check is important for the module, of course.

Cheers,

Rafael

Reply via email to