On Mon, Apr 29, 2013 at 4:29 AM, Giorgos Keramidas
<
kera...@ceid.upatras.gr> wrote:
> Why don't we want the docs installed by FreeBSD ports? So that the
> ports machinery can do the installation itself, using MAN= or similar
> options in the port Makefile?
>
> I'm mostly interested to find out why we don't want the docs, because
> other ports *do* install their documentation. For example mail/mutt
> installs the manual of mutt, and the manpages of mutt, and so on.
My uninformed understanding is that ports want to provide "just" an
option to not install docs and examples... possibly to save some space
and, particularly, to cut down build times.
If I have to guess even further, I'd say that such options were
originally provided _only_ in packages where building the docs
required some heavyweight tools (gtkdoc, jade, ...) and/or where
building the examples required some additional dependencies. Having an
option to not install these results in less dependencies, and
therefore in a faster build. As a result of this, some other packagers
adopted the options even when it made no sense to do so in their own
packages -- i.e. where the docs and examples required no additional
dependencies. Or that's what I've seen happen in pkgsrc.
This is also similar to how some Linux distributions split the
documentation into -doc packages, but only when the docs are "huge" or
have a weird license.
Based on this, my take on the request is: in the case of Kyua, none of
the above are true. Neither the documentation nor the examples
require additional dependencies; therefore, cutting them out of the
build provides no advantage. Providing an option to disable their
build is just boilerplate in configure and the Makefiles for the only
benefit of ports. Even more: ports, as part of its infrastructure,
should have a way to _not_ install these files if the packager wants
to do so, without requiring the addition of unnecessary hacks to the
upstream packages.
For example, in pkgsrc this is as easy as issuing "rm -rf
${DESTDIR}${PREFIX}/path/to/unwanted/stuff" right after the
installation, so that the files don't end up in the binary package. Or
in Fedora, you'd specify %{_docdir}/.../ in a different -doc
subpackage to keep them outside of the main binary package. None of
these require changes to configure nor the Makefiles. It should be
possible to do the same thing in ports.
--
Julio Merino / @jmmv