diff --git a/en_US.ISO8859-1/books/porters-handbook/book.xml b/en_US.ISO8859-1/books/porters-handbook/book.xml index 1f71d40a0f..68d674e919 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.xml +++ b/en_US.ISO8859-1/books/porters-handbook/book.xml @@ -5117,15 +5117,13 @@ PORTVERSION= 1.0</programlisting> the same time, you can use the whole <makevar>PKGNAME</makevar>.</para> - <para>Make the installation dependent on the variable - <literal>DOCS</literal> option so that users can disable it - in <filename>/etc/make.conf</filename>, like this:</para> + <para>Since only the files listed in <filename>pkg-plist</filename> + are installed it is safe to always install + documentation to <makevar>STAGEDIR</makevar>.</para> <programlisting>post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/docs/xvdocs.ps ${DOCSDIR} -.endif</programlisting> + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/docs/xvdocs.ps ${STAGEDIR}${DOCSDIR}</programlisting> <para>Here are some handy variables and how they are expanded by default when used in the