Created attachment 326384 [details]
Patch to ebuild
I got quilt to work with app-misc/getopt on OS X. Patch to ebuild attached.
Instead of using an external package, we could use the internal perl implementation that comes with quilt, but the fact that this configuration issues a WARNING discourages me from doing so. And using a separate package where the code might be shared feels more reasonable.
Thanks, I've applied a patch similar to yours