Modify the documentation example for staging.
This commit is contained in:
parent
4d1449b239
commit
a4948a4701
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43054
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue