1 |
commit: 7aea2010acbebf26a341ff7dbe3885bfd3869eff |
2 |
Author: Alexey Zapparov <alexey <AT> zapparov <DOT> com> |
3 |
AuthorDate: Wed Feb 22 03:14:06 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 13:47:01 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aea2010 |
7 |
|
8 |
app-admin/yadm: add 3.2.2 |
9 |
|
10 |
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/29712 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-admin/yadm/Manifest | 1 + |
15 |
app-admin/yadm/yadm-3.2.2.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 91 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/yadm/Manifest b/app-admin/yadm/Manifest |
19 |
index ae7af64fe452..29db1d436867 100644 |
20 |
--- a/app-admin/yadm/Manifest |
21 |
+++ b/app-admin/yadm/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST yadm-3.2.1.tar.gz 109838 BLAKE2B 4e0b829ca6f74c1300b78831d64fd95250bcea7779cca672707751e38129a7e618e8a69b2f3862ac6e87cb086de09380e4e624d54c4672c125d16ea8cc3ea11c SHA512 8ce9bc66a33fc3841e47293e002b834fac5760dc771ede37adfc47a9e911ddade23c0ef5379cf8f00cf9b24853abbc1263198b8439ca4e8a3acd5787fbd935cb |
24 |
+DIST yadm-3.2.2.tar.gz 111249 BLAKE2B 24dceda15f8bcb85df64fce987409feb4a94fac4dacb34f246ee11557e280ca1df3569f6b110fb2de02e6b756e82261a4da1896187b670df1c5e8edf123353cc SHA512 c61da3f644c2f587079fd717d4ef566861f20224f287906ef5b6d07169bc5f02aef7974afd8d4441267a92417a4fd0c7edda562b8f0cf2fc104c91fc0f5f85ff |
25 |
|
26 |
diff --git a/app-admin/yadm/yadm-3.2.2.ebuild b/app-admin/yadm/yadm-3.2.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..eae44112d41c |
29 |
--- /dev/null |
30 |
+++ b/app-admin/yadm/yadm-3.2.2.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2023 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{9..10} ) |
38 |
+inherit bash-completion-r1 python-any-r1 |
39 |
+ |
40 |
+DESCRIPTION="Git based tool for managing dotfiles" |
41 |
+HOMEPAGE="https://github.com/TheLocehiliosan/yadm" |
42 |
+SRC_URI="https://github.com/TheLocehiliosan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-3+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
47 |
+IUSE="test" |
48 |
+ |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ app-shells/bash |
53 |
+ app-crypt/gnupg |
54 |
+ dev-vcs/git |
55 |
+" |
56 |
+ |
57 |
+BDEPEND=" |
58 |
+ test? ( |
59 |
+ ${RDEPEND} |
60 |
+ ${PYTHON_DEPS} |
61 |
+ $(python_gen_any_dep ' |
62 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
63 |
+ ') |
64 |
+ dev-tcltk/expect |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+DOCS=( CHANGES README.md ${PN}.md ) |
69 |
+ |
70 |
+python_check_deps() { |
71 |
+ python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" |
72 |
+} |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ use test && python-any-r1_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+ emake "${PN}.md" |
80 |
+} |
81 |
+ |
82 |
+src_test() { |
83 |
+ # prevent system config having influence on tests |
84 |
+ local -x GIT_CONFIG_NOSYSTEM=1 |
85 |
+ |
86 |
+ # prevent git branch warning, it confuses tests |
87 |
+ local -x GIT_CONFIG_GLOBAL="${HOME}/.gitconfig" |
88 |
+ git config --global init.defaultBranch master || die "setting default branch name failed" |
89 |
+ |
90 |
+ # un-hardcode path to tmp, otherwise encryption tests fail |
91 |
+ sed -e "/^cache_dir/s@/tmp@${T}@" -i pytest.ini || die "cannot patch cache dir" |
92 |
+ |
93 |
+ local EPYTEST_DESELECT=( |
94 |
+ test/test_alt.py # requires envtpl, not packaged |
95 |
+ test/test_compat_jinja.py # ditto |
96 |
+ test/test_unit_template_j2.py # ditto |
97 |
+ test/test_syntax.py # needs new yamllint, not packaged yet |
98 |
+ test/test_upgrade.py::test_upgrade # needs old version of yadm |
99 |
+ test/test_compat_alt.py # tests obsolete features, broken |
100 |
+ test/test_unit_template_esh.py # requires esh, not packaged |
101 |
+ test/test_encryption.py::test_symmetric_encrypt[clean-encrypt_exists-bad_phrase] # hangs in sandbox |
102 |
+ test/test_encryption.py::test_symmetric_encrypt[overwrite-encrypt_exists-bad_phrase] # ditto |
103 |
+ ) |
104 |
+ |
105 |
+ epytest |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ einstalldocs |
110 |
+ |
111 |
+ dobin "${PN}" |
112 |
+ doman "${PN}.1" |
113 |
+ |
114 |
+ dobashcomp completion/bash/yadm |
115 |
+ |
116 |
+ insinto /usr/share/zsh/site-functions |
117 |
+ doins completion/zsh/_${PN} |
118 |
+ |
119 |
+ insinto /usr/share/fish/vendor_completions.d |
120 |
+ doins completion/fish/${PN}.fish |
121 |
+} |