gentoo-ebuilds/net-p2p/go-ethereum/go-ethereum-1.16.7.ebuild
Sam Wilson f80100b242
net-p2p/go-ethereum: don't strip debug symbols
Closes: https://bugs.gentoo.org/960079
Signed-off-by: Sam Wilson <sam@binarycake.ca>
Part-of: https://github.com/gentoo/gentoo/pull/44575
Closes: https://github.com/gentoo/gentoo/pull/44575
Signed-off-by: Sam James <sam@gentoo.org>
2025-11-12 09:40:29 +00:00

53 lines
1.4 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-env go-module
LONG_VERSION="${PV}+build4239+plucky"
DESCRIPTION="Official golang implementation of the Ethereum protocol"
HOMEPAGE="https://github.com/ethereum/go-ethereum"
SRC_URI="https://ppa.launchpadcontent.net/ethereum/ethereum/ubuntu/pool/main/e/ethereum/ethereum_${LONG_VERSION}.tar.xz -> ${P}.tar.xz"
# Above PPA is listed as an official source here:
# https://geth.ethereum.org/docs/getting-started/installing-geth#ubuntu-via-ppas
S="${WORKDIR}/ethereum-${LONG_VERSION}"
LICENSE="GPL-3+ LGPL-3+ MIT || ( BSD GPL-2 ) BSD-2 LGPL-2.1+ Apache-2.0 ISC MIT MPL-2.0 Unlicense"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="devtools"
# Does all kinds of wonky stuff like connecting to Docker daemon, network activity, ...
RESTRICT+=" test"
PATCHES=( "${FILESDIR}/go-ethereum-1.16.7-dont-strip.patch" )
src_unpack() {
default
mv "${S}/.mod" "${WORKDIR}/go-mod" || die
}
src_compile() {
go-env_set_compile_environment
emake $(usex devtools all geth)
}
src_install() {
einstalldocs
dobin build/bin/geth
# TODO: replace with wildcard
if use devtools; then
dobin build/bin/abidump
dobin build/bin/abigen
dobin build/bin/blsync
dobin build/bin/clef
dobin build/bin/devp2p
dobin build/bin/era
dobin build/bin/ethkey
dobin build/bin/evm
dobin build/bin/rlpdump
fi
}