# 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.1" "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.23.0" "github.com/emersion/go-textwrapper 65d896831594" "github.com/emersion/go-vcard c9703dde27ff" "github.com/emersion/go-webdav v0.6.0" "github.com/emersion/go-ical fc1c9d8fb2b6" "github.com/ProtonMail/go-crypto v1.3.0" "go.etcd.io/bbolt v1.4.2 github.com/etcd-io/bbolt" "golang.org/x/crypto v0.40.0 github.com/golang/crypto" "golang.org/x/net v0.21.0 github.com/golang/net" "golang.org/x/sys v0.34.0 github.com/golang/sys" "golang.org/x/text v0.27.0 github.com/golang/text" "golang.org/x/term v0.33.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://github.com/emersion/hydroxide/releases/download/v${PV}/${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" }