Hi! Please find attached wmacpi-1.99-r6.ebuild. The last version of x11-plugins/wmacpi in portage is 1.34; since then it has been picked up by Simon Fowler and almost entirely rewritten. 1.99-r6 is currently the latest version. In its previous incarnation, the ebuild included code and patches to build wmacpi for either apm or acpi; however in its current incarnation the option no longer seems to exist, so I have also removed code in the ebuild pertaining to that. Athul
Created attachment 37361 [details] wmacpi-1.99-r6.ebuild
In Portage. Tweaked your ebuild a little to honour Gentoo ebuild naming policy... Thank you for the submission!