Date: Fri, 23 Mar 2012 22:27:09 +0000 From: Chris Rees <crees@freebsd.org> To: Michael Scheidell <scheidell@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: Re: How useful is %%DATADIR%%, anyway? Message-ID: <CADLo83_d=iKCobid_HoD7OT5bZAGvaKJxThjxm%2B2Xw%2BMcyGqvA@mail.gmail.com> In-Reply-To: <4F6CE755.8020502@FreeBSD.org> References: <CADLo839cUtxHJNqYQtvaFSp9Jjg21Hsn0U7xiOS9JuGmkhETmg@mail.gmail.com> <4F6CE755.8020502@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 23 March 2012 21:12, Michael Scheidell <scheidell@freebsd.org> wrote: > > > On 3/23/12 4:14 PM, Chris Rees wrote: >> >> Hi all, >> >> >> >> Just as a thought, I decided to try stripping out all mentions of >> %%DATADIR%%, %%DOCSDIR%% etc from pkg-plist, and replacing them with >> PORTDOCS=3D*, PORTDATA=3D* in the Makefiles etc. > > Don't forget EXAMPLESDOC! PORTEXAMPLES ;) > >> I propose modifying the Porter's Handbook to discourage use of >> %%PORTDOCS%% etc in static plists, and encourage the use of PORTDOCS > > > want to take a stab at this one? > > <*http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/165820> > > you are saying that instead of > * > > +%%PORTDOCS%%%%DOCSDIR%% in the plist, this one, you could basically > eliminate plist-file (save 2k on the disk?) > and put them in PLIST_FILES in Makefile. Almost. PORTDOCS=3D* in the Makefile basically uses find on ${DOCSDIR} and sticks it into TMPPLIST. The advantage is that we then have one line in the Makefile instead of up to 2000 in pkg-plist. > what if the 'docs' are in a strange place? =A0like this port? > how would this port be fixed? Force the port to install docs to the correct place, as per hier :) Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_d=iKCobid_HoD7OT5bZAGvaKJxThjxm%2B2Xw%2BMcyGqvA>