%%PORTSDIR%% and %%PORTDOCS%%

Lev Serebryakov lev at FreeBSD.org
Fri Dec 19 14:38:30 PST 2003


Hello, Joe!
Saturday, December 20, 2003, 1:24:40 AM, you wrote:

>>   Now, if port supports `NOPORTDOCS=yes' and installs documents ino
>> standard place, it need to have something like this in `pkg-plist':
>> %%PORTDOCS%%%%DOCSDIR%%/some-doc.html
>>   But why we need this?! May be, when NOPORTDOCS is set, define
>> DOCSDIR to @comment in substs? So, such cionstruction
>> %%DOCSDIR%%/some-doc.html
>>   Will work properly in any case!
JMC> But you would still need %%PORTDOSC%% for things such as:
JMC> %%PORTDOCS%%@dirrm %%DOCSDIR%%
  Yes, of course. I don't suggest to remove %%PORTDOCS%%

JMC> Plus, it's nice to have DOCSDIR defined even if PORTDOCS is not set.
  Yes, of course. To real directory path (share/doc/${PORTNAME} by
  default in substitutions).

--
               Lev Serebryakov



More information about the freebsd-ports mailing list