On Tue, Aug 14, 2018 at 11:33 PM Mathieu Arnold <m...@freebsd.org> wrote:

> On Tue, Aug 14, 2018 at 10:41:43PM +0800, blubee blubeeme wrote:
> > This one is fairly straight forward, you can simply replace that string
> > with a regex command;
> > This is an example of running a replace command for strings after the
> patch
> > phase of the build;
> >
> > post-patch:
> >       @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README
>
> Patching files in post-patch using sed SHOULD only be used to replace
> dynamic content, never static content.
>
This is missing the point of the email since you can call that command in
any stage of the port build process.

Maybe we could append this info to the porters handbook.

>
> --
> Mathieu Arnold
>
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to