From 158e7d0067767d034ef3a86a07afbf5bb9bf579f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 28 Feb 2023 16:04:24 +0000 Subject: gentoo auto-resync : 28:02:2023 - 16:04:24 --- app-admin/Manifest.gz | Bin 32356 -> 32357 bytes app-admin/yadm/Manifest | 2 + app-admin/yadm/yadm-3.2.2.ebuild | 90 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 app-admin/yadm/yadm-3.2.2.ebuild (limited to 'app-admin') diff --git a/app-admin/Manifest.gz b/app-admin/Manifest.gz index a3a86375eb74..73a26302cd94 100644 Binary files a/app-admin/Manifest.gz and b/app-admin/Manifest.gz differ diff --git a/app-admin/yadm/Manifest b/app-admin/yadm/Manifest index 71694c233e6f..823d4545554f 100644 --- a/app-admin/yadm/Manifest +++ b/app-admin/yadm/Manifest @@ -1,3 +1,5 @@ DIST yadm-3.2.1.tar.gz 109838 BLAKE2B 4e0b829ca6f74c1300b78831d64fd95250bcea7779cca672707751e38129a7e618e8a69b2f3862ac6e87cb086de09380e4e624d54c4672c125d16ea8cc3ea11c SHA512 8ce9bc66a33fc3841e47293e002b834fac5760dc771ede37adfc47a9e911ddade23c0ef5379cf8f00cf9b24853abbc1263198b8439ca4e8a3acd5787fbd935cb +DIST yadm-3.2.2.tar.gz 111249 BLAKE2B 24dceda15f8bcb85df64fce987409feb4a94fac4dacb34f246ee11557e280ca1df3569f6b110fb2de02e6b756e82261a4da1896187b670df1c5e8edf123353cc SHA512 c61da3f644c2f587079fd717d4ef566861f20224f287906ef5b6d07169bc5f02aef7974afd8d4441267a92417a4fd0c7edda562b8f0cf2fc104c91fc0f5f85ff EBUILD yadm-3.2.1.ebuild 2184 BLAKE2B 313106ec99aac906658acc27ba53487f4d56d9dc6fc2845ce7778a77d8835efcea985be355ecf2aeb4231f04a69926aefe463325e4f5ac791ff7a66b2a204325 SHA512 e75793927ee1f135d5b41a26c6176e67f3769bfaab8689f06f228bc54637591f701dcdc23dd5a4347634ac817f90738422334a82a48cf189c94eb326a289dae7 +EBUILD yadm-3.2.2.ebuild 2185 BLAKE2B 536133b2a435c1976a92f291e54e63b7074a5fe50d57e44872049cd084aa0fef1b02acdcb519703b572f001993d3d1a05c15d6197dd224418f9d850d0d4b6161 SHA512 70d71233d9a9de3f1aec94f5ae47b661d8aed0e38950a98d0c43478aa3fd760f536b6dee0705ea190a11e0d1f36d35af794790093a8cbdf121ba0c535751d4ba MISC metadata.xml 827 BLAKE2B 3cddd298559cd7c5e00921b511118663c6642169571ace6772677cb7a6e77c663258cd889c4b2278b6323f926a0d2b9ae74460af3187831ffedf22701e954e7c SHA512 91de5fd93dd9325cdb1bd4c9b2b7ff063424d3f0b9e3f87c61c5b25739f3151f07fcdf4c2a73fe52023a24f5bbc78ef860d95bddb64e9748dcf6fd4858e3b2b9 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..84a40d3dccec --- /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-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" + + # 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 +} -- cgit v1.2.3