Date: Mon, 11 Jul 2022 09:55:25 +0200 From: <driesm@FreeBSD.org> To: "'Nuno Teixeira'" <eduardo@freebsd.org>, "'FreeBSD Mailing List'" <freebsd-ports@freebsd.org> Subject: RE: Rust port: CARGO_CRATES in a file Message-ID: <004e01d894fb$94908130$bdb18390$@FreeBSD.org> In-Reply-To: <CAFDf7UJ_ZO7LMewCeH_YoUobpo=D3XrDKKPf1BCMngBhUDUwSA@mail.gmail.com> References: <CAFDf7UJ_ZO7LMewCeH_YoUobpo=D3XrDKKPf1BCMngBhUDUwSA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart message in MIME format. ------=_NextPart_000_004F_01D8950C.581A1480 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =20 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 =20 Hello, =20 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 <http://bsd.so.mk> " --- where bsd.so.mk <http://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. =20 Hi Eduardo! This is an example of using Makefile.crates: = <https://cgit.freebsd.org/ports/tree/multimedia/librespot> librespot = =C2=AB multimedia - ports - FreeBSD ports tree 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 =20 Thanks, =20 Nuno Teixeira ------=_NextPart_000_004F_01D8950C.581A1480 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta = http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta = name=3DGenerator content=3D"Microsoft Word 15 (filtered = medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DNL-BE link=3Dblue = vlink=3Dpurple style=3D'word-wrap:break-word'><div = class=3DWordSection1><p class=3DMsoNormal><span lang=3DEN-US = style=3D'mso-fareast-language:EN-US'><o:p> </o:p></span></p><div = style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm = 4.0pt'><div><div style=3D'border:none;border-top:solid #E1E1E1 = 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=3DMsoNormal><b><span = lang=3DEN-US>From:</span></b><span lang=3DEN-US> = owner-freebsd-ports@freebsd.org <owner-freebsd-ports@freebsd.org> = <b>On Behalf Of </b>Nuno Teixeira<br><b>Sent:</b> Monday, 11 July 2022 = 09:19<br><b>To:</b> FreeBSD Mailing List = <freebsd-ports@freebsd.org><br><b>Subject:</b> Rust port: = CARGO_CRATES in a file<o:p></o:p></span></p></div></div><p = class=3DMsoNormal><o:p> </o:p></p><div><div><p = class=3DMsoNormal>Hello,<o:p></o:p></p></div><div><p = class=3DMsoNormal><o:p> </o:p></p></div><div><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'>I'm looking for the correct way of using = CARGO_CRATES list in a file instead of = Makefile.<o:p></o:p></p></div><div><p class=3DMsoNormal>I've found an = example in www/so port:<o:p></o:p></p></div><div><p = class=3DMsoNormal>---<o:p></o:p></p></div><div><p = class=3DMsoNormal>USES=3D cargo = ssl<o:p></o:p></p></div><div><p = class=3DMsoNormal>...<o:p></o:p></p></div><div><p = class=3DMsoNormal>.include "${.CURDIR}/<a = href=3D"http://bsd.so.mk">bsd.so.mk</a>"<o:p></o:p></p></div><div><p= class=3DMsoNormal>---<o:p></o:p></p></div><div><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'>where <a = href=3D"http://bsd.so.mk">bsd.so.mk</a> is the CARGO_CRATES file = list.<o:p></o:p></p></div><div><p class=3DMsoNormal>What you think about = it? IMO a CARGO_CRATES file is good when we have a big = list.<o:p></o:p></p></div><div><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'>CARGO_CRATES_FILE will be very nice = option.<o:p></o:p></p><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><span = lang=3Den-BE><o:p> </o:p></span></p><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><span lang=3Den-BE>Hi = Eduardo!<o:p></o:p></span></p><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><span lang=3Den-BE>This is an example of = using Makefile.crates: </span><a = href=3D"https://cgit.freebsd.org/ports/tree/multimedia/librespot"><span = lang=3DEN-US>librespot =C2=AB multimedia - ports - FreeBSD ports = tree</span></a><span lang=3DEN-US><o:p></o:p></span></p><p = class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span lang=3Den-BE>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.<o:p></o:p></span></p><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><span lang=3Den-BE>Regards = Dries<o:p></o:p></span></p><p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><span = lang=3DEN-US><o:p> </o:p></span></p></div><div><p = class=3DMsoNormal>Thanks,<o:p></o:p></p></div><div><p = class=3DMsoNormal><o:p> </o:p></p></div><div><p = class=3DMsoNormal>Nuno = Teixeira<o:p></o:p></p></div></div></div></div></body></html> ------=_NextPart_000_004F_01D8950C.581A1480--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004e01d894fb$94908130$bdb18390$>