From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0ACB9158031 for ; Tue, 28 Feb 2023 13:58:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFAA7E07B3; Tue, 28 Feb 2023 13:58:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A72A5E0788 for ; Tue, 28 Feb 2023 13:58:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 79FF4340C39 for ; Tue, 28 Feb 2023 13:58:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F5388B6 for ; Tue, 28 Feb 2023 13:58:42 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1677592021.7aea2010acbebf26a341ff7dbe3885bfd3869eff.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/yadm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/yadm/Manifest app-admin/yadm/yadm-3.2.2.ebuild X-VCS-Directories: app-admin/yadm/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 7aea2010acbebf26a341ff7dbe3885bfd3869eff X-VCS-Branch: master Date: Tue, 28 Feb 2023 13:58:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 603f1f84-d1ee-4c51-a6a3-057a881c9201 X-Archives-Hash: be552e51a86a290e772ad73fcf7d3459 commit: 7aea2010acbebf26a341ff7dbe3885bfd3869eff Author: Alexey Zapparov zapparov com> AuthorDate: Wed Feb 22 03:14:06 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Feb 28 13:47:01 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aea2010 app-admin/yadm: add 3.2.2 Signed-off-by: Alexey Zapparov zapparov.com> Closes: https://github.com/gentoo/gentoo/pull/29712 Signed-off-by: Joonas Niilola gentoo.org> app-admin/yadm/Manifest | 1 + app-admin/yadm/yadm-3.2.2.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/app-admin/yadm/Manifest b/app-admin/yadm/Manifest index ae7af64fe452..29db1d436867 100644 --- a/app-admin/yadm/Manifest +++ b/app-admin/yadm/Manifest @@ -1 +1,2 @@ DIST yadm-3.2.1.tar.gz 109838 BLAKE2B 4e0b829ca6f74c1300b78831d64fd95250bcea7779cca672707751e38129a7e618e8a69b2f3862ac6e87cb086de09380e4e624d54c4672c125d16ea8cc3ea11c SHA512 8ce9bc66a33fc3841e47293e002b834fac5760dc771ede37adfc47a9e911ddade23c0ef5379cf8f00cf9b24853abbc1263198b8439ca4e8a3acd5787fbd935cb +DIST yadm-3.2.2.tar.gz 111249 BLAKE2B 24dceda15f8bcb85df64fce987409feb4a94fac4dacb34f246ee11557e280ca1df3569f6b110fb2de02e6b756e82261a4da1896187b670df1c5e8edf123353cc SHA512 c61da3f644c2f587079fd717d4ef566861f20224f287906ef5b6d07169bc5f02aef7974afd8d4441267a92417a4fd0c7edda562b8f0cf2fc104c91fc0f5f85ff diff --git a/app-admin/yadm/yadm-3.2.2.ebuild b/app-admin/yadm/yadm-3.2.2.ebuild new file mode 100644 index 000000000000..eae44112d41c --- /dev/null +++ b/app-admin/yadm/yadm-3.2.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) +inherit bash-completion-r1 python-any-r1 + +DESCRIPTION="Git based tool for managing dotfiles" +HOMEPAGE="https://github.com/TheLocehiliosan/yadm" +SRC_URI="https://github.com/TheLocehiliosan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + app-shells/bash + app-crypt/gnupg + 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" + + # un-hardcode path to tmp, otherwise encryption tests fail + sed -e "/^cache_dir/s@/tmp@${T}@" -i pytest.ini || die "cannot patch cache dir" + + local EPYTEST_DESELECT=( + test/test_alt.py # requires envtpl, not packaged + test/test_compat_jinja.py # ditto + test/test_unit_template_j2.py # ditto + test/test_syntax.py # needs new yamllint, not packaged yet + test/test_upgrade.py::test_upgrade # needs old version of yadm + test/test_compat_alt.py # tests obsolete features, broken + test/test_unit_template_esh.py # requires esh, not packaged + test/test_encryption.py::test_symmetric_encrypt[clean-encrypt_exists-bad_phrase] # hangs in sandbox + test/test_encryption.py::test_symmetric_encrypt[overwrite-encrypt_exists-bad_phrase] # ditto + ) + + epytest +} + +src_install() { + einstalldocs + + dobin "${PN}" + doman "${PN}.1" + + dobashcomp completion/bash/yadm + + insinto /usr/share/zsh/site-functions + doins completion/zsh/_${PN} + + insinto /usr/share/fish/vendor_completions.d + doins completion/fish/${PN}.fish +}