On 2018/02/24 14:32, Svyatoslav Mishyn wrote:
> Hi,
> 
> (Sat, 24 Feb 10:10) Stuart Henderson:
> > On 2018/02/24 00:05, Stuart Cassoff wrote:
> > > Chiselapp is Fossil.
> > > I'm just starting to look into this and so far I can get what seems to be 
> > > a tarball from this very pretty url:
> > > 
> > > https://chiselapp.com/user/schelte/repository/dbus/tarball/dbus-92d71c1d63.tar.gz?uuid=92d71c1d639645ab73811e7edfd946d3e449ad695510ff6abfc1c9bff9a372c3
> > > 
> > > These two extensions are now on Chiselapp and I know there will be others.
> > > (most?) Tcler's prefer Chiselapp over GitHub.
> > > Maybe there's a way to fit this nicely into the ports system, like is 
> > > currently done with GitHub?
> > 
> > It works ok without the uuid parameter, I would try
> > 
> > MASTER_SITES=       
> > https://chiselapp.com/user/schelte/repository/dbus/tarball/
> > DISTNAME=   dbus-92d71c1d63
> 
> if without uuid, then default will be "trunk" branch.
> see: https://chiselapp.com/user/schelte/repository/dbus/help?cmd=/tarball
> 
> So, in that case DISTNAME should be "dbus-trunk".
> 
> 
> -- 
> https://www.juef.space/


Ah, in that case it probably does make sense to have some smarter handling.
Adding to tcl.port.mk is probably good for starters, then it could be moved
to bsd.port.mk if it becomes popular elsewhere.

Try playing with something like this ...

MASTER_SITES_CHISELAPP += \
    
https://chiselapp.com/user/${CHISEL_USER}/repository/${CHISEL_PROJECT}/tarball/

MASTER_SITES ?= ${MASTER_SITES_CHISELAPP}

DISTNAME ?= ${CHISEL_PROJECT}-${CHISEL_UUID:C/(..........).*/\1/}
DISTFILES ?= 
${DISTNAME}${EXTRACT_SUFX}{${DISTNAME}${EXTRACT_SUFX}?uuid=${CHISEL_UUID}}

Reply via email to