From 12795ed0561fe52503d6aa3a1c60888553a03bd2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Oct 2023 20:41:49 +0100 Subject: gentoo auto-resync : 26:10:2023 - 20:41:49 --- app-containers/earthly/Manifest | 3 ++ app-containers/earthly/earthly-0.7.21.ebuild | 73 ++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 app-containers/earthly/earthly-0.7.21.ebuild (limited to 'app-containers/earthly') diff --git a/app-containers/earthly/Manifest b/app-containers/earthly/Manifest index 762c14bb4935..76559ee83d33 100644 --- a/app-containers/earthly/Manifest +++ b/app-containers/earthly/Manifest @@ -4,7 +4,10 @@ DIST earthly-0.7.19-deps.tar.xz 152930992 BLAKE2B 436e66036a5772a8bb2f283522f064 DIST earthly-0.7.19.tar.gz 7758683 BLAKE2B e81ca5c98bf92b69dff497202d9ec202d528422c16e435a90ef4758886f0b09ffed32e2a256e961db54aefd7549ba93d0983cddbb7cb878f747dcf4702fc1442 SHA512 b57215fd6dff2bbe4b2e559bc535746abdef6ddef9f808cce9519c6bff7578fb735923733ef2e4607fbbf00b9fcbde5a1f60cbb7098bc66b12165749d9404d84 DIST earthly-0.7.20-deps.tar.xz 152928984 BLAKE2B f7a17986f79c5557fa92313d4405fbfd048462933bdf2a798065f443a9f8a9d60e47a78a51580eec3a779c77147a06314742221910ca855eb580194a9d072395 SHA512 59be72396b9241e6d59fc17628b97ea962e43d119587a2a92f84715105006f96f94c6f394703f4efaba07e04eeaa4fae223bab257d00275360b217b0c614920a DIST earthly-0.7.20.tar.gz 7768141 BLAKE2B 6a00cd29ca6b6066d432342218f37ac27fcdf494dd7190b3c0ac590a0d13f01efcd5d7af9a51f39cc2b60071b25a346c6574d3b81b7c072c57db99ee303f8899 SHA512 be917a5d34dc7929616a9f708b39863b1de791e59a1b5940413a6245a9c4878b477a85dec20b47ab08e3662da5bc90096f86202a4f37c303291ce65d497a8aa9 +DIST earthly-0.7.21-deps.tar.xz 153233840 BLAKE2B e5f2590997eb839232a84bc75c787ad86434b1992b61a64fb312e55034356c37af041d99aeb792386209c22b50488a4a023a3f96d6a71fd1618d42352a90c82a SHA512 7ebde8158672dd63d35be2a2ac1eef4cb3ae7b48c312dca9a856676520d959467766cbcc2449b3bf899fa730283fc78c05bccf465c2fefb18226c7779267dd6e +DIST earthly-0.7.21.tar.gz 7788611 BLAKE2B 697194102a3d0af16744b42f2489a38db588ddfcc4d9e3358f259733500a69c188e11e71f6f5e9900a36c91b84d0314a6defdea339d4882f0490f2a9a4119408 SHA512 408298019bdb5797d96edd008b8e430de2cce701c93cb2f55a0faf5a9a4865e26283d8a80b82163e8b51ef82518ec35a7530aa887d598c15027243f6008954d1 EBUILD earthly-0.7.17.ebuild 1804 BLAKE2B 5f452d7b0393ac49fedeffa3e21097084c1e003ad13df53644f3d746a197ae7aa0feda9e4fac6bf55123c0f03f411a028bca1d480a1c998140c8ef329d27ae19 SHA512 c7b0122e566de025dbbd84183f27f7441bb5aecf95174030a50ec371e1e03d9bbe8edd23bffc0a18df124f772a40cb31fc5e8736aea7162c6b54aef10ed698d5 EBUILD earthly-0.7.19.ebuild 1809 BLAKE2B a770adeb302567ccbee97f5e124b9a5fdcabad168d8aa3f3beb2895d1d756ddd0d964b7502abd11eaf5a001b05e0457067768683ff49d8d5a43167167d2ce25a SHA512 5ec2eb708e7c2c9d5a8f8e87bf33a9582ddc7e31b6fe4f9d8ad64385ad972e0ca456c40545f7ccc538b209ed301cb8e465f2dfadf818293044f4b28f6c336e5a EBUILD earthly-0.7.20.ebuild 1816 BLAKE2B 6514a28442c53144c343ee5e93ccfb1ca36f0ca6bac46bebd5ef748177af909d2488823b180a59ae39f6d9edc225bc027032b7166a9245adb17ce1c4d82b85ee SHA512 c2cdab54f4e870dbf3176ddbd7f483dfb8f970dc6693f2799788ac394f0560b747cfc2bec1b0f5067569556390fd6d9b6f378b1d006b746efec7dd7111e2bd4b +EBUILD earthly-0.7.21.ebuild 1816 BLAKE2B 3e65eb0b1c0d37be1176bdeb3b39ee8459d437e437d6ba5614c30d949296ddab33a4befd529b25f3871a8cf840a508e06c8c4fecf9d13e11c1d35486301bd961 SHA512 998f8c4c9fe5249b70160fa93fefa21c5ddfe8868fc78b0a71b9d36e021b655c5d36aa53669c20e89eaabf922b11fc24d4734abd50307ebc04f2723c46021509 MISC metadata.xml 927 BLAKE2B b7d5184df16f39603bf6df8b503e701d737fec188d1d97673e4ca59babd990c1b872784c91db04c74d9a08dbffa76f4e7530d8b021cbbe9ae51fd9966f709522 SHA512 f7f49eb583b2b5a9939c26e9eaff3917392525c3a94e5f8274c89b69e172547ad02fa4ed1b078e7d778f765659e1b9a7cf99d88042034cfbfbef54e685c8b6dd diff --git a/app-containers/earthly/earthly-0.7.21.ebuild b/app-containers/earthly/earthly-0.7.21.ebuild new file mode 100644 index 000000000000..f2aea31a3a87 --- /dev/null +++ b/app-containers/earthly/earthly-0.7.21.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.21 ]] ; then + GIT_COMMIT_SHA="f4c9f47e48c3815e95fe9574e824524d34a20219" +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