diff --git a/mail-client/roundcube/Manifest b/mail-client/roundcube/Manifest index d4565b26a07a6..b2dbcf025857b 100644 --- a/mail-client/roundcube/Manifest +++ b/mail-client/roundcube/Manifest @@ -1,3 +1,4 @@ DIST roundcubemail-1.6.19-complete.tar.gz 5955504 BLAKE2B d1bc5fc92572ee454f0f23b5b2566cb567990d9f4fa7351eb44362825a20b803c556bd16aa076551ab02de02c3b34acd4dd4e3f3ba0a8dac4ab0021ceb6185a7 SHA512 81be8fd41f4b99b39a6ff46cfecf12a76fe750b7554e7b7d462795f6df83416f0a5355a6a099941055c6d1991aef75491e1fcd2b067e5714a00d485552996dc9 DIST roundcubemail-1.6.21-complete.tar.gz 5962730 BLAKE2B a00a78d7617aae9040f653741a7f6d58b53f749bdfa1a1b45e97b00637d2674e527c8b7d23e99e7a31d472929041fa42a8f2e9059be2d8c842e6d97a0ec7f93b SHA512 0130a8b9c41f235331ca8b9d1f0faf283bde48d515e2fd24bef2eccaad27d1953fa906f7a391043666ad0c57dc5ccb80fe41b88583c942f153192470590ea30e DIST roundcubemail-1.7.5-complete.tar.gz 6444330 BLAKE2B 8743e6c4eedebc94e5c00fcf628dd13c5a76bc06f093f6196cdc8ece03716d5b0d32a79d97c080a92da3a60b03759fb41e564626a9ba8a3c5fbd7abd53967fc0 SHA512 a53d1e86faac5abb04301a884f1520aed090c5ac3acb8bce1311509cefcc46b6e3537d04163010707daa77e1b7482a641b72f43fdfac27ced68058b18483ca38 +DIST roundcubemail-1.7.6-complete.tar.gz 6472956 BLAKE2B e8e53912a353269b8781b44b72e406eac1f8df5134df6fca783cfe85fd918e89c95b74dbceb7636628332aa551b2ea4d7423a1c51b0042a756dac62aca183efe SHA512 71f2c33930318d87c19538880ed6bb9ecfe6eb3f77eb1dd37fcab1d19a9417d7775edda65bff4de02eb7cfeca6e5b6e6fba036ead7bacc57133bfe9482091374 diff --git a/mail-client/roundcube/roundcube-1.7.6.ebuild b/mail-client/roundcube/roundcube-1.7.6.ebuild new file mode 100644 index 0000000000000..32bf7470b7f6d --- /dev/null +++ b/mail-client/roundcube/roundcube-1.7.6.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 +}