How do I convert manpages/info files to EPUB?

Perhaps the simplest solution would be to use Github manbook. It contains two programs:

The manbook command can be used to produce an eBook from one or more man pages.

mktoc produces table-of-content files, suitable for MOBI files (Kindle, etc) from the HTML files in a directory.