diff --git a/mail-client/roundcube/Manifest b/mail-client/roundcube/Manifest index fe5daad802b12..e413828ca004b 100644 --- a/mail-client/roundcube/Manifest +++ b/mail-client/roundcube/Manifest @@ -1,3 +1,4 @@ DIST roundcubemail-1.6.11-complete.tar.gz 5839956 BLAKE2B 1f032ac60ef0671560227b1c6f60c4b6beb6289a84aa0f4159aba9f5a25f77633bebfcfb5718a4eb082998c084fae52dbe13a747df87e269cc49a4419c03caed SHA512 842d6b0f9bfdb0661de798fb83ccfbf202583214cf478fb7092529785f31b9aa8d7a1fcd63c1d6b967e396e1e2a7750669e238d112875befb3f017b6034acacc DIST roundcubemail-1.6.14-complete.tar.gz 5873247 BLAKE2B 55ab6aeaf27f5e13fa4238cfe86fae1c26722a1babaef936a56ad5974717e3291de3b9e41f1cadc43305ab45255b5330c4ed05856edc2225f60e215e4bfa2c7b SHA512 55e3ee4674ac6257a80577b98295b972609b3a6bbb2d929841101132aa960ccbed56c3ddd127a417eb301433215fe8917c373df19da768b57844e1fadcbda525 DIST roundcubemail-1.7-rc5-complete.tar.gz 6380953 BLAKE2B 3ed65e84867d32e35891a1e62c1edd16375fdcb59856570ad7652f88450ffaa3697f3e4b6dfd0ec1ab53b212acd87f550f81ea2f89f38725ac2ec673683fae0c SHA512 0a488c2ced5f6bad00ecae4060fbad63cfd4c4ec1827a2206fcf15e6c6f335c4aded0e800687842ddbc71df4b07936fa77650a704ff5f56ef007a0cba0d95046 +DIST roundcubemail-1.7.0-complete.tar.gz 6326051 BLAKE2B 7a94c2e418c1c717afcc522b71a410848ccceb04cf6ae17ca7caabd7de4ae9d54adfcf613e8463546c80fc2472f4b0f8c22f51d73bcc735b1dc471b8a937fedb SHA512 20427a8dfc31112e22e06b6cce7b5e62dbec823a8d2e3979f767d5cd2395405bf3a1aa426835e8514bf7089354487f15dd331af17152f1dcccf512d9749eb440 diff --git a/mail-client/roundcube/roundcube-1.7.0.ebuild b/mail-client/roundcube/roundcube-1.7.0.ebuild new file mode 100644 index 0000000000000..32bf7470b7f6d --- /dev/null +++ b/mail-client/roundcube/roundcube-1.7.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit webapp + +MY_PN=${PN}mail +MY_PV=${PV/_/-} +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="A browser-based multilingual IMAP client with an application-like user interface" +HOMEPAGE="https://roundcube.net" + +# roundcube is GPL-licensed, the rest of the licenses here are +# for bundled PEAR components, googiespell and utf8.class.php +LICENSE="GPL-3 BSD PHP-2.02 PHP-3 MIT public-domain" + +IUSE="change-password enigma exif fileinfo ldap mysql postgres sqlite ssl spell zip" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +# this function only sets DEPEND so we need to include that in RDEPEND +need_httpd_cgi + +RDEPEND=" + ${DEPEND} + >=dev-lang/php-8.1.0[exif?,fileinfo?,filter,gd,iconv,intl,json(+),ldap?,pdo,postgres?,session,sqlite?,ssl?,unicode,xml,zip?] + virtual/httpd-php + change-password? ( + dev-lang/php[sockets] + ) + enigma? ( + app-alternatives/gpg + ) + mysql? ( + || ( + dev-lang/php[mysql] + dev-lang/php[mysqli] + ) + ) + spell? ( dev-lang/php[curl,spell] ) +" + +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/roundcube/roundcubemail" + EGIT_BRANCH="master" + BDEPEND="${BDEPEND} + app-arch/unzip + dev-php/composer + net-misc/curl" +else + SRC_URI="https://github.com/${PN}/${MY_PN}/releases/download/${MY_PV}/${MY_P}-complete.tar.gz" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +src_unpack() { + if [[ "${PV}" == *9999* ]]; then + git-r3_src_unpack + pushd "${S}" > /dev/null || die + mv composer.json-dist composer.json || die + composer install --no-dev || die + ./bin/install-jsdeps.sh || die + popd > /dev/null || die + else + default + fi + rm "${S}"/Makefile || die +} + +src_install() { + webapp_src_preinst + + dodoc CHANGELOG.md README.md + + insinto "${MY_HTDOCSDIR}" + doins -r [[:lower:]]* SQL + + webapp_serverowned "${MY_HTDOCSDIR}"/logs + webapp_serverowned "${MY_HTDOCSDIR}"/temp + + webapp_configfile "${MY_HTDOCSDIR}"/config/defaults.inc.php + webapp_postupgrade_txt en "${FILESDIR}/POST-UPGRADE_complete.txt" + + webapp_src_install +} + +pkg_postinst() { + webapp_pkg_postinst + + if [[ -n ${REPLACING_VERSIONS} ]]; then + elog "You can review the post-upgrade instructions at:" + elog "${EROOT}/usr/share/webapps/${PN}/${PV}/postupgrade-en.txt" + fi +}