diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-04-29 20:57:02 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-04-29 20:57:29 +0200 |
commit | 27642e287bb1460e1f500364fa20b1e296cada3e (patch) | |
tree | 7f1bdc36915c4530ed31c6f02f2ba5b137f23f31 /dev-build | |
parent | sci-mathematics/stp: enable py3.12 compat (diff) | |
download | gentoo-27642e287bb1460e1f500364fa20b1e296cada3e.tar.gz gentoo-27642e287bb1460e1f500364fa20b1e296cada3e.tar.bz2 gentoo-27642e287bb1460e1f500364fa20b1e296cada3e.zip |
dev-build/melange: new package; add 0.6.11
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.6.11.ebuild | 59 | ||||
-rw-r--r-- | dev-build/melange/metadata.xml | 20 |
3 files changed, 81 insertions, 0 deletions
diff --git a/dev-build/melange/Manifest b/dev-build/melange/Manifest new file mode 100644 index 000000000000..d83220926ea6 --- /dev/null +++ b/dev-build/melange/Manifest @@ -0,0 +1,2 @@ +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 diff --git a/dev-build/melange/melange-0.6.11.ebuild b/dev-build/melange/melange-0.6.11.ebuild new file mode 100644 index 000000000000..6e3d018a1c2f --- /dev/null +++ b/dev-build/melange/melange-0.6.11.ebuild @@ -0,0 +1,59 @@ +# 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.zst +" + +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_unpack() { + unpacker "${P}-deps.tar.zst" + + go-module_src_unpack +} + +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" +} diff --git a/dev-build/melange/metadata.xml b/dev-build/melange/metadata.xml new file mode 100644 index 000000000000..98636cd43b51 --- /dev/null +++ b/dev-build/melange/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>xgqt@gentoo.org</email> + <name>Maciej Barć</name> + </maintainer> + <longdescription> + Melange can be used to build APK packages using declarative pipelines. It + is commonly used to provide custom packages for container images built with + apko. The majority of apks are built for use with either the Wolfi or + Alpine Linux ecosystems. It's key features are pipeline-oriented builds and + multi-architecture by default. + </longdescription> + <upstream> + <bugs-to>https://github.com/chainguard-dev/melange/issues/</bugs-to> + <remote-id type="github">chainguard-dev/melange</remote-id> + </upstream> +</pkgmetadata> |