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/grype/
Date: Fri, 29 Jul 2022 16:41:16
Message-Id: 1659112865.ebe112f5dafbe989f345315824197b1b38108998.williamh@gentoo
1 commit: ebe112f5dafbe989f345315824197b1b38108998
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 16:18:25 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 16:41:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe112f5
7
8 app-containers/grype: revbump for build fixes
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 app-containers/grype/grype-0.44.0-r1.ebuild | 33 +++++++++++++++++++++++++++++
13 1 file changed, 33 insertions(+)
14
15 diff --git a/app-containers/grype/grype-0.44.0-r1.ebuild b/app-containers/grype/grype-0.44.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..868972a69ab6
18 --- /dev/null
19 +++ b/app-containers/grype/grype-0.44.0-r1.ebuild
20 @@ -0,0 +1,33 @@
21 +# Copyright 2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +inherit go-module
26 +GIT_COMMIT=a6ec8f11be5fdc116dc7bbfebdc03bfc13cd2005
27 +SYFT_VERSION=0.52.0
28 +
29 +DESCRIPTION="A vulnerability scanner for container images and filesystems"
30 +HOMEPAGE="https://www.anchore.com"
31 +SRC_URI="https://github.com/anchore/grype/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
33 +
34 +LICENSE="Apache-2.0"
35 +SLOT="0"
36 +KEYWORDS="~amd64"
37 +
38 +# tests require a running docker
39 +RESTRICT="test"
40 +
41 +src_compile() {
42 + ego build -o bin/grype -ldflags "
43 + -extldflags '-static'
44 + -X github.com/anchore/grype/internal/version.version=${PV}
45 + -X github.com/anchore/grype/internal/version.syftVersion=${SYFT_VERSION}
46 + -X github.com/anchore/grype/internal/version.gitCommit=${GIT_COMMIT}
47 + -X github.com/anchore/grype/internal/version.buildDate=${BUILD_DATE}
48 + -X github.com/anchore/grype/internal/version.gitDescription=v${PV}"
49 +}
50 +
51 +src_install() {
52 + dobin bin/grype
53 +}