1 |
commit: da660816f0c85116f87b36d18a3a8881a677f80b |
2 |
Author: Marco Sirabella <marco <AT> sirabella <DOT> org> |
3 |
AuthorDate: Tue Mar 1 17:12:35 2022 +0000 |
4 |
Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 5 14:27:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da660816 |
7 |
|
8 |
app-misc/khard: Compile documentation with sphinx |
9 |
|
10 |
requires new package dev-python/sphinx-autoapi |
11 |
|
12 |
Signed-off-by: Marco Sirabella <marco <AT> sirabella.org> |
13 |
Signed-off-by: Andriy Utkin <andrey_utkin <AT> gentoo.org> |
14 |
|
15 |
app-misc/khard/khard-0.17.0-r2.ebuild | 70 +++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 70 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/khard/khard-0.17.0-r2.ebuild b/app-misc/khard/khard-0.17.0-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..cbed6c2c6b4e |
21 |
--- /dev/null |
22 |
+++ b/app-misc/khard/khard-0.17.0-r2.ebuild |
23 |
@@ -0,0 +1,70 @@ |
24 |
+# Copyright 1999-2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+DISTUTILS_USE_PEP517=setuptools |
30 |
+PYTHON_COMPAT=( python3_{8..10} ) |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+DESCRIPTION="Console CardDAV client" |
34 |
+HOMEPAGE="https://github.com/scheibler/khard" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="0" |
38 |
+ |
39 |
+if [[ "${PV}" == *9999 ]]; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/scheibler/khard" |
42 |
+else |
43 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
45 |
+fi |
46 |
+ |
47 |
+IUSE="doc" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/atomicwrites[${PYTHON_USEDEP}] |
51 |
+ dev-python/configobj[${PYTHON_USEDEP}] |
52 |
+ dev-python/ruamel-yaml[${PYTHON_USEDEP}] |
53 |
+ dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}] |
54 |
+ dev-python/unidecode[${PYTHON_USEDEP}] |
55 |
+ dev-python/vobject[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+BDEPEND=" |
58 |
+ test? ( |
59 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
60 |
+ ) |
61 |
+ doc? ( |
62 |
+ dev-python/sphinx |
63 |
+ dev-python/sphinx-autoapi |
64 |
+ dev-python/sphinx-autodoc-typehints |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+DOCS=( CHANGES CONTRIBUTING.rst README.md doc/source/examples/khard.conf.example ) |
69 |
+ |
70 |
+distutils_enable_tests setup.py |
71 |
+ |
72 |
+src_compile() { |
73 |
+ distutils-r1_src_compile |
74 |
+ |
75 |
+ if use doc; then |
76 |
+ emake -j1 -C doc/ html text man info |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ if use doc; then |
82 |
+ DOCS+=( doc/build/text/ ) |
83 |
+ HTML_DOCS+=( doc/build/html/ ) |
84 |
+ |
85 |
+ doman doc/build/man/* |
86 |
+ doinfo doc/build/texinfo/*.info |
87 |
+ fi |
88 |
+ |
89 |
+ distutils-r1_src_install |
90 |
+ |
91 |
+ insinto /usr/share/zsh/site-functions |
92 |
+ doins misc/zsh/_khard |
93 |
+} |