Disclaimer

This guide is a rough port from the official guide and various internet references.
Some of the steps have been consolidated and obviously customized to the standard Gentoo environment.
If something is missing, please make a point of updating this article, with special attention to dependencies please.

Note that you might experience an error message about a dropped dependency called "modernizr". This is a frontend gem who has been renamed. This has to be added to the Gemfile:

git /home/git/gitlabnano Gemfile

just search the modernizr (v. 2.6.2) package and rename it to "modernizr-rails", "2.7.1".
Also Note that a (maybe failing) command, being issued before, has created a Gemfile.lock. This lock file would need an edit as well (two mentions of modernizr).

Then build the package depending on your database setup, excluding the staging and dev environment (which have not been set up yet) and the not-used database:

Apache/Passenger

You need to deviate on the configuration of /etc/apache2/vhosts.d/00_default_vhost.conf file, to adapt DocumentRoot and <Directory> directives to use /home/gitlab/gitlab/public. Thus, add the following virtual host to manage gitlab :

Omniauth

In the file /home/gitlab/gitlab/config/gitlab.yml there's a section that controls login from remote sites such as Google, Twitter, and GitHub. change enabled: false to enabled: true. then scroll down and remove all ## marks from