On Sat, Jan 22, 2022 at 02:24:51AM +0100, Marc Espie wrote:
> Or we can automate this with something like this:

I didn't try this, but it seems OK to me.  I'll leave the final OK to
sthen though as I would think it most likely to break things for him.

(AFAIU new versions are not supposed to cause breakage though)
 
> Index: perl.port.mk
> ===================================================================
> RCS file: /cvs/ports/infrastructure/mk/perl.port.mk,v
> retrieving revision 1.32
> diff -u -p -r1.32 perl.port.mk
> --- perl.port.mk      12 Dec 2021 19:25:39 -0000      1.32
> +++ perl.port.mk      21 Jan 2022 17:39:18 -0000
> @@ -56,6 +56,11 @@ MODPERL_pre-configure = for f in ${MODPE
>       ${MODPERL_BIN_ADJ} ${WRKSRC}/$${f}; done
>  .endif
>  
> +MODPERL_gen = cd ${WRKDIST} && \
> +     if test -f ppport.h; then \
> +             perl  -MDevel::PPPort -e'Devel::PPPort::WriteFile'; \
> +     fi
> +
>  .if ${CONFIGURE_STYLE:L:Mmodbuild}
>  MODPERL_configure = \
>      cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} \

Reply via email to