Le Thu, Sep 14, 2023 at 12:31:34PM +0200, Sebastien Marie a écrit :
> Hi,
> 
> When trying to add codeberg to DIST_TUPLE stuff, I had a problem with the 
> name 
> used to extract the downloaded tarball.
> 
> codeberg.org is using the following scheme:
>   the downloaded file is at: 
> https://codeberg.org/<account>/<project>/archive/<id>.tar.gz
>   the tarball extracts at ${WRKDIR}/<project>/ (and not 
> ${WRKDIR}/<project>-<tag>/ as expected by DIST_TUPLE)
> 
> So I customized a bit dist-tuple.port.mk to be able to use a template for 
> this name.
> 
> The variable is named TEMPLATE_WRKSRC.x (using WRKSRC for the similarity with 
> a 
> port with only one distfile). But I am unsure about the name.
> 
> The following patch adds the machinery (and the doc) for using 
> TEMPLATE_WRKSRC., 
> and adds also codeberg in templates.
> 
> I tested several github ports which differents schemes, but more testing will 
> be 
> appreciate.

it works fine with my two wip ports (attached) of commits from codeberg, but i 
had
to set WRKDIR manually.

Landry

Attachment: irssi-matrix_3.tgz
Description: application/tar-gz

Reply via email to