diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-04-10 17:31:58 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-04-10 17:32:21 +0100 |
commit | 3cb992df77ba586bdb4f545610bf0c21827d46fc (patch) | |
tree | 4b968e9db6545f662ca29d3a958fa6aa925df88a /mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild | |
parent | profiles: Mask x11-libs/libdmx for removal (diff) | |
download | gentoo-3cb992df77ba586bdb4f545610bf0c21827d46fc.tar.gz gentoo-3cb992df77ba586bdb4f545610bf0c21827d46fc.tar.bz2 gentoo-3cb992df77ba586bdb4f545610bf0c21827d46fc.zip |
mail-mta/proton-mail-bridge: update systemd unit for 3.0.0+
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild')
-rw-r--r-- | mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild new file mode 100644 index 000000000000..f05292d8f63e --- /dev/null +++ b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd xdg-utils + +MY_PN="${PN/-mail/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients" +HOMEPAGE="https://proton.me/mail/bridge https://github.com/ProtonMail/proton-bridge/" +SRC_URI="https://github.com/ProtonMail/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 GPL-3+ ISC LGPL-3+ MIT MPL-2.0 Unlicense" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gui" + +# Quite a few tests require Internet access +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND="app-crypt/libsecret" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + xdg_environment_reset + default +} + +src_compile() { + if use gui; then + eerror "Since version 3.0.0, GUI support in ${PN} requires Qt6 and is therefore currently not available" + die "USE=gui requires Qt6" + else + emake build-nogui + fi +} + +src_test() { + emake test +} + +src_install() { + exeinto /usr/bin + newexe bridge ${PN} + + systemd_newuserunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service + + einstalldocs +} + +pkg_postinst() { + use gui && xdg_icon_cache_update +} + +pkg_postrm() { + use gui && xdg_icon_cache_update +} |