commit:     160ab9cba4293ce111e7243d23386e2710b1aef4
Author:     Sam Wilson <sam <AT> binarycake <DOT> ca>
AuthorDate: Mon Feb 17 20:45:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 19:44:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160ab9cb

net-p2p/go-ethereum: add 1.15.6

Signed-off-by: Sam Wilson <sam <AT> binarycake.ca>
Part-of: https://github.com/gentoo/gentoo/pull/41283
Closes: https://github.com/gentoo/gentoo/pull/41283
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-p2p/go-ethereum/Manifest                  |  1 +
 net-p2p/go-ethereum/go-ethereum-1.15.6.ebuild | 51 +++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/net-p2p/go-ethereum/Manifest b/net-p2p/go-ethereum/Manifest
index e46e4ed0aca7..b046c83b000e 100644
--- a/net-p2p/go-ethereum/Manifest
+++ b/net-p2p/go-ethereum/Manifest
@@ -1,2 +1,3 @@
 DIST go-ethereum-1.14.13.tar.xz 169362328 BLAKE2B 
55a4c7fe756a9dfbc2b3267a84c3ee7f9eaf1d37cef5c47ebd866202d0ad122b8a3e10c5fc4098fcd7a437d3fe9ddeeb64e90cc0d0f9a94e50eec78366f6d243
 SHA512 
8aeb6e8a180aba9a6264776d58f7a300585d15812a8283c4788d1b2d83ec9b298573d114db9edab1a25a4cf1bf7db611427c8e4bd3ddf41add55478571191676
 DIST go-ethereum-1.15.1.tar.xz 174099304 BLAKE2B 
c7d797ddc78d011a5473939655da9934c62f1ce13e3d748bbcbec5149900f26784fd1e6fc4721c4c932bba0a07ca117d3f46e19ad8716b5808b86fb35a5a3374
 SHA512 
82e8d7075d027812134538815b2e4c7e9a11df50ad80a0343cc2d44c2954158ba8b6f3b5bffeebbb60e984ba7d1ef575bfded39e60308a3541a4b7b04e85a867
+DIST go-ethereum-1.15.6.tar.xz 197355364 BLAKE2B 
874acfe834bd6aac7d8edf9c3fa3b103eb08550b4488c1a39f47cc78a390cc89e63a5a4fc5696c949b141c3074f30b89910b3ace1cb8daaab695943fb21dcc4c
 SHA512 
81f57c677df9a31e827854cd4615daf374f6ff37019a2c751220267ee2a02c211d5bac12310bdc106766ddf83afe4e88d54fb5e0eaf9932b0c764933b1e603bd

diff --git a/net-p2p/go-ethereum/go-ethereum-1.15.6.ebuild 
b/net-p2p/go-ethereum/go-ethereum-1.15.6.ebuild
new file mode 100644
index 000000000000..b598c589423c
--- /dev/null
+++ b/net-p2p/go-ethereum/go-ethereum-1.15.6.ebuild
@@ -0,0 +1,51 @@
+# 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}+build30917+oracular"
+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"
+
+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
+}

Reply via email to