Re: bsd.port.mk: provide GH_DISTFILE

2021-11-14 Thread Greg Steuck
Stuart Henderson writes: > We have a few ports that use GH_* and have a second distfile, so have to > build up their own DISTFILES. Where that uses GH_TAGNAME it's not too bad > but the ones with GH_COMMIT are a bit horrible: > > $ ag -G Makef ^DISTF.*GH_COMMIT > devel/cabal-bundler/Makefile >

Re: bsd.port.mk: provide GH_DISTFILE

2021-11-14 Thread Marc Espie
On Sun, Nov 14, 2021 at 02:37:34PM +, Stuart Henderson wrote: > On 2021/11/14 13:56, Marc Espie wrote: > > On Sat, Nov 13, 2021 at 11:31:57AM +, Stuart Henderson wrote: > > > We have a few ports that use GH_* and have a second distfile, so have to > > > build up their own DISTFILES. Where

Re: bsd.port.mk: provide GH_DISTFILE

2021-11-14 Thread Stuart Henderson
On 2021/11/14 13:56, Marc Espie wrote: > On Sat, Nov 13, 2021 at 11:31:57AM +, Stuart Henderson wrote: > > We have a few ports that use GH_* and have a second distfile, so have to > > build up their own DISTFILES. Where that uses GH_TAGNAME it's not too bad > > but the ones with GH_COMMIT are

Re: bsd.port.mk: provide GH_DISTFILE

2021-11-14 Thread Marc Espie
On Sat, Nov 13, 2021 at 11:31:57AM +, Stuart Henderson wrote: > We have a few ports that use GH_* and have a second distfile, so have to > build up their own DISTFILES. Where that uses GH_TAGNAME it's not too bad > but the ones with GH_COMMIT are a bit horrible: > > $ ag -G Makef

Re: bsd.port.mk: provide GH_DISTFILE

2021-11-13 Thread Klemens Nanni
On Sat, Nov 13, 2021 at 12:03:55PM +, Stuart Henderson wrote: > I think I see what you mean. GH_TAGNAME doesn't normally set DISTFILES > directly, only DISTNAME (which normal ports infrastructure turns into > DISTFILES by adding EXTRACT_SUFX). So using GH_DISTFILE to build up > that name

Re: bsd.port.mk: provide GH_DISTFILE

2021-11-13 Thread Stuart Henderson
On 2021/11/13 11:48, Klemens Nanni wrote: > On Sat, Nov 13, 2021 at 11:31:57AM +, Stuart Henderson wrote: > > We have a few ports that use GH_* and have a second distfile, so have to > > build up their own DISTFILES. Where that uses GH_TAGNAME it's not too bad > > but the ones with GH_COMMIT

Re: bsd.port.mk: provide GH_DISTFILE

2021-11-13 Thread Klemens Nanni
On Sat, Nov 13, 2021 at 11:31:57AM +, Stuart Henderson wrote: > We have a few ports that use GH_* and have a second distfile, so have to > build up their own DISTFILES. Where that uses GH_TAGNAME it's not too bad > but the ones with GH_COMMIT are a bit horrible: > > $ ag -G Makef

bsd.port.mk: provide GH_DISTFILE

2021-11-13 Thread Stuart Henderson
We have a few ports that use GH_* and have a second distfile, so have to build up their own DISTFILES. Where that uses GH_TAGNAME it's not too bad but the ones with GH_COMMIT are a bit horrible: $ ag -G Makef ^DISTF.*GH_COMMIT devel/cabal-bundler/Makefile 13:DISTFILES =