logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ff8d9b2498e8e2ce0662c69da7b69fdb2017b5a1
parent c24f7420a50a20084658c08b2144fb194c96e1dc
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  3 Aug 2023 06:40:20 +0200

dev-go/sys: new package, add 0.10.0

Diffstat:

Adev-go/sys/Manifest1+
Adev-go/sys/sys-0.10.0.ebuild20++++++++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/dev-go/sys/Manifest b/dev-go/sys/Manifest @@ -0,0 +1 @@ +DIST sys-0.10.0.tar.gz 1441416 BLAKE2B 54216cbfc5a58e6b7b32c83afc02bafd251061b13859060de354688b79a1031ad8f58dbf2cf37d7552863b0e531354fdfb6c115701aa9767af3c1a2e9e7b88ac SHA512 7a2c7e71a91b8a507d795e2eac2c90536cba23deab97175b83bb165a6bc6d40a31c3110058a21d5f624c54c203fdbef8d823b9e51bd6728be88584b5ee2fbc47 diff --git a/dev-go/sys/sys-0.10.0.ebuild b/dev-go/sys/sys-0.10.0.ebuild @@ -0,0 +1,20 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGO_PN="golang.org/x/sys" + +DESCRIPTION="supplemental Go packages for low-level interactions with the operating system" +HOMEPAGE="https://golang.org/x/sys" +SRC_URI="https://github.com/golang/sys/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_install() { + mkdir -p "$(dirname "${ED}/usr/lib/go-gentoo/src/${EGO_PN}")" || die + cp -r "${P}" "${ED}/usr/lib/go-gentoo/src/${EGO_PN}" || die + test -f "${ED}/usr/lib/go-gentoo/src/${EGO_PN}/go.mod" || die +}