# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp depend.php depend.apache DESCRIPTION="Customer Relationship Management built over LAMP" HOMEPAGE="http://www.vtiger.com/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://sourceforge/${PN}/vtigerCRM-5.0.3-PHP5.2-Patch1.tar.gz linguas_de? ( http://forge.vtiger.com/frs/download.php/378/de_de.lang.zip ) linguas_tr? ( http://forge.vtiger.com/frs/download.php/243/Vtigercrm-customerportal-5.0.2_turkish_language_patch.zip ) linguas_pt_BR? ( mirror://sourceforge/vtigerptbr/vtigerCRM-5.0.2_pt_BR_07112006.zip ) linguas_es_ES? ( http://forge.vtiger.com/frs/download.php/319/es_es_503.zip ) linguas_zh_TW? ( http://forge.vtiger.com/frs/download.php/232/vtigerCRM-5_0_3_RC2-lang-zh-tw-06-02-2007.zip )" # linguas_it? ( # mirror://sourceforge/vtigeritalia/vtigercrm503ita.tgz # )" LICENSE="SPL-1.1.3" KEYWORDS="~x86" IUSE="linguas_de linguas_tr linguas_pt_BR linguas_es_ES linguas_zh_TW" #linguas_it DEPEND="" RDEPEND="virtual/httpd-cgi >=virtual/mysql-5.0" need_php_httpd want_apache S="${WORKDIR}/${PN}" src_install () { webapp_src_preinst cp -R . "${D}"/${MY_HTDOCSDIR} cp -R ../data ../modules ../include "${D}"/${MY_HTDOCSDIR} webapp_configfile ${MY_HTDOCSDIR}/config.inc.php if ( `use linguas_de` ); then dodoc ../German_de_de/readme.txt rm ../German_de_de/readme.txt cp -R ../German_de_de/* "${D}"/${MY_HTDOCSDIR} fi if ( `use linguas_tr` ); then cp -R ../vtigercrm-customerportal-5.0.2/* "${D}"/${MY_HTDOCSDIR} fi if ( `use linguas_pt_BR` ); then rm ../vtigerCRM-5.0.2_pt_BR_07112006/packdata.xml cp -R ../vtigerCRM-5.0.2_pt_BR_07112006/* "${D}"/${MY_HTDOCSDIR} fi if ( `use linguas_es_ES` ); then cp -R ../es_es/* "${D}"/${MY_HTDOCSDIR} fi if ( `use linguas_zh_TW` ); then cp -R ../modules ../include ../adodb "${D}"/${MY_HTDOCSDIR} fi # if ( `use linguas_it` ); then # for foo in `find . -name "it_*"`; do # cp ${foo} "${D}"/${MY_HTDOCSDIR}/`dirname ${foo}` # done # fi for foo in config.inc.php cache cache/import cache/images cache/upload \ storage install install.php tabdata.php parent_tabdata.php user_privileges \ Smarty/cache Smarty/templates_c modules/Emails/templates \ test/wordtemplatedownload test/product test/user test/contact test/logo \ logs modules/Webmails/tmp; do webapp_serverowned ${MY_HTDOCSDIR}/${foo} done webapp_src_install }