summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorBernd Waibel <waebbl-gentoo@posteo.net>2021-02-10 23:35:38 +0100
committerSam James <sam@gentoo.org>2021-03-20 05:31:39 +0000
commit5f9422d7249696d2f1875421ee01591f1436e93b (patch)
treef320a9a17b1a46797453aa3ad35dd855ccb41850 /dev-go
parentapp-emacs/ebuild-mode: ~x64-macos keyworded (diff)
downloadgentoo-5f9422d7249696d2f1875421ee01591f1436e93b.tar.gz
gentoo-5f9422d7249696d2f1875421ee01591f1436e93b.tar.bz2
gentoo-5f9422d7249696d2f1875421ee01591f1436e93b.zip
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 <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/19411 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/act/Manifest1
-rw-r--r--dev-go/act/act-1.6.0.ebuild57
-rw-r--r--dev-go/act/metadata.xml21
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-go/act/Manifest b/dev-go/act/Manifest
new file mode 100644
index 000000000000..4537de8cdfee
--- /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 000000000000..4518cc6df79e
--- /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 000000000000..0430f3d0a6b0
--- /dev/null
+++ b/dev-go/act/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>waebbl-gentoo@posteo.net</email>
+ <name>Bernd Waibel</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">Autodesk/AutomaticComponentToolkit</remote-id>
+ </upstream>
+</pkgmetadata>