From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E90B1382C5 for ; Sat, 20 Mar 2021 05:43:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28961E0884; Sat, 20 Mar 2021 05:43:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0EC7CE0878 for ; Sat, 20 Mar 2021 05:43:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3B57C340562 for ; Sat, 20 Mar 2021 05:43:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6608B5AE for ; Sat, 20 Mar 2021 05:43:07 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1616218299.5f9422d7249696d2f1875421ee01591f1436e93b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/act/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-go/act/Manifest dev-go/act/act-1.6.0.ebuild dev-go/act/metadata.xml X-VCS-Directories: dev-go/act/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5f9422d7249696d2f1875421ee01591f1436e93b X-VCS-Branch: master Date: Sat, 20 Mar 2021 05:43:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a2a08e4b-ab49-4e25-be64-83f3dea9897c X-Archives-Hash: 662db9fd901b1192b95ed5718caa89b1 commit: 5f9422d7249696d2f1875421ee01591f1436e93b Author: Bernd Waibel posteo net> AuthorDate: Wed Feb 10 22:35:38 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 20 05:31:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f9422d7 dev-go/act: new package Closes: https://bugs.gentoo.org/770043 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Bernd Waibel posteo.net> Closes: https://github.com/gentoo/gentoo/pull/19411 Signed-off-by: Sam James gentoo.org> dev-go/act/Manifest | 1 + dev-go/act/act-1.6.0.ebuild | 57 +++++++++++++++++++++++++++++++++++++++++++++ dev-go/act/metadata.xml | 21 +++++++++++++++++ 3 files changed, 79 insertions(+) diff --git a/dev-go/act/Manifest b/dev-go/act/Manifest new file mode 100644 index 00000000000..4537de8cdfe --- /dev/null +++ b/dev-go/act/Manifest @@ -0,0 +1 @@ +DIST act-1.6.0.tar.gz 781572 BLAKE2B 04ac295b09d9ae5fd9f062637f07671009140988e42d00668174bdc07b09d3dea8df6064d597f03a64157f34d3a4f60df2a9d528eaaa60e2540cb51a421136ef SHA512 1a99b628eea87151e6efdafecc80aa590e679925d8e3c03251888b72bce3026de8149ad6111605bcae52ea5006a4ecfe97b4eb4e860d545c2b536475a67282e6 diff --git a/dev-go/act/act-1.6.0.ebuild b/dev-go/act/act-1.6.0.ebuild new file mode 100644 index 00000000000..4518cc6df79 --- /dev/null +++ b/dev-go/act/act-1.6.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-base 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" +S="${WORKDIR}/AutomaticComponentToolkit-${PV}" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RESTRICT="strip 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 +} + +go_arm() { + case "${1:-${CHOST}}" in + armv5*) echo 5;; + armv6*) echo 6;; + armv7*) echo 7;; + *) + die "unknown GOARM for ${1:-${CHOST}}" + ;; + esac +} + +src_compile() { + export GOARCH=$(go_arch) + export GOOS=linux + if [[ ${ARCH} == arm ]]; then + export GOARM=$(go_arm) + fi + + cd "${S}"/Source || die + go build -o ../${PN} *.go || die +} + +src_install() { + newbin "${S}"/${PN} ${PN} + einstalldocs + dodoc -r Documentation/. +} diff --git a/dev-go/act/metadata.xml b/dev-go/act/metadata.xml new file mode 100644 index 00000000000..0430f3d0a6b --- /dev/null +++ b/dev-go/act/metadata.xml @@ -0,0 +1,21 @@ + + + + + waebbl-gentoo@posteo.net + Bernd Waibel + + + proxy-maint@gentoo.org + Gentoo Proxy Maintainers + + + The Automatic Component Toolkit (ACT) is a code generator for a thin + C89-API, implementation stubs and language bindings for C, C++, Pascal, + Python3, Go, NodeJS, C#, based on an instance of an Interface Description + Language file. + + + Autodesk/AutomaticComponentToolkit + +