commit: 54bbebe723023620f731c7e3ce95ffdc8e01c54a Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Mon May 30 10:40:08 2022 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Mon May 30 10:42:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54bbebe7
mail-mta/protonmail-bridge: add 2.2.0 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> mail-mta/protonmail-bridge/Manifest | 2 + .../protonmail-bridge-2.2.0.ebuild | 67 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/mail-mta/protonmail-bridge/Manifest b/mail-mta/protonmail-bridge/Manifest index d555c945b30f..1bb0c8aea557 100644 --- a/mail-mta/protonmail-bridge/Manifest +++ b/mail-mta/protonmail-bridge/Manifest @@ -1,2 +1,4 @@ DIST protonmail-bridge-2.1.1-vendor.tar.xz 3778060 BLAKE2B 4350201ec1890eb398360df82d2b623800399e0d536545030254d4e17bac55729fe5d9d6238250b5599a5d4f59014804f442d9bf804a589ecf3be13b248e9bb3 SHA512 736a4c7e3536d8aff48a3987ef46ba0b1ca1aeb5f0346b78ecde93e989f921affa56dd63e70b66b026bdae8c843c7540a07623a744662958dca243e614421a5c DIST protonmail-bridge-2.1.1.tar.gz 2034768 BLAKE2B 8748650cd90610803bbba4ed503a01be308225367a82da403ed209f0ed593f2202dc3424ba3c2bc09b3fcfa19ff04cb67351e840aac9fc35f17bc6d512962774 SHA512 c280c61d7a8aaf6e7063183431184e2807e8cdb9ba68cb1a14e45529ccac2b2df7e6ee5b71d7e01341a4b625546ea8cf48ade7cbec64abd998cf8227d9b684de +DIST protonmail-bridge-2.2.0-deps.tar.xz 237226036 BLAKE2B bb1eabb4a56c19ff6c79b4543ad39f94fe5821d02cf246110a1a41b64c55271c5cfc0be18e496f8f7a76d02d180567ac8dbaba520b27dd38c08708d885c66c1f SHA512 4a3da64b27732d55aaaff8850b9ce0e6c03deecbc8a051338a3bee4066250f10b99fb5f25d9d2cd5541b8de94ee2c11a2805b4344f28764b494e2b645c60b175 +DIST protonmail-bridge-2.2.0.tar.gz 3098013 BLAKE2B 310c84eab7973174a331247bde6f64dad03a3ed05ad241300e5c2c2f7361e5d7c4598201400c6f51a0df49e7ccb57a6230fc1b1c4b749e29d2f2796d3d4c8b81 SHA512 ca0941b37fccbdf8a581426e69ec0c8840ed384bc4fc64592fcf0f228303a3f9f46d41ad56310bc0f99e1bb633ff8c9fcd3c3ab11b5ba34ad6960342111e8fe2 diff --git a/mail-mta/protonmail-bridge/protonmail-bridge-2.2.0.ebuild b/mail-mta/protonmail-bridge/protonmail-bridge-2.2.0.ebuild new file mode 100644 index 000000000000..3eb8df2b3026 --- /dev/null +++ b/mail-mta/protonmail-bridge/protonmail-bridge-2.2.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd xdg-utils + +MY_PN="proton-bridge" +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 + emake \ + QT_DOC_DIR="/usr/share/qt5-doc" \ + QT_PKG_CONFIG=true \ + build + else + emake build-nogui + fi +} + +src_test() { + emake test +} + +src_install() { + exeinto /usr/bin + newexe ${MY_PN} ${PN} + + systemd_douserunit "${FILESDIR}"/${PN}.service + + # FIXME: USE=gui will probably need more files + + einstalldocs +} + +pkg_postinst() { + use gui && xdg_icon_cache_update +} + +pkg_postrm() { + use gui && xdg_icon_cache_update +}