Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/roundcube/
Date: Thu, 31 Dec 2020 14:21:16
Message-Id: 1609424466.4e43de3d362f1052d814e2a387288f5586557976.candrews@gentoo
1 commit: 4e43de3d362f1052d814e2a387288f5586557976
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 31 14:02:07 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 31 14:21:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e43de3d
7
8 mail-client/roundcube: 1.4.10 version bump
9
10 Bug: https://bugs.gentoo.org/762136
11 Package-Manager: Portage-3.0.12, Repoman-3.0.2
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 mail-client/roundcube/Manifest | 1 +
15 mail-client/roundcube/roundcube-1.4.10.ebuild | 96 +++++++++++++++++++++++++++
16 2 files changed, 97 insertions(+)
17
18 diff --git a/mail-client/roundcube/Manifest b/mail-client/roundcube/Manifest
19 index 95defd4eca0..c6c1bc555a4 100644
20 --- a/mail-client/roundcube/Manifest
21 +++ b/mail-client/roundcube/Manifest
22 @@ -1,2 +1,3 @@
23 +DIST roundcubemail-1.4.10-complete.tar.gz 7043181 BLAKE2B aa442c9e4fb4d31bc9ddd77d888637d9d7afb8ac6c264ca5d378bd7bfc160f2f31379fae208638b2f79e6127add83f0254d1526e22c2ca24656b31ee75dc695e SHA512 e0a661ae5b928ce2c93129775d32a679ad2512ca4af21e8dd1711d38a62818ff9ee1e1fc922aae68e0a8bca034ca780fc3e3e988731a2ce9b2190b2c1d8e08a6
24 DIST roundcubemail-1.4.8-complete.tar.gz 7032822 BLAKE2B 61c5329d9abe65baba3274d3cb9a6a435f886a0196c2881153da473eb415ad4c63dfdab49c67c75a2fd92ff55f9e6da7bdfcece7041ce408b2be628da47045d4 SHA512 8b7734cdec95954b7e18a0e44957da6ef74b5b0c3d28a1449e8634faa230844f5e0c28954245641758f8b2d9102aa32f279765ed3dfa20fa7b00dee4e5347362
25 DIST roundcubemail-1.4.9-complete.tar.gz 7043437 BLAKE2B a1b7c6e160d29f61e2ca9c25f725b55411cb52c0f0d00fc4b3dc2ab1eb0edf190176ec932a297d6052b34047673e5dfb8cb13ad3a7b8b755e9d8e9265fb85aa9 SHA512 c6395757544b85693e808234f3dc6baac618ba115fb2c9eefc309ee18e74b2fdfbc0af00ac2b3b980fdd2abc56eefde47b535cdf688cfd2a5ce975786aca6572
26
27 diff --git a/mail-client/roundcube/roundcube-1.4.10.ebuild b/mail-client/roundcube/roundcube-1.4.10.ebuild
28 new file mode 100644
29 index 00000000000..54ae74d1e86
30 --- /dev/null
31 +++ b/mail-client/roundcube/roundcube-1.4.10.ebuild
32 @@ -0,0 +1,96 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit webapp
39 +
40 +MY_PN=${PN}mail
41 +MY_PV=${PV/_/-}
42 +MY_P=${MY_PN}-${MY_PV}
43 +
44 +DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface"
45 +HOMEPAGE="https://roundcube.net"
46 +
47 +# roundcube is GPL-licensed, the rest of the licenses here are
48 +# for bundled PEAR components, googiespell and utf8.class.php
49 +LICENSE="GPL-3 BSD PHP-2.02 PHP-3 MIT public-domain"
50 +
51 +IUSE="change-password enigma ldap mysql postgres sqlite ssl spell"
52 +REQUIRED_USE="|| ( mysql postgres sqlite )"
53 +
54 +# this function only sets DEPEND so we need to include that in RDEPEND
55 +need_httpd_cgi
56 +
57 +RDEPEND="
58 + ${DEPEND}
59 + >=dev-lang/php-5.4.0[filter,gd,iconv,json(+),ldap?,pdo,postgres?,session,sqlite?,ssl?,unicode,xml]
60 + virtual/httpd-php
61 + change-password? (
62 + dev-lang/php[sockets]
63 + )
64 + enigma? (
65 + app-crypt/gnupg
66 + )
67 + mysql? (
68 + || (
69 + dev-lang/php[mysql]
70 + dev-lang/php[mysqli]
71 + )
72 + )
73 + spell? ( dev-lang/php[curl,spell] )
74 +"
75 +
76 +if [[ ${PV} == *9999 ]] ; then
77 + inherit git-r3
78 + EGIT_REPO_URI="https://github.com/roundcube/roundcubemail"
79 + EGIT_BRANCH="master"
80 + BDEPEND="${BDEPEND}
81 + app-arch/unzip
82 + dev-php/composer
83 + net-misc/curl"
84 +else
85 + SRC_URI="https://github.com/${PN}/${MY_PN}/releases/download/${MY_PV}/${MY_P}-complete.tar.gz"
86 + S="${WORKDIR}/${MY_P}"
87 + KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
88 +fi
89 +
90 +src_unpack() {
91 + if [[ "${PV}" == *9999* ]]; then
92 + git-r3_src_unpack
93 + pushd "${S}" > /dev/null || die
94 + mv composer.json-dist composer.json || die
95 + composer install --no-dev || die
96 + ./bin/install-jsdeps.sh || die
97 + popd > /dev/null || die
98 + else
99 + default
100 + fi
101 +}
102 +
103 +src_install() {
104 + webapp_src_preinst
105 +
106 + dodoc CHANGELOG INSTALL README.md UPGRADING
107 +
108 + insinto "${MY_HTDOCSDIR}"
109 + doins -r [[:lower:]]* SQL
110 + doins .htaccess
111 +
112 + webapp_serverowned "${MY_HTDOCSDIR}"/logs
113 + webapp_serverowned "${MY_HTDOCSDIR}"/temp
114 +
115 + webapp_configfile "${MY_HTDOCSDIR}"/config/defaults.inc.php
116 + webapp_postupgrade_txt en "${FILESDIR}/POST-UPGRADE_complete.txt"
117 +
118 + webapp_src_install
119 +}
120 +
121 +pkg_postinst() {
122 + webapp_pkg_postinst
123 +
124 + if [[ -n ${REPLACING_VERSIONS} ]]; then
125 + elog "You can review the post-upgrade instructions at:"
126 + elog "${EROOT%/}/usr/share/webapps/${PN}/${PV}/postupgrade-en.txt"
127 + fi
128 +}