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 89D9F158087 for ; Thu, 13 Jan 2022 02:27:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCD672BC00A; Thu, 13 Jan 2022 02:27:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 978D92BC00A for ; Thu, 13 Jan 2022 02:27:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B836334335C for ; Thu, 13 Jan 2022 02:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64232258 for ; Thu, 13 Jan 2022 02:27:56 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1642040871.5b34e0b3520ed5064147860bedf181b2d05934e1.gyakovlev@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.1.1.ebuild X-VCS-Directories: app-admin/yadm/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 5b34e0b3520ed5064147860bedf181b2d05934e1 X-VCS-Branch: master Date: Thu, 13 Jan 2022 02:27:56 +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: a7e459fb-43a9-476d-8010-e64a705bfcad X-Archives-Hash: 8f473ccee724ba94a8dba6486205ab93 commit: 5b34e0b3520ed5064147860bedf181b2d05934e1 Author: Alexey Zapparov zapparov com> AuthorDate: Thu Jan 13 01:39:52 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Jan 13 02:27:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b34e0b3 app-admin/yadm: add 3.1.1 Co-Authored-By: Georgy Yakovlev gentoo.org> Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alexey Zapparov zapparov.com> Closes: https://github.com/gentoo/gentoo/pull/23723 Signed-off-by: Georgy Yakovlev gentoo.org> app-admin/yadm/Manifest | 1 + app-admin/yadm/yadm-3.1.1.ebuild | 88 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/app-admin/yadm/Manifest b/app-admin/yadm/Manifest index 2a3b64f3cdf2..6478b98da09f 100644 --- a/app-admin/yadm/Manifest +++ b/app-admin/yadm/Manifest @@ -1 +1,2 @@ DIST yadm-2.4.0.tar.gz 96877 BLAKE2B 462a5816e106c4502007ff34ab338904e14a9851ebcfc7ff79a32a8b11fbbe3e0b7e6538ed6b489ab67e2205c84b2250749e3091c77fa663886dc9792078a576 SHA512 43e16a9502f9dd9f6c6dba3bb5403bb048244a406d44cb42a96a43e62bf7342efd5f302304dbedede61423546787fc929f378d68da9031207e70239ec4e265ce +DIST yadm-3.1.1.tar.gz 106890 BLAKE2B c85bfdaf15da8e88aea8e1b41af5396111fe95922f38c9709d09d76b6cb515d4aff99f0caaa225baf36bc408f6efe7f53e7b2febd45c78acf2b5f3c897b87290 SHA512 6be40ff6b1130be93649bb533d63ddc2dad626bb3022392863b600b31eef2529df443a9eb24915979bef2d1ea4ef04124668723ffb0ce0f86727f481a3997c74 diff --git a/app-admin/yadm/yadm-3.1.1.ebuild b/app-admin/yadm/yadm-3.1.1.ebuild new file mode 100644 index 000000000000..b2d7cb882037 --- /dev/null +++ b/app-admin/yadm/yadm-3.1.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit bash-completion-r1 python-any-r1 python-utils-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 + ) +" + +python_check_deps() { + 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 -i "s@^cache_dir = /tmp@cache_dir = ${TMPDIR}@" pytest.ini || die + + 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 +}