From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1626303-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6B41D1581E7 for <garchives@archives.gentoo.org>; Mon, 29 Apr 2024 18:57:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 678A3E2A03; Mon, 29 Apr 2024 18:57:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A3A4E2A03 for <gentoo-commits@lists.gentoo.org>; Mon, 29 Apr 2024 18:57:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E25634305E for <gentoo-commits@lists.gentoo.org>; Mon, 29 Apr 2024 18:57:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAD82177D for <gentoo-commits@lists.gentoo.org>; Mon, 29 Apr 2024 18:57:33 +0000 (UTC) From: "Maciej Barć" <xgqt@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" <xgqt@gentoo.org> Message-ID: <1714417049.27642e287bb1460e1f500364fa20b1e296cada3e.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-build/melange/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-build/melange/Manifest dev-build/melange/melange-0.6.11.ebuild dev-build/melange/metadata.xml X-VCS-Directories: dev-build/melange/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 27642e287bb1460e1f500364fa20b1e296cada3e X-VCS-Branch: master Date: Mon, 29 Apr 2024 18:57:33 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 434c7914-a453-4343-af56-0ff4961fa67b X-Archives-Hash: 1088baf49db3bafd3137d4029b52fbb5 commit: 27642e287bb1460e1f500364fa20b1e296cada3e Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Mon Apr 29 18:57:02 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Mon Apr 29 18:57:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27642e28 dev-build/melange: new package; add 0.6.11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-build/melange/Manifest | 2 ++ dev-build/melange/melange-0.6.11.ebuild | 59 +++++++++++++++++++++++++++++++++ dev-build/melange/metadata.xml | 20 +++++++++++ 3 files changed, 81 insertions(+) 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>