Bug 134195 - app-text/xmlto: add support for getopt-long command
Bug#: 134195 Product:  Gentoo/Alt Version: unspecified Platform: All
OS/Version: FreeBSD Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: text-markup@gentoo.org Reported By: flameeyes@gentoo.org
Component: FreeBSD
URL: 
Summary: app-text/xmlto: add support for getopt-long command
Keywords:  
Status Whiteboard: 
Opened: 2006-05-24 04:56 0000
Description:   Opened: 2006-05-24 04:56 0000
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

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-05-24 04:56:30 0000 -------
Created an attachment (id=87382) [details]
Ebuild patch

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2006-05-24 11:40:17 0000 -------
Forgot to close.