diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-05-25 15:26:44 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-05-25 16:05:56 +0200 |
commit | 3e5f21738e2f56d8baefcf18e7f8ef857ec016a0 (patch) | |
tree | a796e029c56af82139f6f205def2534ad9da8843 /dev-build | |
parent | dev-lang/kotlin-bin: bump to 2.0.0 (diff) | |
download | gentoo-3e5f21738e2f56d8baefcf18e7f8ef857ec016a0.tar.gz gentoo-3e5f21738e2f56d8baefcf18e7f8ef857ec016a0.tar.bz2 gentoo-3e5f21738e2f56d8baefcf18e7f8ef857ec016a0.zip |
dev-build/melange: bump to 0.8.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-build')
-rw-r--r-- | dev-build/melange/Manifest | 2 | ||||
-rw-r--r-- | dev-build/melange/melange-0.8.1.ebuild | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-build/melange/Manifest b/dev-build/melange/Manifest index d83220926ea6..2cf82370ace3 100644 --- a/dev-build/melange/Manifest +++ b/dev-build/melange/Manifest @@ -1,2 +1,4 @@ DIST melange-0.6.11-deps.tar.zst 308919689 BLAKE2B e9ef8d0ff221721d09c0679eea4ed50cb22eab905bd4c064914f4e6307d1be6e27f32855d562fb59d78df470238d3981083a716ca5cf45e638432900014ea86c SHA512 6d45e266b9dc1a84ebfee75ec7e4fb58d0eed08c77ef8974ac69af034b88d5d6579cbaf39939d13979a59e32ff87f894506e8caa5612f09f58743ac57c891a5f DIST melange-0.6.11.tar.gz 1129391 BLAKE2B 997e3592f43944cccd08a6ed4ab77d46cec12bd4fb86268f1eaf7e38bc25d583ac7e99677b0885e9527ba367bcbbdb6bdca01ad6447d3834ff2d835efab955f6 SHA512 debfa29653f91d94670d7f73dd05f78bbbef8fa45a248d327fd9dc0c56e85ef1fb8434e326af0fa75334fc51b1c991171541d10d72a8f15bc127c8cc3d293fa4 +DIST melange-0.8.1-deps.tar.xz 239749504 BLAKE2B feb4958b1c01226cefece8e746e8e83e5507bc7cc1feae8be0837971357993645fafffab505a249c96f01079a36cc5bd735d79a459fd81ebb88efb3cf3f85ffb SHA512 6df1448ad16995f31349a4a5c77d459501b99ec590483fab38ed08fd8aa6a425ef68ddddb5ddd8ff261ca37e2e41e40b63243806bd8d9d934d1bbded4cc0b35d +DIST melange-0.8.1.tar.gz 1139855 BLAKE2B 46b18ddbff4044712db6df2c3d8195bc1cb714d686f0af4f3ad92907942e14296e01dad2b9a70bc9870ac727463faea779eb9d40b78923f93d7c1d653f85cd64 SHA512 55d4f94197b9b772daf629c6c24969ddb306e67ac4c0f07017e7d5a466863129ec984a8291c6fb33aded706f4deaa5c5432e1de81e67527ec8ce0f4e070a3218 diff --git a/dev-build/melange/melange-0.8.1.ebuild b/dev-build/melange/melange-0.8.1.ebuild new file mode 100644 index 000000000000..9f156703c547 --- /dev/null +++ b/dev-build/melange/melange-0.8.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit check-reqs go-module edo unpacker + +DESCRIPTION="Build APK packages from source code using declarative pipelines" +HOMEPAGE="https://github.com/chainguard-dev/melange/" +SRC_URI=" + https://github.com/chainguard-dev/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz + https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" # Does not work inside Portage sandbox. + +CHECKREQS_DISK_BUILD="1800M" + +DOCS=( NEWS.md README.md examples ) + +pkg_setup() { + check-reqs_pkg_setup +} + +src_compile() { + local -a -r go_buildopts=( + -o ./ + ) + ego build "${go_buildopts[@]}" +} + +src_test() { + local -a -r melange_opts=( + ./pkg/sca/testdata/go-fips-bin/go-fips-bin.yaml + --arch="$(uname -m)" + --generate-index=false + --out-dir=pkg/sca/testdata/go-fips-bin/packages/ + --source-dir=pkg/sca/testdata/go-fips-bin/ + ) + edo ./melange build "${melange_opts[@]}" +} + +src_install() { + exeinto /usr/bin + doexe melange + + einstalldocs + docompress -x "/usr/share/doc/${PF}/examples" +} |