mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
changed instances of the github links to codeberg, since the github repo is archived, and the project has migrated to codeberg Also properly adds the test phase Here's the build.log with all tests run https://gist.githubusercontent.com/ingenarel/56701b96c4eb42408f2812db9d30afff/raw Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org> Part-of: https://codeberg.org/gentoo/guru/pulls/80
60 lines
1.5 KiB
Bash
60 lines
1.5 KiB
Bash
# Copyright 2022-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module multiprocessing
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://codeberg.org/emersion/${PN}.git"
|
|
else
|
|
inherit verify-sig
|
|
SRC_URI="https://codeberg.org/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz
|
|
verify-sig? ( https://codeberg.org/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz.sig )
|
|
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-go-mod-deps.tar.xz ->
|
|
${P}-deps.tar.xz
|
|
"
|
|
# you can either use -go-mod-deps or -vendor-deps for the file
|
|
# vendor-deps are small, but may not work for some packages/version
|
|
# go-mod-deps are LARGE, but will most likely always work
|
|
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/emersion.asc"
|
|
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-emersion )"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
DESCRIPTION="A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge"
|
|
HOMEPAGE="https://codeberg.org/emersion/hydroxide"
|
|
|
|
LICENSE="MIT"
|
|
#gentoo-go-license hydroxide-0.2.32.ebuild
|
|
LICENSE+=" BSD MIT "
|
|
SLOT="0"
|
|
BDEPEND+=" >=dev-lang/go-1.24.0"
|
|
DOCS=( README.md )
|
|
|
|
src_unpack() {
|
|
if [[ ${PV} == *9999* ]]; then
|
|
git-r3_src_unpack
|
|
go-module_live_vendor
|
|
else
|
|
if use verify-sig; then
|
|
verify-sig_verify_detached "${DISTDIR}/${P}".tar.gz{,.sig}
|
|
fi
|
|
go-module_src_unpack
|
|
fi
|
|
}
|
|
|
|
src_compile() {
|
|
ego build -v -x -p "$(get_makeopts_jobs)" ./cmd/hydroxide
|
|
}
|
|
|
|
src_test() {
|
|
ego test ./...
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dobin "${PN}"
|
|
}
|