commit: 5d1db1823260a87e2c775953ac86b4051f697412 Author: Craig Andrews <candrews <AT> gentoo <DOT> org> AuthorDate: Thu Aug 19 13:59:02 2021 +0000 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> CommitDate: Thu Aug 19 19:46:19 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d1db182
net-p2p/energi3: 3.1.0 version bump Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> net-p2p/energi3/Manifest | 1 + net-p2p/energi3/energi3-3.1.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/net-p2p/energi3/Manifest b/net-p2p/energi3/Manifest index 215a988eb37..e3ef16d9845 100644 --- a/net-p2p/energi3/Manifest +++ b/net-p2p/energi3/Manifest @@ -1 +1,2 @@ DIST energi3-3.0.8.tar.gz 10303024 BLAKE2B 5f3ab8de6320d7a1cc8a19e35387c3d6c9e4033b124f3457f8a09d19792eed895ae7738bf72bbd0bcb5c49d369b94bb433b7556aba42134fcd36e89f66985671 SHA512 4c62d41db637130b20dad309c6857149a17f14a6b9d12da9951fc5824c7f7215ff6b866e7c5f3d014b5b605512ca088be80bfbb169283e3d88029338034c4daa +DIST energi3-3.1.0.tar.gz 10342226 BLAKE2B cd83db282753dcbc48b7c6d7eb4410b41f9abdc8079f119900abcbb6be1066d8b4d7486a96a34847f6814dc873193a8b1048e4d5cff8689985c84b2fb39cbe0d SHA512 f7fa826f87241f750d35ab3fe64a7d43ff3a4158da5a743760d05a5f75d2d606dc71f8205fbd5d9675c543e5cb47db2ac8d7d542ab088d1ad1c91a50dba80f4f diff --git a/net-p2p/energi3/energi3-3.1.0.ebuild b/net-p2p/energi3/energi3-3.1.0.ebuild new file mode 100644 index 00000000000..0e67da73ca4 --- /dev/null +++ b/net-p2p/energi3/energi3-3.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module systemd + +DESCRIPTION="Official golang implementation of the Energi Core" +HOMEPAGE="https://www.energi.world/" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/energicryptocurrency/${PN}.git" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://github.com/energicryptocurrency/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +IUSE="" +RDEPEND="acct-user/energi3" + +# Does all kinds of wonky stuff like connecting to Docker daemon, network activity, ... +RESTRICT+=" test" + +src_compile() { + GOPATH="${WORKDIR}/${P}/vendor/" emake geth +} + +src_install() { + einstalldocs + dobin build/bin/energi3 + systemd_dounit "${FILESDIR}/energi3.service" +} + +pkg_postinst() { + elog "Run the service: systemctl start energi3" + elog "Attach to the service: energi3 attach --datadir /var/lib/energi3/" + elog "The user attaching must be a member of the 'energi3' group" +}