Wine is going to add support for epoll instead of poll (actually it will have both, but if epoll is present is preferred againt poll, because it's faster), there's for now a beta patch which I'm using, but to build wine with epoll stuff turned on I needed the libepoll, for which I wrote the attached ebuild.
It depends on netbsd's pmake because it uses mkdep command.
Steps to Reproduce:
Created attachment 39384 [details]
Created attachment 42478 [details]
cleaned up ebuild
Created attachment 42479 [details, diff]
fix parallel builds/cflags/etc... with makefile
glibc (if built with 2.6 support) includes epoll