In this guide we shall be using the app-portage/auto-patch-portage package which is not part of the official Gentoo Linux distribution and is therefore not available on a vanilla installation. The Hacking Networked Solutions overlay for Gentoo Linux contains the app-portage/autopatch package and should therefore be installed before this guide can be followed.
Before we install any packages we should ensure that the correct use-flags will be used so that all required functionality is made available and unnecessary functionality is not included. The app-portage/auto-patch-portage package does not currently provide any use-flags however its dependencies may. As usual feel free to add and remove use-flags at will although the minimum set which are required for using this guide in its entirety are shown below.
Once you are confident that the correct use-flags are set for the app-portage/auto-patch-portage package, and any dependencies it may require, you can proceed with the installation by issuing the emerge command shown below.