User:Orion/x11 overlay
From Gentoo Linux Wiki
Warning: This will overwrite all your stable xorg installation! Since these packages may be very unstable, you may want to first have a backup of your system in case the new X doesn't work at all and you want to revert back.
You should first have app-portage/layman and dev-util/git installed.
emerge app-portage/layman dev-util/git
Then install the x11 overlay:
layman -f -a x11
Edit make.conf, following "emerge layman" instructions:
File: /etc/make.conf
... source /usr/portage/local/layman/make.conf
If you want to use all the xorg repository packages, run the following commands as root to unmask them:
cp /usr/portage/local/layman/x11/profiles/package.mask /etc/portage/package.unmask/xorg-scm
cat /usr/portage/local/layman/x11/profiles/package.mask | grep -v '^#|^$' | awk '{print $0, "~amd64"}' >/etc/portage/package.keywords/xorg-scm
The next one is optional and enables the debug use flag:
cat /usr/portage/local/layman/x11/profiles/package.mask | grep -v '^#|^$' | awk '{print $0, "debug"}' >/etc/portage/package.use/xorg-scm
For the above to be useful you need to have the nostrip feature enabled:
File: /etc/make.conf
... FEATURES="sandbox parallel-fetch nostrip" ...
emerge --pretend --verbose --deep =x11-base/xorg-x11-9999
Note: Make sure libpthread-stubs is installed or emerge above pulls it, or else libdrm will fail to build. Also you may have to use x11-libs/libXaw-1.0.5 instead of the 9999 version, if packages like xclock fail to build.
TODO: Find a way to put all the x11-scm stack on a separete dir, like /opt/xorg-scm.