# Copyright 2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 EGO_PN="github.com/emersion/${PN}" EGO_VENDOR=( "github.com/cloudflare/circl v1.6.5" "github.com/teambition/rrule-go v1.8.2" "github.com/emersion/go-bcrypt 6e724a1baa63" "github.com/emersion/go-imap v1.2.1" "github.com/emersion/go-mbox v1.0.4" "github.com/emersion/go-message v0.18.2" "github.com/emersion/go-sasl b788ff22d5a6" "github.com/emersion/go-smtp v0.25.0" "github.com/emersion/go-textwrapper 65d896831594" "github.com/emersion/go-vcard v0.1.0" "github.com/emersion/go-webdav v0.7.0" "github.com/emersion/go-ical fc1c9d8fb2b6" "github.com/ProtonMail/go-crypto v1.5.2" "github.com/stretchr/testify v1.11.1" "go.etcd.io/bbolt v1.5.0 github.com/etcd-io/bbolt" "golang.org/x/crypto v0.58.0 github.com/golang/crypto" "golang.org/x/net v0.21.0 github.com/golang/net" "golang.org/x/sys v0.49.0 github.com/golang/sys" "golang.org/x/sync v0.24.0 github.com/golang/sync" "golang.org/x/text v0.43.0 github.com/golang/text" "golang.org/x/term v0.47.0 github.com/golang/term" ) inherit golang-base golang-build golang-vcs-snapshot systemd DESCRIPTION="A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge" HOMEPAGE="https://github.com/emersion/hydroxide" SRC_URI="https://codeberg.org/emersion/hydroxide/archive/v${PV}.tar.gz -> ${P}.tar.gz ${EGO_VENDOR_URI}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" src_prepare() { cd "src/github.com/emersion/${PN}" eapply_user } src_compile() { EGO_PN="github.com/emersion/${PN}/cmd/${PN}" golang-build_src_compile } src_install() { dobin hydroxide systemd_douserunit "${FILESDIR}/${PN}.service" dodoc "src/github.com/emersion/${PN}/README.md" dodoc "src/github.com/emersion/${PN}/LICENSE" }