http://bugs.winehq.org/show_bug.cgi?id=20770
--- Comment #7 from A.C.Heron acheron@front.ru 2009-11-20 12:36:49 ---
Sorry, never used gentoo portages.
That's fairly simple. Configuration is done in src_configure(), econf passes all switches to ./configure. Expressions like "$(use_with alsa)" become "--with-alsa" if "alsa" flag is set, or "--without-alsa" if not. Similarly "$(use_with ncurses curses)" becomes "--with-curses" or "--without-curses" depending on "ncurses" flag.
But looks like this time I only had to add "strip" to "RESTRICT" variable. Portage strippes everything, unless told otherwise.