public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/yadm/
Date: Mon, 21 Mar 2022 19:55:39 +0000 (UTC)	[thread overview]
Message-ID: <1647892525.28b33bbe7e43f61e6a53267f3cdce68073aaf1f0.arthurzam@gentoo> (raw)

commit:     28b33bbe7e43f61e6a53267f3cdce68073aaf1f0
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Sun Mar 20 04:54:58 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 19:55:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28b33bbe

app-admin/yadm: add 3.2.1

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>
Co-Authored-By: Arthur Zamarin <arthurzam <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24678
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-admin/yadm/Manifest          |  1 +
 app-admin/yadm/yadm-3.2.1.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/app-admin/yadm/Manifest b/app-admin/yadm/Manifest
index 6478b98da09f..6b45b72e1cb1 100644
--- a/app-admin/yadm/Manifest
+++ b/app-admin/yadm/Manifest
@@ -1,2 +1,3 @@
 DIST yadm-2.4.0.tar.gz 96877 BLAKE2B 462a5816e106c4502007ff34ab338904e14a9851ebcfc7ff79a32a8b11fbbe3e0b7e6538ed6b489ab67e2205c84b2250749e3091c77fa663886dc9792078a576 SHA512 43e16a9502f9dd9f6c6dba3bb5403bb048244a406d44cb42a96a43e62bf7342efd5f302304dbedede61423546787fc929f378d68da9031207e70239ec4e265ce
 DIST yadm-3.1.1.tar.gz 106890 BLAKE2B c85bfdaf15da8e88aea8e1b41af5396111fe95922f38c9709d09d76b6cb515d4aff99f0caaa225baf36bc408f6efe7f53e7b2febd45c78acf2b5f3c897b87290 SHA512 6be40ff6b1130be93649bb533d63ddc2dad626bb3022392863b600b31eef2529df443a9eb24915979bef2d1ea4ef04124668723ffb0ce0f86727f481a3997c74
+DIST yadm-3.2.1.tar.gz 109838 BLAKE2B 4e0b829ca6f74c1300b78831d64fd95250bcea7779cca672707751e38129a7e618e8a69b2f3862ac6e87cb086de09380e4e624d54c4672c125d16ea8cc3ea11c SHA512 8ce9bc66a33fc3841e47293e002b834fac5760dc771ede37adfc47a9e911ddade23c0ef5379cf8f00cf9b24853abbc1263198b8439ca4e8a3acd5787fbd935cb

diff --git a/app-admin/yadm/yadm-3.2.1.ebuild b/app-admin/yadm/yadm-3.2.1.ebuild
new file mode 100644
index 000000000000..4da1c8793b18
--- /dev/null
+++ b/app-admin/yadm/yadm-3.2.1.ebuild
@@ -0,0 +1,90 @@
+# 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
+	)
+"
+
+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
+}


             reply	other threads:[~2022-03-21 19:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 19:55 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-19  9:15 [gentoo-commits] repo/gentoo:master commit in: app-admin/yadm/ Pacho Ramos
2023-04-06  8:34 Arthur Zamarin
2023-04-06  8:33 Arthur Zamarin
2023-04-06  8:20 Arthur Zamarin
2023-02-28 13:58 Joonas Niilola
2023-02-28 13:58 Joonas Niilola
2023-01-19  7:16 Joonas Niilola
2022-12-25 22:06 David Seifert
2022-01-13  2:27 Georgy Yakovlev
2021-11-26 10:20 Marek Szuba
2021-04-01 21:17 Sam James
2020-03-31  8:39 Joonas Niilola
2020-03-28  0:33 Georgy Yakovlev
2020-03-28  0:33 Georgy Yakovlev
2017-12-31 20:46 Patrice Clement
2017-08-09 11:02 Michael Palimaka
2017-08-08 11:03 Amy Liffey
2017-02-18  1:44 Michael Palimaka
2017-02-17 12:07 Michael Palimaka
2017-01-21 23:01 Patrice Clement
2017-01-21 21:19 Patrice Clement
2016-09-27 20:21 Patrice Clement
2016-04-30 14:34 Sam Jorna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1647892525.28b33bbe7e43f61e6a53267f3cdce68073aaf1f0.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox