How useful is %%DATADIR%%, anyway?
Chris Rees
crees at freebsd.org
Fri Mar 23 22:27:41 UTC 2012
On 23 March 2012 21:12, Michael Scheidell <scheidell at 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=*, PORTDATA=* 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=ports/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=* 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? like this port?
> how would this port be fixed?
Force the port to install docs to the correct place, as per hier :)
Chris
More information about the freebsd-ports
mailing list