(1) build package
#quickpkg mysql
- This will build package from files on your system. If the package you wanna built are on the system already.
#emerge -b mysql
-the -b(--buildpkg) option tell emerge to do additional task when installing package to the system.
*In this case(mysql), the prebuilt package will be available in /usr/portage/packages/dev-db/ directory.
(2) use prebuilt package
Place the prebuilt package in appropriate directory, in this case : /usr/portage/packages/dev-db/
#emerge --usepkgonly mysql
For more information please consult the man page :
#man emerge
#man quickpkg
#man make.conf