Re: Add gitlab.com into bsd.sites.mk

2017-08-29 Thread Richard Gallamore
Just created a review[1] for the USE_GITLAB feature. If you would like
to test or provide feedback with another feature or perhaps something
that could have been done better it would be great to get feedback!

Best regards
Richard Gallamore


[1] https://reviews.freebsd.org/D12162
___
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"


Re: Add gitlab.com into bsd.sites.mk

2017-08-24 Thread Richard Gallamore
Mat and I were discussing it here[1] last week. Have been working
on a draft but have been taking my time to make sure it is perfect
being my first addition to the framework. Still have a ways to go
before it will be ready for review.

[1] https://reviews.freebsd.org/D12060

On 08/23/2017 23:49, Torsten Zuehlsdorff wrote:
>
>
> On 21.08.2017 16:48, Mathieu Arnold wrote:
>> Le 20/08/2017 à 23:16, Derek Schrock a écrit :
>>> On Sat, Aug 19, 2017 at 04:28:01PM EDT, L.Bartoletti wrote:
 Hello,

 I would suggest to add gitlab.com into bsd.sites.mk

 Since, I think I am not competent to propose a patch, I ask for help.

 I have ports to create where the sources are only available on GitLab.
 Like some other ports (audio/midi-matrix-lv2, audio/moony-lv2, etc.) I
 can fetch source using a direct link. But, it may be nice to have this
 possibility.

 As I can see, it can be similar (and maybe easier) than github.

 Archive can be dowload by this URL:
 https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/repository/${GL_TAGNAME}/archive.${EXTRACT_SUFX}


 ${EXTRACT_SUFX} can be zip, tar.gz, tar.bz2 and tar

 Is anyone already working on it or do you want to do it with me?
>>> Assuming gitlab remains API compatible with github.  I'm wondering if
>>> gitlab.com, github.com, and gitlab hosted site support can be merged
>>> into a single set of vars.
>>
>> You can stop here, because they are not compatible.  They do not differ
>> greatly, but enough. The gitlab API is akin to the previous github API
>> where the commit hash was required.
>> A USE_GITLAB is currently being worked on, though.
>
> Do you know who works on it? I didn't see anything like it, but it
> would be handy for me. Maybe i could help.
>
> Greetings,
> Torsten
> ___
> 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"



signature.asc
Description: OpenPGP digital signature


Re: Add gitlab.com into bsd.sites.mk

2017-08-24 Thread Torsten Zuehlsdorff



On 21.08.2017 16:48, Mathieu Arnold wrote:

Le 20/08/2017 à 23:16, Derek Schrock a écrit :

On Sat, Aug 19, 2017 at 04:28:01PM EDT, L.Bartoletti wrote:

Hello,

I would suggest to add gitlab.com into bsd.sites.mk

Since, I think I am not competent to propose a patch, I ask for help.

I have ports to create where the sources are only available on GitLab.
Like some other ports (audio/midi-matrix-lv2, audio/moony-lv2, etc.) I
can fetch source using a direct link. But, it may be nice to have this
possibility.

As I can see, it can be similar (and maybe easier) than github.

Archive can be dowload by this URL:
https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/repository/${GL_TAGNAME}/archive.${EXTRACT_SUFX}

${EXTRACT_SUFX} can be zip, tar.gz, tar.bz2 and tar

Is anyone already working on it or do you want to do it with me?

Assuming gitlab remains API compatible with github.  I'm wondering if
gitlab.com, github.com, and gitlab hosted site support can be merged
into a single set of vars.


You can stop here, because they are not compatible.  They do not differ
greatly, but enough. The gitlab API is akin to the previous github API
where the commit hash was required.
A USE_GITLAB is currently being worked on, though.


Do you know who works on it? I didn't see anything like it, but it would 
be handy for me. Maybe i could help.


Greetings,
Torsten
___
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"

Re: Add gitlab.com into bsd.sites.mk

2017-08-21 Thread Mathieu Arnold
Le 20/08/2017 à 23:16, Derek Schrock a écrit :
> On Sat, Aug 19, 2017 at 04:28:01PM EDT, L.Bartoletti wrote:
>> Hello,
>>
>> I would suggest to add gitlab.com into bsd.sites.mk
>>
>> Since, I think I am not competent to propose a patch, I ask for help.
>>
>> I have ports to create where the sources are only available on GitLab. 
>> Like some other ports (audio/midi-matrix-lv2, audio/moony-lv2, etc.) I 
>> can fetch source using a direct link. But, it may be nice to have this 
>> possibility.
>>
>> As I can see, it can be similar (and maybe easier) than github.
>>
>> Archive can be dowload by this URL:
>> https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/repository/${GL_TAGNAME}/archive.${EXTRACT_SUFX}
>>
>> ${EXTRACT_SUFX} can be zip, tar.gz, tar.bz2 and tar
>>
>> Is anyone already working on it or do you want to do it with me?
> Assuming gitlab remains API compatible with github.  I'm wondering if
> gitlab.com, github.com, and gitlab hosted site support can be merged
> into a single set of vars.

You can stop here, because they are not compatible.  They do not differ
greatly, but enough. The gitlab API is akin to the previous github API
where the commit hash was required.
A USE_GITLAB is currently being worked on, though.


-- 
Mathieu Arnold




signature.asc
Description: OpenPGP digital signature


Re: Add gitlab.com into bsd.sites.mk

2017-08-20 Thread Derek Schrock
On Sat, Aug 19, 2017 at 04:28:01PM EDT, L.Bartoletti wrote:
> Hello,
> 
> I would suggest to add gitlab.com into bsd.sites.mk
> 
> Since, I think I am not competent to propose a patch, I ask for help.
> 
> I have ports to create where the sources are only available on GitLab. 
> Like some other ports (audio/midi-matrix-lv2, audio/moony-lv2, etc.) I 
> can fetch source using a direct link. But, it may be nice to have this 
> possibility.
> 
> As I can see, it can be similar (and maybe easier) than github.
> 
> Archive can be dowload by this URL:
> https://gitlab.com/${GL_ACCOUNT}/${GL_PROJECT}/repository/${GL_TAGNAME}/archive.${EXTRACT_SUFX}
> 
> ${EXTRACT_SUFX} can be zip, tar.gz, tar.bz2 and tar
> 
> Is anyone already working on it or do you want to do it with me?

Assuming gitlab remains API compatible with github.  I'm wondering if
gitlab.com, github.com, and gitlab hosted site support can be merged
into a single set of vars.

The main difference between gitlab, gitlab hosted, and github.com would
be the domain and a set of master sites?  Everything else can be shared.

If you look at www/tt-rss we're using almost the same URL from above as
the master site. This is a gitlab hosted repo.

Having some type of control var to tell ports of the provider 
(github GH, gitlab.com GL, gitlab hosted GLH) would control the master
site values.

 ...
 USE_GITHUB=yes # Use github.com and set master sites according
 ...
 USE_GITLAB=yes # Use gitlab.com and set master sites according
 ...
 USE_GITLAB=example.com/path/to/base 
 ...# Use gitlab hosted use URLish as master site
 
Or a single var

 ...
 USE_GITHUB={yes|GH|GL|example.com/path/to/base}
 ...

If set ports would expect the same GH_* vars from the Porters handbook
Table 5.5 
___
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"