1 |
commit: 079f435563a6c7560f67b1110548d968c280b0c9 |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 17 22:34:43 2021 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 17 22:35:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=079f4355 |
7 |
|
8 |
www-misc/buku: add 4.6 |
9 |
|
10 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
11 |
|
12 |
www-misc/buku/Manifest | 1 + |
13 |
www-misc/buku/buku-4.6.ebuild | 95 +++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 96 insertions(+) |
15 |
|
16 |
diff --git a/www-misc/buku/Manifest b/www-misc/buku/Manifest |
17 |
index ea27579d575..128a7832af2 100644 |
18 |
--- a/www-misc/buku/Manifest |
19 |
+++ b/www-misc/buku/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST buku-4.5.tar.gz 488913 BLAKE2B 29ed93fa9af4503f72a711889fbf17d86bcde1bc1abbfc88242c4ebd18f1c1a57077781eebdd79d9d993078d2f5b5883c9a0ec4fee94e37c0e7bfb727c5154d0 SHA512 7bbb598d5c970e8e594d58c0a18f9b85245d4a214c01d64b537a5ccaadab32c964521046b90754c2f2c721bf816dc7f4438cfeff3a7e7eec75ce958cc41dfa7d |
22 |
+DIST buku-4.6.tar.gz 491809 BLAKE2B 82597b845c56dadf1cc6973d1f3ce6cc4970230d08ac700cf286a8c41420144fb1f42817ab808041600ab8414d96f3a3883c1bd8fbe89f29570d877a495dcd96 SHA512 1c46006d8c950811493a8c11453d51557cac3f6346ea28d66dcb2ae3e4c52727af7349b4b6ea088f9c08a7e9d09e3a4d80679b41497b6cd0844d811f81c9811a |
23 |
|
24 |
diff --git a/www-misc/buku/buku-4.6.ebuild b/www-misc/buku/buku-4.6.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..d7dd628bd78 |
27 |
--- /dev/null |
28 |
+++ b/www-misc/buku/buku-4.6.ebuild |
29 |
@@ -0,0 +1,95 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
36 |
+PYTHON_REQ_USE="sqlite" |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+ |
39 |
+inherit bash-completion-r1 distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Powerful command-line bookmark manager" |
42 |
+HOMEPAGE="https://github.com/jarun/buku" |
43 |
+SRC_URI="https://github.com/jarun/${PN}/archive/v$(ver_cut 1-2).tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/beautifulsoup-4.6.0[${PYTHON_USEDEP}] |
53 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}] |
55 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ test? ( |
59 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/click-7.0[${PYTHON_USEDEP}] |
61 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/py-1.5.0[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/pyyaml-4.2[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/vcrpy-4.0.2[${PYTHON_USEDEP}] |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ #"${FILESDIR}/${P}-hypothesis-fix.patch" |
71 |
+) |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ # Remove support for bukuserver - complex depgraph which isn't all |
75 |
+ # sufficiently packaged in Gentoo |
76 |
+ sed -ie '/console_scripts/s/,.*/]/' setup.py || die |
77 |
+ sed -ie 's/.*bukuserver.*//' tests/test_views.py || die |
78 |
+ sed -ie 's/.*flask.*//' tests/test_views.py || die |
79 |
+ |
80 |
+ distutils-r1_python_prepare_all |
81 |
+} |
82 |
+ |
83 |
+python_install_all() { |
84 |
+ distutils-r1_python_install_all |
85 |
+ |
86 |
+ insinto /usr/share/zsh/site-functions |
87 |
+ doins auto-completion/zsh/_* |
88 |
+ |
89 |
+ newbashcomp auto-completion/bash/buku-completion.bash "${PN}" |
90 |
+ |
91 |
+ doman buku.1 |
92 |
+} |
93 |
+ |
94 |
+python_test() { |
95 |
+ local skipped_tests=( |
96 |
+ # Disable tests related to bukuserver |
97 |
+ tests/test_setup.py::test_bukuserver_requirement |
98 |
+ tests/test_views.py::test_bmv_create_form |
99 |
+ tests/test_views.py::test_bookmark_model_view |
100 |
+ tests/test_views.py::test_load_firefox_database |
101 |
+ tests/test_views.py::test_tag_model_view_get_list |
102 |
+ tests/test_views.py::test_tag_model_view_get_list_empty_db |
103 |
+ |
104 |
+ # Broken with network-sandbox |
105 |
+ tests/test_buku.py::test_network_handler_with_url |
106 |
+ tests/test_bukuDb.py::TestBukuDb::test_tnyfy_url |
107 |
+ tests/test_bukuDb.py::test_add_rec_exec_arg |
108 |
+ tests/test_bukuDb.py::test_load_firefox |
109 |
+ tests/test_bukuDb.py::test_print_db |
110 |
+ tests/test_bukuDb.py::test_print_rec |
111 |
+ tests/test_bukuDb.py::test_refreshdb |
112 |
+ |
113 |
+ # Hard to debug sandbox issue - these pass when run outside portage |
114 |
+ # There also appears to be some state issue between these, because |
115 |
+ # skipping one can result in a later one failing. |
116 |
+ tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-True-False] |
117 |
+ tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-False-True] |
118 |
+ tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-False-False] |
119 |
+ tests/test_bukuDb.py::test_delete_rec_index_and_delay_commit[1-True-True] |
120 |
+ ) |
121 |
+ |
122 |
+ # tests/test_server.py is bukuserver tests, ignore it |
123 |
+ pytest -v --ignore tests/test_server.py ${skipped_tests[@]/#/--deselect } || die "Tests failed with ${EPYTHON}" |
124 |
+} |