On Thu, Sep 14, 2023 at 02:28:55PM +0200, Marc Espie wrote:

[...]

> > +.It Ev TEMPLATE_WRKSRC.<name>
> > +Template for automatically generated the name of the source
> > +directory extracted when using
> > +.Ev DIST_TUPLE .
> > +Very similar to
> > +.Ev TEMPLATE_DISTFILES.<name> .
> >  .It Ev TEST_DEPENDS
> >  See
> >  .Ev BUILD_DEPENDS
> > 
> We should also stop defining TEMPLATE_WRKSRC.sufx and EXTRACT_SUFX.sufx
> individually.
> 
> Setting it in the loop as
> EXTRACT_SUFX.${_template} ?= ${EXTRACT_SUF}
> and
> TEMPLATE_WRKSRC.${_template} ?= ${TEMPLATE_WRKSRC}
> 
> makes things more regular
> 
> (along with setting
> TEMPLATE_WRKSRC = ${WRKDIR}/<project>-<id>
> TEMPLATE_WRKSRC.codeberg = ${WRKDIR}/<project>
> )

I think that's the right approach.

Reply via email to