Date: Mon, 11 Jul 2022 09:59:52 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: driesm@freebsd.org Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: Rust port: CARGO_CRATES in a file Message-ID: <CAFDf7ULy6vx4B-oJmdpHV6jfqG4Egjhn5NzD7qJ13n_LFpkHZg@mail.gmail.com> In-Reply-To: <004e01d894fb$94908130$bdb18390$@FreeBSD.org> References: <CAFDf7UJ_ZO7LMewCeH_YoUobpo=D3XrDKKPf1BCMngBhUDUwSA@mail.gmail.com> <004e01d894fb$94908130$bdb18390$@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000167c4305e383c72d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Dries! Thanks for the tip: Makefile.crates as defined in Mk/Uses/cargo.mk Cheers <driesm@freebsd.org> escreveu no dia segunda, 11/07/2022 =C3=A0(s) 08:55: > > > *From:* owner-freebsd-ports@freebsd.org <owner-freebsd-ports@freebsd.org>= *On > Behalf Of *Nuno Teixeira > *Sent:* Monday, 11 July 2022 09:19 > *To:* FreeBSD Mailing List <freebsd-ports@freebsd.org> > *Subject:* Rust port: CARGO_CRATES in a file > > > > Hello, > > > > I'm looking for the correct way of using CARGO_CRATES list in a file > instead of Makefile. > > I've found an example in www/so port: > > --- > > USES=3D cargo ssl > > ... > > .include "${.CURDIR}/bsd.so.mk" > > --- > > where bsd.so.mk is the CARGO_CRATES file list. > > What you think about it? IMO a CARGO_CRATES file is good when we have a > big list. > > CARGO_CRATES_FILE will be very nice option. > > > > Hi Eduardo! > > This is an example of using Makefile.crates: librespot =C2=AB multimedia = - > ports - FreeBSD ports tree > <https://cgit.freebsd.org/ports/tree/multimedia/librespot> > > This file name is actually defined in bsd.mk or uses=3Dcargo, I can=E2=80= =99t > remember. Nothing extra needs to be done to use it. > > Regards Dries > > > > Thanks, > > > > Nuno Teixeira > --000000000000167c4305e383c72d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>Hello Dries!<br><br></div>Thanks for the tip: Ma= kefile.crates as defined in Mk/Uses/<a href=3D"http://cargo.mk">cargo.mk</a= ><br><br></div>Cheers<br></div><br><div class=3D"gmail_quote"><div dir=3D"l= tr" class=3D"gmail_attr"><<a href=3D"mailto:driesm@freebsd.org">driesm@f= reebsd.org</a>> escreveu no dia segunda, 11/07/2022 =C3=A0(s) 08:55:<br>= </div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex"><div style=3D"overf= low-wrap: break-word;" lang=3D"NL-BE"><div class=3D"gmail-m_-45077862921048= 44525WordSection1"><p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2= =A0<u></u></span></p><div style=3D"border-color:currentcolor currentcolor c= urrentcolor blue;border-style:none none none solid;border-width:medium medi= um medium 1.5pt;padding:0cm 0cm 0cm 4pt"><div><div style=3D"border-color:rg= b(225,225,225) currentcolor currentcolor;border-style:solid none none;borde= r-width:1pt medium medium;padding:3pt 0cm 0cm"><p class=3D"MsoNormal"><b><s= pan lang=3D"EN-US">From:</span></b><span lang=3D"EN-US"> <a href=3D"mailto:= owner-freebsd-ports@freebsd.org" target=3D"_blank">owner-freebsd-ports@free= bsd.org</a> <<a href=3D"mailto:owner-freebsd-ports@freebsd.org" target= =3D"_blank">owner-freebsd-ports@freebsd.org</a>> <b>On Behalf Of </b>Nun= o Teixeira<br><b>Sent:</b> Monday, 11 July 2022 09:19<br><b>To:</b> FreeBSD= Mailing List <<a href=3D"mailto:freebsd-ports@freebsd.org" target=3D"_b= lank">freebsd-ports@freebsd.org</a>><br><b>Subject:</b> Rust port: CARGO= _CRATES in a file<u></u><u></u></span></p></div></div><p class=3D"MsoNormal= "><u></u>=C2=A0<u></u></p><div><div><p class=3D"MsoNormal">Hello,<u></u><u>= </u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><di= v><p class=3D"MsoNormal" style=3D"margin-bottom:12pt">I'm looking for t= he correct way of using CARGO_CRATES list in a file instead of Makefile.<u>= </u><u></u></p></div><div><p class=3D"MsoNormal">I've found an example = in www/so port:<u></u><u></u></p></div><div><p class=3D"MsoNormal">---<u></= u><u></u></p></div><div><p class=3D"MsoNormal">USES=3D =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 cargo ssl<u></u><u></u></p></div><div><p class=3D"MsoNormal"= >...<u></u><u></u></p></div><div><p class=3D"MsoNormal">.include "${.C= URDIR}/<a href=3D"http://bsd.so.mk" target=3D"_blank">bsd.so.mk</a>"<u= ></u><u></u></p></div><div><p class=3D"MsoNormal">---<u></u><u></u></p></di= v><div><p class=3D"MsoNormal" style=3D"margin-bottom:12pt">where <a href=3D= "http://bsd.so.mk" target=3D"_blank">bsd.so.mk</a> is the CARGO_CRATES file= list.<u></u><u></u></p></div><div><p class=3D"MsoNormal">What you think ab= out it? IMO a CARGO_CRATES file is good when we have a big list.<u></u><u><= /u></p></div><div><p class=3D"MsoNormal" style=3D"margin-bottom:12pt">CARGO= _CRATES_FILE will be very nice option.<u></u><u></u></p><p class=3D"MsoNorm= al" style=3D"margin-bottom:12pt"><span lang=3D"en-BE"><u></u>=C2=A0<u></u><= /span></p><p class=3D"MsoNormal" style=3D"margin-bottom:12pt"><span lang=3D= "en-BE">Hi Eduardo!<u></u><u></u></span></p><p class=3D"MsoNormal" style=3D= "margin-bottom:12pt"><span lang=3D"en-BE">This is an example of using Makef= ile.crates: </span><a href=3D"https://cgit.freebsd.org/ports/tree/multimedi= a/librespot" target=3D"_blank"><span lang=3D"EN-US">librespot =C2=AB multim= edia - ports - FreeBSD ports tree</span></a><span lang=3D"EN-US"><u></u><u>= </u></span></p><p class=3D"MsoNormal" style=3D"margin-bottom:12pt"><span la= ng=3D"en-BE">This file name is actually defined in <a href=3D"http://bsd.mk= " target=3D"_blank">bsd.mk</a> or uses=3Dcargo, I can=E2=80=99t remember. N= othing extra needs to be done to use it.<u></u><u></u></span></p><p class= =3D"MsoNormal" style=3D"margin-bottom:12pt"><span lang=3D"en-BE">Regards Dr= ies<u></u><u></u></span></p><p class=3D"MsoNormal" style=3D"margin-bottom:1= 2pt"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p></div><div><p clas= s=3D"MsoNormal">Thanks,<u></u><u></u></p></div><div><p class=3D"MsoNormal">= <u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Nuno Teixeira<u><= /u><u></u></p></div></div></div></div></div></blockquote></div> --000000000000167c4305e383c72d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULy6vx4B-oJmdpHV6jfqG4Egjhn5NzD7qJ13n_LFpkHZg>