Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/syft/
Date: Fri, 29 Jul 2022 15:53:13
Message-Id: 1659109972.6cc6a0eb9f87d897785d84647087287019e03ca5.williamh@gentoo
1 commit: 6cc6a0eb9f87d897785d84647087287019e03ca5
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 15:49:39 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 15:52:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc6a0eb
7
8 app-containers/syft: revbump for arm64 and version fix
9
10 Closes: https://bugs.gentoo.org/843845
11 Closes: https://bugs.gentoo.org/861428
12 Closes: https://github.com/gentoo/gentoo/pull/26617
13 Thanks-to: Jeremi Piotrowski <jpiotrowski <AT> microsoft.com>
14 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
15
16 app-containers/syft/syft-0.52.0-r1.ebuild | 33 +++++++++++++++++++++++++++++++
17 1 file changed, 33 insertions(+)
18
19 diff --git a/app-containers/syft/syft-0.52.0-r1.ebuild b/app-containers/syft/syft-0.52.0-r1.ebuild
20 new file mode 100644
21 index 000000000000..82a8e5f1a7d8
22 --- /dev/null
23 +++ b/app-containers/syft/syft-0.52.0-r1.ebuild
24 @@ -0,0 +1,33 @@
25 +# Copyright 2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +inherit go-module
30 +GIT_COMMIT=ba9adb17ebb510a2a3bd2b641738b1d9235e1f3e
31 +
32 +DESCRIPTION="Generate a Software Bill of Materials from container images and filesystems"
33 +HOMEPAGE="https://www.anchore.com"
34 +SRC_URI="https://github.com/anchore/syft/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
36 +
37 +LICENSE="Apache-2.0"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm64"
40 +
41 +# tests require a running docker daemon
42 +RESTRICT="test"
43 +
44 +src_compile() {
45 + local BUILD_DATE
46 + BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
47 + ego build -o bin/syft -ldflags "
48 + -X github.com/anchore/syft/internal/version.version=${PV}
49 + -X github.com/anchore/syft/internal/version.gitCommit=${GIT_COMMIT}
50 + -X github.com/anchore/syft/internal/version.buildDate=${BUILD_DATE}
51 + -X github.com/anchore/syft/internal/version.gitDescription=v${PV}
52 + " ./cmd/syft
53 +}
54 +
55 +src_install() {
56 + dobin bin/*
57 +}