From 3f0a9aff8dc766c410952343d02561aab3eda2b9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 19 Dec 2023 19:54:34 +0000 Subject: gentoo auto-resync : 19:12:2023 - 19:54:34 --- app-containers/earthly/Manifest | 3 ++ app-containers/earthly/earthly-0.7.23.ebuild | 73 ++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 app-containers/earthly/earthly-0.7.23.ebuild (limited to 'app-containers/earthly') diff --git a/app-containers/earthly/Manifest b/app-containers/earthly/Manifest index d33c14bb1ed1..c09ffe740269 100644 --- a/app-containers/earthly/Manifest +++ b/app-containers/earthly/Manifest @@ -2,6 +2,9 @@ DIST earthly-0.7.21-deps.tar.xz 153233840 BLAKE2B e5f2590997eb839232a84bc75c787a DIST earthly-0.7.21.tar.gz 7788611 BLAKE2B 697194102a3d0af16744b42f2489a38db588ddfcc4d9e3358f259733500a69c188e11e71f6f5e9900a36c91b84d0314a6defdea339d4882f0490f2a9a4119408 SHA512 408298019bdb5797d96edd008b8e430de2cce701c93cb2f55a0faf5a9a4865e26283d8a80b82163e8b51ef82518ec35a7530aa887d598c15027243f6008954d1 DIST earthly-0.7.22-deps.tar.xz 156575120 BLAKE2B d10d38f62ddd134705fd840a5912d69f0ce50aa39d6fba9ce1e23496af2a19034886eb47521333ad6fd0b36addba59b465eb9b74e585ae79505a47baaa5487de SHA512 c3f6648d0d51a4195c191c6ad6db92adec5e7e488cb63c0be49338445d5d0a22a1d49792d88a297689a23b38fcd0e8eab701ad1419c19d03d627c3ec92414b56 DIST earthly-0.7.22.tar.gz 7813193 BLAKE2B f34b938776379f2ba0722757d53646d89841ed0dc35dc106f79f69166e3ab12c78b29913a5711ae403a940dbfab9526c306b773aa962bbb4b5bdc27fb04fce23 SHA512 62bb8c477589d5d3492fe5c2c2534d5f56afa4aca8862bee6691e867d3dd6fb904ecbe08c02a0058968c98b1b75beb43caf4f7b6997a00c2d73fc9614516658d +DIST earthly-0.7.23-deps.tar.xz 157140928 BLAKE2B 493c7dce3e79f94659e99501020c07232a2d6ff78a055209b1b42be8615e38e01dacef4ceb50a80ed26e597de4dbb892fee2d54f6721fd5af62c86a0a9197d45 SHA512 a278077be794a1085105271fc3e031c02079e2b4f45c7220b3114df72ba26758758d5c0f1171ff861feb1c305765952494bf1afe95dcc469d2b9c6aad13fe7b9 +DIST earthly-0.7.23.tar.gz 8023353 BLAKE2B 458850b26a2730eb10ae3912f249d6ba9fdf81ed0c734f568ebf2cbaf5da005d258d38a089d452d42628d071d0b07f73e4f73cb29e7a02c406c1ea394d22ae97 SHA512 be524a6ab86ad3cff307d990f3645007cde673383cbaf132ebc6ab9e7052e8d13e163e958353041151d9fe6dc987ab75372dbf061a8413a932408a844cfe1007 EBUILD earthly-0.7.21.ebuild 1815 BLAKE2B a0692dca782e264b67a80abbfd483dbe1fec441d572ea3044757e7272d2fd7fd0c262625f7737f89d728a9fb5969e09df26b11084a25065d8ace18fe2520b8ff SHA512 8fb15dba6822e82ba72155a66354b61780d3338eebaed1077e43dacb4df3081a18f8938f07641610ad52c2fed09bdc73c2b51fd47af562ad2d777bde7f63e1c3 EBUILD earthly-0.7.22.ebuild 1816 BLAKE2B 94a8a8220455a52b87b1bf2ba5058c2fee6c10a9544d735b04d9ae4da1aa77cfdccb26e9cf5b15d7a8222a51dc158f3956f3639b6cdb51efa23e5065dda5f1de SHA512 babace1ebe376a2d061e4d5df673b9112a854933edceef1e6a0ca65fba6a7e20216298f34ab4e0e46b16daad16eab1dbfcb24ae3b1603cc6187e46de3e297550 +EBUILD earthly-0.7.23.ebuild 1814 BLAKE2B 30a38f4c88d37001b5f1a5c3ec5544e47ca7d4141b55aae876414f0ad125a53fc9af5f354e2075b386513baf414193ef6912c645e2c18ae0e8e69cd7040f0ba6 SHA512 e4addfaad685007702a7b1c028a9a9b173c5739181822cdb781bb389de5925f49d7b5526bbcd873f2ceae418d2788d17860d9c187c301a25679ef5a74c1b99ef MISC metadata.xml 927 BLAKE2B b7d5184df16f39603bf6df8b503e701d737fec188d1d97673e4ca59babd990c1b872784c91db04c74d9a08dbffa76f4e7530d8b021cbbe9ae51fd9966f709522 SHA512 f7f49eb583b2b5a9939c26e9eaff3917392525c3a94e5f8274c89b69e172547ad02fa4ed1b078e7d778f765659e1b9a7cf99d88042034cfbfbef54e685c8b6dd diff --git a/app-containers/earthly/earthly-0.7.23.ebuild b/app-containers/earthly/earthly-0.7.23.ebuild new file mode 100644 index 000000000000..95c419e4b2a8 --- /dev/null +++ b/app-containers/earthly/earthly-0.7.23.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Git commit SHA is needed at runtime by earthly to pull and bootstrap images. +if [[ "${PV}" == 0.7.23 ]] ; then + GIT_COMMIT_SHA=e77372274b09b5e5f8a42f1b6ac264f7149c4924 +else + die 'Could not detect "GIT_COMMIT_SHA", please update the ebuild.' +fi + +inherit go-module + +DESCRIPTION="Build automation tool that executes in containers" +HOMEPAGE="https://earthly.dev/ + https://github.com/earthly/earthly/" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz + https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz +" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + || ( + app-containers/docker + app-containers/podman + ) +" + +DOCS=( CHANGELOG.md CONTRIBUTING.md README.md ) + +src_compile() { + mkdir -p bin || die + + local go_tags="dfrunmount,dfrunsecurity,dfsecrets,dfssh,dfrunnetwork,dfheredoc,forceposix" + local go_ldflags=" + -X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${PV} + -X main.GitSha=${GIT_COMMIT_SHA} + -X main.Version=v${PV} + " + local -a go_buildargs=( + -tags "${go_tags}" + -ldflags "${go_ldflags}" + -o bin + ) + ego build "${go_buildargs[@]}" ./cmd/... +} + +src_install() { + exeinto /usr/bin + doexe bin/earthly + newexe bin/debugger earthly-debugger + + einstalldocs +} + +pkg_postinst() { + if has_version "app-containers/podman" ; then + ewarn "Podman is supported but not recommended." + ewarn "If issues arise, then please try running earthly with docker." + fi + + if has_version "app-containers/podman[rootless]" ; then + ewarn "Running podman in rootless mode is not supported because" + ewarn "earthly/dind and earthly/buildkit require privileged access." + ewarn "For more info see: https://docs.earthly.dev/docs/guides/podman/" + fi +} -- cgit v1.2.3