public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/act/
Date: Mon,  7 Nov 2022 05:01:26 +0000 (UTC)	[thread overview]
Message-ID: <1667797274.58d84841ee2d310d991242fdabe01274d08347f3.sam@gentoo> (raw)

commit:     58d84841ee2d310d991242fdabe01274d08347f3
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Nov  1 09:47:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov  7 05:01:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58d84841

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 <AT> gentoo.org>
Closes: https://bugs.gentoo.org/877881
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/28072
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-go/act/act-1.6.0.ebuild | 39 ++++++---------------------------------
 1 file 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/.
 }


             reply	other threads:[~2022-11-07  5:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-07  5:01 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-03  5:45 [gentoo-commits] repo/gentoo:master commit in: dev-go/act/ Arthur Zamarin
2022-05-27  6:53 Joonas Niilola
2021-04-27 18:02 Sam James
2021-04-27 18:01 Sam James
2021-04-25  5:19 Sam James
2021-03-20  5:43 Sam James
2021-03-20  5:43 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1667797274.58d84841ee2d310d991242fdabe01274d08347f3.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox