Translations:Basic guide to write Gentoo Ebuilds/28/en
From Gentoo Wiki
A patch can be created from the unpacked source code as explained in the Creating a patch article. Patches should then be put in the files directory and be listed in an array called PATCHES as explained in the devmanual: