Github macportsbot not running

2020-04-28 Thread Chris Jones
Hi,

Looks like the macportsbot has stopped running again , as The latest MRs are no 
longer being labelled. Could someone kick it back into life ;)

Chris


Re: macports localinstall github tries to download from macports

2020-04-28 Thread macports

> On 2020-04-28, at 06:02, Ryan Schmidt  wrote:
> 
> 
> 
> On Apr 27, 2020, at 14:15, macpo...@parvis.nl  
> wrote:
> 
>> i’m trying to do a macports localinstall portgroup github for downtimed but 
>> it downloads from macports.org , not github.com 
>> .
> 
> It attempts to download from all locations, including GitHub and the MacPorts 
> mirrors. The file isn't on any of them because you've specified the wrong 
> values to github.setup.
> 
> 
>> what is wrong here?
>> 
>> homepage: https://github.com/snabb/downtimed/releases
>> download: https://github.com/snabb/downtimed/archive/version-1.0.tar.gz
>> 
>> portfile:
>> 
>> PortSystem  1.0
>> PortGroup   github 1.0
>> github.setupsnabb downtimed 1.0
>> github.tarball_from archive
>> 
>> categories  sysutils
>> platforms   darwin
>> maintainers nomaintainer
>> 
>> description dateutils package
>> long_descriptionsystem downtime monitoring and reporting tool
>> 
>> checksums   rmd160  c168c31792c584054f3edd7cea14fe951604a76b \
>>   sha256  
>> 00eb87d54b170e514c1d321c839bb2a7dd9ee3721bd08b96c91cda7f95e5e099 \
>>   size300337

Ken Cunningham told me to look at port distfiles (never thought of that).
the genarated url would be 
https://github.com/snabb/downtimed/archive/1.0/downtimed-1.0.tar.gz 
 and that 
would cause the 404
he told me to remove github.tarball_from archive, but that failed too.
i should look into /opt/macports-ports/_resources/port1.0/group/github-1.0.tcl

Ryan Schmidt said:

> You want:
> 
> github.setupsnabb downtimed 1.0 version-
> github.tarball_from archive

but that results in 
https://github.com/snabb/downtimed/archive/version-1.0/downtimed-1.0.tar.gz 
(the version number in 2 places).

i tried some variants of distname and tried

github.setupsnabb downtimed 1.0
distnameversion-${version}
master_sites${homepage}/archive

and that works. it this acceptable?

> P.S: Since your question is about developing a portfile, it would have been 
> more appropriate to ask it on the macports-dev mailing list.

done.



Re: Looking for help with kustomize port (Go)

2020-04-28 Thread Nils Breunese
> Op 28 apr. 2020 om 06:30 heeft Ryan Schmidt  het 
> volgende geschreven:
> 
>> On Apr 27, 2020, at 09:46, Nils Breunese wrote:
>> 
>> I couldn’t figure out how to make MacPorts do the equivalent of ‘cd 
>> kustomize’ after unpacking the archive 
> 
> Perhaps you want:
> 
> build.dir${worksrcpath}/kustomize

Thanks, that was indeed also suggested to me via GitHub and turned out to work. 
I was previously trying to override worksrcpath itself (I remember going 
through the Docs for the build.* settings, but managed to miss this one 
apparently). I’ve got some Go-specific ldflags left to fix, but at least it 
builds and runs now.

Nils.