Date: Sat, 16 Nov 2013 11:41:02 -0800 From: Darren Pilgrim <list_freebsd@bluerosetech.com> To: Eitan Adler <lists@eitanadler.com> Cc: freebsd ports <freebsd-ports@freebsd.org> Subject: Re: Proposal for Authors / Vendors in ports Message-ID: <5287CA4E.3070104@bluerosetech.com> In-Reply-To: <CAF6rxgm1zsPG5YnFH8NjdOr5HzY=mPFjOx_mQnqL8WFvYCR=nQ@mail.gmail.com> References: <5283E4A0.6090107@pcbsd.org> <alpine.BSF.2.00.1311132124560.48376@fire.magemana.nl> <CAF6rxgmdewA=jtWL-8dyGrzSFTkxM2P8jWDYYcXr4BXOEdgx_w@mail.gmail.com> <20131114073008.GG90670@droso.dk> <9D6E2358-4750-41D5-9B8C-F638C8B1E351@xs4all.nl> <CAF6rxgkJzj7YbBEuxOhTdMmb0NwZsgN-08OuMacT2ad%2BP=wSuQ@mail.gmail.com> <5285CC00.6010800@FreeBSD.org> <5285DA85.3040008@freebsd.org> <alpine.BSF.2.00.1311161601010.97748@fire.magemana.nl> <CAF6rxgm1zsPG5YnFH8NjdOr5HzY=mPFjOx_mQnqL8WFvYCR=nQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/16/2013 8:25 AM, Eitan Adler wrote: > On Sat, Nov 16, 2013 at 10:19 AM, Melvyn Sopacua <melvyn@magemana.nl> wrote: >>> 2) If meta-information is moved to pkg-descr, it might be worthwhile >>> to add some knowledge about formats and restrictions to portlint. > > If we go this route I would *strongly* prefer that we do not invent > our own format. We should use an existing format. (I don't care > which one: YAML, JSON, ...) ? Which both require parsing libraries. We don't need that and neither does anything else that might want to read the ports tree and extract this information. This is easily implemented with simple keywords: We have "WWW:" in pkg-descr. So add "License:", "Vendor:", etc. to pkg-descr. That's parseable using the regex or literal matching built into every scripting language, most programming languages, and your average human. If you want to carry on about using an existing format, the above is CSV (character-separated values)--one of the most well-established and well-supported file formats in existence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5287CA4E.3070104>