| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/roundcube-0.8_rc.ebuild,v 1.2 2012/07/02 12:14:03 jer Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit webapp
|
| 8 |
|
| 9 |
MY_PN="${PN}mail"
|
| 10 |
MY_P="${MY_PN}-${PV/_/-}"
|
| 11 |
DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface"
|
| 12 |
HOMEPAGE="http://roundcube.net"
|
| 13 |
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
|
| 14 |
|
| 15 |
# roundcube is GPL-licensed, the rest of the licenses here are
|
| 16 |
# for bundled PEAR components, googiespell and utf8.class.php
|
| 17 |
LICENSE="GPL-3 BSD PHP-2.02 PHP-3 MIT public-domain"
|
| 18 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
| 19 |
IUSE="ldap +mysql postgres ssl spell"
|
| 20 |
|
| 21 |
RDEPEND="virtual/httpd-php
|
| 22 |
>=dev-lang/php-5.3[crypt,gd,iconv,json,ldap?,postgres?,session,sockets,ssl?,xml,unicode]
|
| 23 |
mysql? (
|
| 24 |
|| ( dev-lang/php[mysql] dev-lang/php[mysqli] )
|
| 25 |
|| ( dev-php/PEAR-MDB2_Driver_mysql dev-php/PEAR-MDB2_Driver_mysqli )
|
| 26 |
)
|
| 27 |
postgres? ( dev-php/PEAR-MDB2_Driver_pgsql )
|
| 28 |
spell? ( dev-lang/php[curl,spell] )
|
| 29 |
>=dev-php/PEAR-MDB2-2.5.0_beta3
|
| 30 |
>=dev-php/PEAR-Mail_Mime-1.8.1
|
| 31 |
>=dev-php/PEAR-Net_SMTP-1.4.2
|
| 32 |
>=dev-php/PEAR-Net_IDNA2-0.1.1
|
| 33 |
>=dev-php/PEAR-Auth_SASL-1.0.3"
|
| 34 |
|
| 35 |
need_httpd_cgi
|
| 36 |
|
| 37 |
S=${WORKDIR}/${MY_P}
|
| 38 |
|
| 39 |
src_prepare() {
|
| 40 |
cp config/db.inc.php{.dist,} || die
|
| 41 |
cp config/main.inc.php{.dist,} || die
|
| 42 |
|
| 43 |
# Remove bundled PEAR packages
|
| 44 |
rm -r program/lib/{Auth,Mail,MDB2*,Net,PEAR*} || die
|
| 45 |
}
|
| 46 |
|
| 47 |
src_install() {
|
| 48 |
webapp_src_preinst
|
| 49 |
dodoc CHANGELOG INSTALL README.md UPGRADING
|
| 50 |
|
| 51 |
insinto "${MY_HTDOCSDIR}"
|
| 52 |
doins -r [[:lower:]]* SQL
|
| 53 |
doins .htaccess
|
| 54 |
|
| 55 |
webapp_serverowned "${MY_HTDOCSDIR}"/logs
|
| 56 |
webapp_serverowned "${MY_HTDOCSDIR}"/temp
|
| 57 |
|
| 58 |
webapp_configfile "${MY_HTDOCSDIR}"/config/{db,main}.inc.php
|
| 59 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en-0.6.txt
|
| 60 |
webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en-0.6.txt
|
| 61 |
webapp_postupgrade_txt en UPGRADING
|
| 62 |
webapp_src_install
|
| 63 |
}
|