Modify the documentation example for staging.

This commit is contained in:
Eitan Adler 2013-10-28 19:13:05 +00:00
parent 4d1449b239
commit a4948a4701
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43054

View file

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