Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/roundcube: ChangeLog roundcube-0.2.2.ebuild
Date: Sat, 18 Jul 2009 19:29:16
Message-Id: E1MSFas-0007iy-8w@stork.gentoo.org
1 hollow 09/07/18 19:29:14
2
3 Modified: ChangeLog
4 Added: roundcube-0.2.2.ebuild
5 Log:
6 version bump wrt #272487
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.5 mail-client/roundcube/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/roundcube/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/roundcube/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/roundcube/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/roundcube/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 13 Apr 2009 08:27:00 -0000 1.4
23 +++ ChangeLog 18 Jul 2009 19:29:14 -0000 1.5
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-client/roundcube
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/ChangeLog,v 1.4 2009/04/13 08:27:00 hollow Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/ChangeLog,v 1.5 2009/07/18 19:29:14 hollow Exp $
29 +
30 +*roundcube-0.2.2 (18 Jul 2009)
31 +
32 + 18 Jul 2009; Benedikt Böhm <hollow@g.o> +roundcube-0.2.2.ebuild:
33 + version bump wrt #272487
34
35 *roundcube-0.2.1 (13 Apr 2009)
36
37
38
39
40 1.1 mail-client/roundcube/roundcube-0.2.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/roundcube/roundcube-0.2.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/roundcube/roundcube-0.2.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: roundcube-0.2.2.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/mail-client/roundcube/roundcube-0.2.2.ebuild,v 1.1 2009/07/18 19:29:14 hollow Exp $
50
51 MY_PN="${PN}mail"
52 MY_P="${MY_PN}-${PV}"
53
54 inherit eutils webapp depend.php depend.apache
55
56 DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface"
57 HOMEPAGE="http://roundcube.net"
58 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
59
60 # roundcube is GPL-licensed, the rest of the licenses here are
61 # for bundled PEAR components, googiespell and utf8.class.php
62 LICENSE="GPL-2 BSD PHP-2.02 PHP-3 MIT public-domain"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 IUSE="ldap mysql postgres sqlite ssl spell"
65
66 DEPEND=""
67 RDEPEND="dev-php/PEAR-PEAR"
68
69 need_httpd_cgi
70 need_php_httpd
71
72 S=${WORKDIR}/${MY_P}
73
74 pkg_setup() {
75 local flags="crypt iconv imap pcre session unicode"
76 use ldap && flags="${flags} ldap"
77 use ssl && flags="${flags} ssl"
78 use spell && flags="${flags} curl spell"
79
80 # check for required PHP features
81 if ! use mysql && ! use postgres && ! use sqlite ; then
82 local dbflags="mysql mysqli postgres sqlite"
83 if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \
84 ! PHPCHECKNODIE="yes" require_php_with_any_use ${dbflags} ; then
85 die "Re-install ${PHP_PKG} with ${flags} and at least one of ${dbflags} in USE."
86 fi
87 else
88 for db in postgres sqlite ; do
89 use ${db} && flags="${flags} ${db}"
90 done
91 if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \
92 ( use mysql && ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli ) ; then
93 local diemsg="Re-install ${PHP_PKG} with ${flags}"
94 use mysql && diemsg="${diemsg} and at least one of mysql mysqli"
95 die "${diemsg} in USE"
96 fi
97 fi
98
99 # add some warnings about optional functionality
100 if ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
101 ewarn "IMAP quota display will not work correctly without GD support in PHP."
102 ewarn "Recompile PHP with either gd or gd-external in USE if you want this feature."
103 ewarn
104 fi
105
106 webapp_pkg_setup
107 }
108
109 src_unpack() {
110 unpack ${A}
111 cd "${S}"
112 mv config/db.inc.php{.dist,}
113 mv config/main.inc.php{.dist,}
114 }
115
116 src_install () {
117 webapp_src_preinst
118 dodoc CHANGELOG INSTALL README UPGRADING
119
120 cp -R [[:lower:]]* SQL "${D}/${MY_HTDOCSDIR}"
121
122 webapp_serverowned "${MY_HTDOCSDIR}"/logs
123 webapp_serverowned "${MY_HTDOCSDIR}"/temp
124
125 webapp_configfile "${MY_HTDOCSDIR}"/config/{db,main}.inc.php
126 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
127 webapp_postupgrade_txt en UPGRADING
128 webapp_src_install
129 }