From Amarok Wiki
Installation on Gentoo
(Current Versions: View the Gentoo package versions available in Portage)
On Gentoo it should be as simple as:
# emerge -av amarok
However it may be necessary to keyword Amarok to have the most recent version. But no worries - unlike some other software still in ~arch ,the dependencies of Amarok are themselves marked as stable. So just the following is necessary:
# echo 'media-sound/amarok' >> /etc/portage/package.keywords
Configure xine to play MP3s:
The default engine for Amarok is xine, and as such its supported types are controlled through the useflags for xine-lib.
- For xine-lib-1.1.2, set the "mp3" useflag.
- For xine-lib >= 1.1.3, MP3 support will always be present through FFMPEG, although the previously used MAD decoder can be employed instead by enabling the "mad" useflag.
See the Gentoo instructions on MP3 if Amarok says that the xine backend does not support MP3 playback.
Gentoo ebuild (SVN)
As of 2007-11-23, amarok-1.4.9999-r2 is in Portage and provides the live SVN version of Amarok 1.4. It should be unmasked and emerged as normal. This version is not officially supported by the Gentoo or Amarok team.
Note that if downgrading at a later date, user settings should be removed from ~/.kde/share/apps/amarok and ~/.kde/share/config/amarokrc.
Debugging
If you would like to be able to debug Amarok and other packages under Gentoo, please ensure that either "nostrip" or (better) "splitdebug" is in your FEATURES, that "debug" is set for Amarok in package.use and that and Amarok has been rebuilt with these settings in place. For further information, refer to the Gentoo backtrace guide listed below.