I've changed the lirc 0.7.0 ebuild to respect the debug use flag. I'll attach my new ebuild and a diff.
Created attachment 44435 [details] lirc-0.7.0.ebuild
Created attachment 44436 [details, diff] lirc-0.7.0.ebuild-patch
thankyou -added as requested.