type the following :

for the current official version :
ACCEPT_KEYWORDS="~x86" emerge piwi

then follow what is written at the end of installation

this include adding this to apache configuration :
(/etc/apache2/conf/apache2.conf)

<IfDefine PIWI>

	<Directory "/home/httpd/htdocs/piwi">
		Options ExecCGI FollowSymLinks
		AllowOverride All
		DirectoryIndex index.pl
	</Directory>

	<IfDefine MOD_PERL>
		PerlModule Apache::DBI
		<Files *.pl>
			SetHandler perl-script
			PerlHandler Apache::PerlRun
			PerlSendHeader On
		</Files>
	</IfDefine>

	<IfDefine !MOD_PERL>
		AddHandler cgi-script .pl
	</IfDefine>

</IfDefine>

and in "/etc/conf.d/apache2" add "-D PIWI" to APACHE2_OPTS string

==========================

This version needs the following :

app-text/ghostscript	if you want to use the PS back-end
dev-perl/CGI			mandatory

PDF::API2 (perl module) if you want to publish PDF reports
(unfortunatly, no in portage for now)
