From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6243F15807A for ; Mon, 09 Jun 2025 07:19:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 48EA5343143 for ; Mon, 09 Jun 2025 07:19:48 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 402C91103C1; Mon, 09 Jun 2025 07:19:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 31EB01103C1 for ; Mon, 09 Jun 2025 07:19:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA3F7343112 for ; Mon, 09 Jun 2025 07:19:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7B1DC2942 for ; Mon, 09 Jun 2025 07:19:45 +0000 (UTC) From: "Dennis Lamm" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dennis Lamm" Message-ID: <1749453547.2bd084d33405f55015fc67a3a64e4c122005dac5.expeditioneer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/proton-mail-bridge/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-mta/proton-mail-bridge/proton-mail-bridge-3.20.0-r1.ebuild X-VCS-Directories: mail-mta/proton-mail-bridge/ X-VCS-Committer: expeditioneer X-VCS-Committer-Name: Dennis Lamm X-VCS-Revision: 2bd084d33405f55015fc67a3a64e4c122005dac5 X-VCS-Branch: master Date: Mon, 09 Jun 2025 07:19:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8433e97-0df7-49ce-b5c5-e74c56b5ee37 X-Archives-Hash: e9f9e956fe5d7b7903655f5cc32b4ef9 commit: 2bd084d33405f55015fc67a3a64e4c122005dac5 Author: Filip Kobierski pm me> AuthorDate: Sun Jun 8 12:15:38 2025 +0000 Commit: Dennis Lamm gentoo org> CommitDate: Mon Jun 9 07:19:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bd084d3 mail-mta/proton-mail-bridge: add 3.20.0-r1 with minor improvements - make primary LICENSE the first - add conditional re2 dependency - add Changelog.md to installed DOCS Closes: https://bugs.gentoo.org/955072 Signed-off-by: Filip Kobierski pm.me> Part-of: https://github.com/gentoo/gentoo/pull/42498 Signed-off-by: Dennis Lamm gentoo.org> .../proton-mail-bridge-3.20.0-r1.ebuild | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/mail-mta/proton-mail-bridge/proton-mail-bridge-3.20.0-r1.ebuild b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.20.0-r1.ebuild new file mode 100644 index 000000000000..1d9078270c02 --- /dev/null +++ b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.20.0-r1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake desktop go-env go-module systemd xdg-utils + +MY_PN="${PN/-mail/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Serves Proton Mail 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" +SRC_URI+=" https://dev.gentoo.org/~expeditioneer/distfiles/${CATEGORY}/${PN}/${P}-vendor.tar.xz" +S="${WORKDIR}"/${MY_P} + +LICENSE="GPL-3+ Apache-2.0 BSD BSD-2 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 + gui? ( + >=dev-libs/protobuf-21.12:= + dev-libs/re2:= + >=dev-libs/sentry-native-0.6.5-r1 + dev-qt/qtbase:6=[gui,icu,widgets] + dev-qt/qtdeclarative:6=[widgets] + dev-qt/qtsvg:6= + media-libs/mesa + net-libs/grpc:= + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.15.1-gui_gentoo.patch +) + +DOCS=( {README,Changelog}.md ) + +src_unpack() { + default + + if [[ -d "${WORKDIR}"/vendor ]]; then # if we ship the dependencies + mv "${WORKDIR}"/vendor "${S}"/vendor || die # move them into the tree + fi + + go-env_set_compile_environment +} + +src_prepare() { + xdg_environment_reset + default + if use gui; then + # prepare desktop file + local desktopFilePath="${S}"/dist/${MY_PN}.desktop + sed -i 's/protonmail/proton-mail/g' ${desktopFilePath} || die + sed -i 's/Exec=proton-mail-bridge/Exec=proton-mail-bridge-gui/g' ${desktopFilePath} || die + + # build GUI + local PATCHES=() + BUILD_DIR="${WORKDIR}"/gui_build \ + CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ + cmake_src_prepare + fi +} + +src_configure() { + if use gui; then + local mycmakeargs=( + -DBRIDGE_APP_FULL_NAME="Proton Mail Bridge" + -DBRIDGE_APP_VERSION="${PV}+git" + -DBRIDGE_REPO_ROOT="${S}" + -DBRIDGE_TAG="NOTAG" + -DBRIDGE_VENDOR="Gentoo Linux" + -DCMAKE_DISABLE_PRECOMPILE_HEADERS=OFF + ) + BUILD_DIR="${WORKDIR}"/gui_build \ + CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ + cmake_src_configure + fi +} + +src_compile() { + emake -Onone build-nogui + + if use gui; then + BUILD_DIR="${WORKDIR}"/gui_build \ + CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ + cmake_src_compile + fi +} + +src_test() { + emake -Onone test +} + +src_install() { + exeinto /usr/bin + newexe bridge ${PN} + + if use gui; then + BUILD_DIR="${WORKDIR}"/gui_build \ + CMAKE_USE_DIR="${S}"/internal/frontend/bridge-gui/bridge-gui \ + cmake_src_install + mv "${ED}"/usr/bin/bridge-gui "${ED}"/usr/bin/${PN}-gui || die + newicon {"${S}"/dist/bridge,${PN}}.svg + newmenu {dist/${MY_PN},${PN}}.desktop + fi + + systemd_newuserunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service + + einstalldocs +}