commit: b9a91600c575aefcf986accab26c366755acb218 Author: Chris Su <chris <AT> lesscrowds <DOT> org> AuthorDate: Mon Oct 17 06:56:09 2022 +0000 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> CommitDate: Mon Oct 17 15:56:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9a91600
dev-go/gox: add patch for riscv patform Signed-off-by: Chris Su <chris <AT> lesscrowds.org> Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> dev-go/gox/Manifest | 1 + dev-go/gox/gox-1.0.1.ebuild | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/dev-go/gox/Manifest b/dev-go/gox/Manifest index b06ba5e04f1c..70e85f75ef4b 100644 --- a/dev-go/gox/Manifest +++ b/dev-go/gox/Manifest @@ -1 +1,2 @@ DIST gox-1.0.1.tar.gz 30819 BLAKE2B c99cbf93fcb357561a32a8f2ee7b77b1db481c8f3b886040865436ae9f69c9dfe6b88647d4b07edd0567cce8868a491b6c37ab979bb529093ae2dd7046a7ec0d SHA512 cfcad670d9b752fe629de26db0a7f02a72f183f1c6acaf232d4908085f27a297453ab35f5c9a3ede209cb9143fd9ed7a8b5d9c182c8796f3fe4d023cb5294497 +DIST gox-riscv.patch 17220 BLAKE2B da5d43d90e03eacb4d8893b3426e81b9bfac0377e5cce9e2c24abcf93e5f33f88ff9da89af037b5db36ba3590022328f35102484a91dd529e56254ea0f35d36b SHA512 e4ad1601d10816349f09faa51376a0895cab40653b0631d2164d5dab838f861f203ee8c3f405258f4024ec93cff2774cad92fb4f03ce8d3bd029401dc8357bd0 diff --git a/dev-go/gox/gox-1.0.1.ebuild b/dev-go/gox/gox-1.0.1.ebuild index 79db3d9ae6ac..ff095c7479cc 100644 --- a/dev-go/gox/gox-1.0.1.ebuild +++ b/dev-go/gox/gox-1.0.1.ebuild @@ -7,6 +7,7 @@ inherit go-module DESCRIPTION="A dead simple, no frills Go cross compile tool" HOMEPAGE="https://github.com/mitchellh/gox" SRC_URI="https://github.com/mitchellh/gox/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~jsmolic/gox-riscv.patch" LICENSE="MPL-2.0" SLOT="0/${PVR}" @@ -14,6 +15,11 @@ KEYWORDS="amd64 ~arm64 ~ppc64 ~x86" RESTRICT+=" test" +src_prepare() { + use riscv && eapply "${DISTDIR}"/${PN}-riscv.patch + eapply_user +} + src_compile() { go build -mod=vendor . || die }