commit:     632c50769e43d34b17c389636f4e2f5c1c61fdc4
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat May 10 18:54:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 11 00:27:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=632c5076

app-admin/yadm: add 3.5.0

Bug: https://bugs.gentoo.org/952174
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42020
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-admin/yadm/Manifest          |  1 +
 app-admin/yadm/yadm-3.5.0.ebuild | 99 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/app-admin/yadm/Manifest b/app-admin/yadm/Manifest
index 1845101b5b08..ef4fa97ed9dd 100644
--- a/app-admin/yadm/Manifest
+++ b/app-admin/yadm/Manifest
@@ -1 +1,2 @@
 DIST yadm-3.2.2.tar.gz 111249 BLAKE2B 
24dceda15f8bcb85df64fce987409feb4a94fac4dacb34f246ee11557e280ca1df3569f6b110fb2de02e6b756e82261a4da1896187b670df1c5e8edf123353cc
 SHA512 
c61da3f644c2f587079fd717d4ef566861f20224f287906ef5b6d07169bc5f02aef7974afd8d4441267a92417a4fd0c7edda562b8f0cf2fc104c91fc0f5f85ff
+DIST yadm-3.5.0.tar.gz 116502 BLAKE2B 
e927c2941d824f4e37bf06159311c6040bc0197999b4b993b79d68a354235ea504beeebf63a39b36fbe1de95abfc1845286d62ec800370b8caee014ccb6a08fd
 SHA512 
dcaaa4520790d3e5870067d9bf1574362af8f87cc9195a8252818317a88820e99dd7e2eead0896000889988a331d2c36adf3dbd701458a8024f4206c207e8ab9

diff --git a/app-admin/yadm/yadm-3.5.0.ebuild b/app-admin/yadm/yadm-3.5.0.ebuild
new file mode 100644
index 000000000000..8f72988c139c
--- /dev/null
+++ b/app-admin/yadm/yadm-3.5.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+inherit python-any-r1 shell-completion
+
+DESCRIPTION="Git based tool for managing dotfiles"
+HOMEPAGE="https://github.com/yadm-dev/yadm";
+SRC_URI="
+       https://github.com/yadm-dev/yadm/archive/${PV}.tar.gz
+               -> ${P}.tar.gz
+"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       app-crypt/gnupg
+       app-shells/bash
+       dev-vcs/git
+"
+
+BDEPEND="
+       test? (
+               ${RDEPEND}
+               ${PYTHON_DEPS}
+               $(python_gen_any_dep '
+                       dev-python/pytest[${PYTHON_USEDEP}]
+               ')
+               dev-tcltk/expect
+       )
+"
+
+DOCS=( CHANGES README.md ${PN}.md )
+
+python_check_deps() {
+       python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
+src_compile() {
+       emake "${PN}.md"
+}
+
+src_test() {
+       # prevent system config having influence on tests
+       local -x GIT_CONFIG_NOSYSTEM=1
+
+       # prevent git branch warning, it confuses tests
+       local -x GIT_CONFIG_GLOBAL="${HOME}/.gitconfig"
+       git config --global init.defaultBranch master || die "setting default 
branch name failed"
+
+       local EPYTEST_DESELECT=(
+               # requires envtpl, not packaged
+               test/test_alt.py::test_alt_templates[t-envtpl]
+               test/test_alt.py::test_alt_templates[template-envtpl]
+               test/test_alt.py::test_alt_templates[yadm-envtpl]
+               # requires esh
+               test/test_alt.py::test_alt_templates[t-esh]
+               test/test_alt.py::test_alt_templates[template-esh]
+               test/test_alt.py::test_alt_templates[yadm-esh]
+               test/test_unit_template_esh.py
+               # requires j2cli
+               test/test_alt.py::test_alt_templates[t-j2cli]
+               test/test_alt.py::test_alt_templates[t-j2]
+               test/test_alt.py::test_alt_templates[template-j2cli]
+               test/test_alt.py::test_alt_templates[template-j2]
+               test/test_alt.py::test_alt_templates[yadm-j2cli]
+               test/test_alt.py::test_alt_templates[yadm-j2]
+               test/test_unit_template_j2.py
+
+               # needs old version of yadm
+               test/test_upgrade.py::test_upgrade
+
+               # Requires very specific versions to test against
+               test/test_syntax.py
+       )
+
+       epytest
+}
+
+src_install() {
+       einstalldocs
+
+       dobin "${PN}"
+       doman "${PN}.1"
+
+       dobashcomp completion/bash/yadm
+       dozshcomp completion/zsh/_${PN}
+       dofishcomp completion/fish/${PN}.fish
+}

Reply via email to