commit:     3486a0ed3c0a2c508a23c2a6e857872ca84e5ff4
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu May 23 21:59:52 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu May 23 22:08:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3486a0ed

app-containers/earthly: bump to 0.8.12

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-containers/earthly/Manifest              |  2 +
 app-containers/earthly/earthly-0.8.12.ebuild | 71 ++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/app-containers/earthly/Manifest b/app-containers/earthly/Manifest
index 968bf0e5acab..a63a242e9f67 100644
--- a/app-containers/earthly/Manifest
+++ b/app-containers/earthly/Manifest
@@ -2,6 +2,8 @@ DIST earthly-0.8.10-deps.tar.zst 180360414 BLAKE2B 
c734773657da1194f2708212aca3e
 DIST earthly-0.8.10.tar.gz 8089062 BLAKE2B 
0d3e29b84121d42995c8171a4e39815fb752d2aa36eb00efd0286a8cbd014d1b64db576f654104412433e5403812f1fa8bed2bbcfb981589fdab1fbc30e4dc1f
 SHA512 
1449953fd705f3547f4da9eb53a674a6ef37d30a669b758a9abad5800decef650f57f3ec4436de191c8aff09d4c1b4b4bdaf5e591af1a06d568fdd18ab3670f9
 DIST earthly-0.8.11-deps.tar.zst 180367967 BLAKE2B 
3d321cc6177d4e113662b1ed99b190dd2b344c6295a22d21b278e3a6620c1669eea3572ad6f1300335e23e752b8b029808411604bfef5cdd53c0e353cac7cc31
 SHA512 
b238ffd6996f17ce1f4e87ae3e4705d84cab1161143f06074cedd9bbf89a2feecbace3efe5b4a827471388ff80eb265febc4c59ee2acca9ebf02a8a301974702
 DIST earthly-0.8.11.tar.gz 8089764 BLAKE2B 
2d110482b2643498e0fd8ee03dba5a2d58d9a8d3ceea9507582184e3fe59ae9851fec1fbd16c636b23d2e7044a8375fc6fc3692431f637a043e71c2c2bab572f
 SHA512 
fd92f6a86efd8576c1c75367f4b6e211c04615aaf5504f86192f85b751c628801439c22925797e0b2b775fa02b555b200a728085818e1d49d09f98847e5a99c0
+DIST earthly-0.8.12-deps.tar.xz 163755972 BLAKE2B 
6d5e7e2d157b54818bebca7cc0b57be23be4581660bae8002bb90983cc9478d9d05ebea3dd102123ced6c1f1a8b94f93ca0868c040defa1fb5f0137f901b1c50
 SHA512 
bcfc4eecfceefcf5677f145475406fe4fef9d3a70c177ea657f2f0eec7227c752fcc01b129c001fbb8d9fa6ba934a6425b0fb0957b6812d2f751e7d3b99dd0a2
+DIST earthly-0.8.12.tar.gz 8090651 BLAKE2B 
ce916a50b23bc5567b4174ad88a5a52b9c728b4ee215239f46680fe5574f0cabe353d5a336e395f7eec42c86a726bb0d0da4b5204dcc9654c76a8a8cd3366fb4
 SHA512 
7cc62cc3af6aef039f8059e04564a181dd9b497cb51f15b6a49f2aad4a975147aa30d9109eb1c33cfc74a6f354eae77904d5c0e15e63172cb7ee20874b9bc05e
 DIST earthly-0.8.7-deps.tar.zst 180209748 BLAKE2B 
e4c5f4b856d0ed3a0c757128c144f6267fd763118de12a51877781e82ea15722420c871f5d66a4dd797cc67b85b7c7cd26a1d2e8f417bd5517f1109e376bbefc
 SHA512 
b8dc56b302aca63837a87cfcced4d0387adaea5433b72eb7c7056dab8a486208d06fff39b4ecd753a30f27878b1497eb1892456876e7632ee2c44926747a12d6
 DIST earthly-0.8.7.tar.gz 8062437 BLAKE2B 
82796711c13cb7fd2bf957148ddd7ff31d14b9888b30a910682b956ecb8cd9c66539a71b558f92f972b54c566411257c769dadfe2e1d720d9a4e496292185d48
 SHA512 
c8bddfc2c4e5702abb5c119a022ab5cc875b460535fb5af4364ee7bd89e950768f71fe1ccf1860d0826d8934b283745ca22abae147852a7b779081373b40be4f
 DIST earthly-0.8.8-deps.tar.zst 180214607 BLAKE2B 
f407dcc4cb8daee7ac53433af830b6c872b0c9e1e05004b2bc4c8706eb98b65e457f7bea2b221e6c4cf4dfe8bb218a5ca60e85beb1f7839cb0ffaadaf8110ad3
 SHA512 
6a9d0eb7a69b36cca2f79d3f92e21f9f97d858451308f7151e4810c479105b7dad3fe2ad1b8a90a6ca9f0c7d3d06a8f89cd3eab4fde54e10fae2e3ea98fbb7bb

diff --git a/app-containers/earthly/earthly-0.8.12.ebuild 
b/app-containers/earthly/earthly-0.8.12.ebuild
new file mode 100644
index 000000000000..5c52ef303f21
--- /dev/null
+++ b/app-containers/earthly/earthly-0.8.12.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 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.8.12" ]] ; then
+       COMMIT_SHA="7dbb0eab6af95b6f43483ff4065445470252f522"
+else
+       die 'Could not detect "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() {
+       local -r 
go_tags="dfrunmount,dfrunsecurity,dfsecrets,dfssh,dfrunnetwork,dfheredoc,forceposix"
+       local -r go_ldflags="
+               -X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${PV}
+               -X main.GitSha=${COMMIT_SHA}
+               -X main.Version=v${PV}
+       "
+       local -a -r 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
+}

Reply via email to