summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorBernd Waibel <waebbl-gentoo@posteo.net>2022-11-01 10:47:43 +0100
committerSam James <sam@gentoo.org>2022-11-07 05:01:14 +0000
commit58d84841ee2d310d991242fdabe01274d08347f3 (patch)
tree2154d453aecb23e2eff7fda32347c9d4deaacdd7 /dev-go
parentdev-python/httpcore: Backport >=dev-python/h11-0.14 support (diff)
downloadgentoo-58d84841ee2d310d991242fdabe01274d08347f3.tar.gz
gentoo-58d84841ee2d310d991242fdabe01274d08347f3.tar.bz2
gentoo-58d84841ee2d310d991242fdabe01274d08347f3.zip
dev-go/act: no longer use go-module
The package doesn't use the usual Go structure and fails to build with changes to go-module. Thanks to William Hubbs for the suggestion to go related changes. Suggested-by: William Hubbs <williamh@gentoo.org> Closes: https://bugs.gentoo.org/877881 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/28072 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/act/act-1.6.0.ebuild39
1 files changed, 6 insertions, 33 deletions
diff --git a/dev-go/act/act-1.6.0.ebuild b/dev-go/act/act-1.6.0.ebuild
index 3a2dd997297d..4baa06a089d0 100644
--- a/dev-go/act/act-1.6.0.ebuild
+++ b/dev-go/act/act-1.6.0.ebuild
@@ -3,8 +3,6 @@
EAPI=8
-inherit go-module toolchain-funcs
-
DESCRIPTION="Automated Component Toolkit code generator"
HOMEPAGE="https://github.com/Autodesk/AutomaticComponentToolkit"
SRC_URI="https://github.com/Autodesk/AutomaticComponentToolkit/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -14,44 +12,19 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
-RESTRICT="test"
-
-# Package does not follow the usual go directory structure
-# Functions borrowed from dev-lang/go ebuild.
-go_arch() {
- # By chance most portage arch names match Go
- local portage_arch=$(tc-arch $@)
- case "${portage_arch}" in
- x86) echo 386;;
- x64-*) echo amd64;;
- *) echo "${portage_arch}";;
- esac
-}
+RESTRICT="strip test"
-go_arm() {
- case "${1:-${CHOST}}" in
- armv5*) echo 5;;
- armv6*) echo 6;;
- armv7*) echo 7;;
- *)
- die "unknown GOARM for ${1:-${CHOST}}"
- ;;
- esac
-}
+BDEPEND="dev-lang/go"
-src_compile() {
- export GOARCH=$(go_arch)
- export GOOS=linux
- if [[ ${ARCH} == arm ]]; then
- export GOARM=$(go_arm)
- fi
+QA_FLAGS_IGNORED="usr/bin/act"
- cd "${S}"/Source || die
+src_compile() {
+ cd Source || die
go build -x -o ../${PN} *.go || die
}
src_install() {
- newbin "${S}"/${PN} ${PN}
+ dobin ${PN}
einstalldocs
dodoc -r Documentation/.
}