From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-build/melange/
Date: Mon, 29 Apr 2024 18:57:33 +0000 (UTC) [thread overview]
Message-ID: <1714417049.27642e287bb1460e1f500364fa20b1e296cada3e.xgqt@gentoo> (raw)
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>
next reply other threads:[~2024-04-29 18:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 18:57 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-25 14:06 [gentoo-commits] repo/gentoo:master commit in: dev-build/melange/ Maciej Barć
2024-06-04 15:17 Maciej Barć
2025-01-07 19:26 Maciej Barć
2025-01-11 2:02 Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1714417049.27642e287bb1460e1f500364fa20b1e296cada3e.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox