xmlto is a bash script that requires a getopt(1) command that supports GNU
style long options. As FreeBSD (and probably other BSDs, too) doesn't provide
that command, I've added to portage app-misc/getopt package that provides a
getopt-long replacement for FreeBSD and other platforms.
The attached patch adds a || dependency on util-linux or getopt, so that it can
be used without util-linux (that as the name states it's linux sepecific), and
if util-linux is not used (so getopt is used), it passes a
--with-getopt=getopt-long at command line to allow xmlto to work correctly.
Tested with both xmlto's manpage and unieject's.
Tĥanks,
Diego