| 141 | |
| 142 | == Installing additional documentation files == #doc |
| 143 | |
| 144 | Many ports come with documentation files, like "README" and "ChangeLog", which are part of the source but not installed anywhere. If these files are of value to the end user, they should be installed by the port in the post-destroot phase. (Files such as "INSTALL", which contain only installation instructions, are not of value to the end user and should not be installed.) |
| 145 | |
| 146 | {{{ |
| 147 | post-destroot { |
| 148 | set docdir ${destroot}${prefix}/share/doc/${name} |
| 149 | xinstall -d ${docdir} |
| 150 | xinstall -m 644 -W ${worksrcpath} \ |
| 151 | AUTHORS \ |
| 152 | COPYING \ |
| 153 | NEWS \ |
| 154 | README \ |
| 155 | ${docdir} |
| 156 | } |
| 157 | }}} |
| 158 | |
| 159 | This example is taken from [browser:trunk/dports/www/spawn-fcgi/Portfile spawn-fcgi]. |
| 160 | |
| 161 | Note: Ensure you use the correct capitalization for each filename. For example, many projects typically use all-caps for most of the documentation files, except for ChangeLog, which is often written in camel-case. If you fail to use the correct capitalization, the port may still install on your system, but will fail for users with case-sensitive filesystems. |