From 96d72066778fc1d8743b108d6bf7f06f5b5e7d0f Mon Sep 17 00:00:00 2001 From: David Roman Date: Tue, 3 Jun 2025 11:39:38 +0200 Subject: [PATCH] www-misc/buku: add 5.0 Signed-off-by: David Roman Part-of: https://github.com/gentoo/gentoo/pull/42420 Closes: https://github.com/gentoo/gentoo/pull/42420 Signed-off-by: Sam James --- www-misc/buku/Manifest | 1 + www-misc/buku/buku-5.0.ebuild | 76 +++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 www-misc/buku/buku-5.0.ebuild diff --git a/www-misc/buku/Manifest b/www-misc/buku/Manifest index 3783191f5adee..b143bc5c2c9ad 100644 --- a/www-misc/buku/Manifest +++ b/www-misc/buku/Manifest @@ -1 +1,2 @@ DIST buku-4.9.tar.gz 615794 BLAKE2B 79e0b7980d1df2b063be5b115c6d55fce63b9e9a58bae5c1ae4d81d77b644c90df2698e20a1743daf5468f4b08ab7b2125af073906385693419249b989686f3f SHA512 3804ea759c3b0172ab07b266123b27683f4785f1fb10859b4fd5b41e267b93e6ad0901b2456a27e434aef216f2063c5881d2755ec45789b3f2d42fe608b32eb2 +DIST buku-5.0.tar.gz 662828 BLAKE2B 8226a38480b7beb4619285833f01b72fd0f6301df0ff298e2484a171aa7b43ae403140ecd0651d6e24080edcea2d3337233eecbfbb15bd7e3362d409ba221744 SHA512 4f067f646da709c0ec0021eb50440ec0f5a1119fc52233941a1a5d6f6c4650656858f17ce95f84a63f40ffad10ca8bb0f7e1e5a194f59eef33ab165951b5ac7c diff --git a/www-misc/buku/buku-5.0.ebuild b/www-misc/buku/buku-5.0.ebuild new file mode 100644 index 0000000000000..d041b16add663 --- /dev/null +++ b/www-misc/buku/buku-5.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 shell-completion + +DESCRIPTION="Powerful command-line bookmark manager" +HOMEPAGE="https://github.com/jarun/buku" +SRC_URI="https://github.com/jarun/${PN}/archive/v$(ver_cut 1-2).tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/beautifulsoup4-4.6.0[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + test? ( + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/click-7.0[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + >=dev-python/py-1.5.0[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/pyyaml-4.2[${PYTHON_USEDEP}] + >=dev-python/vcrpy-4.0.2[${PYTHON_USEDEP}] + ) +" + +EPYTEST_IGNORE=( + # bukuserver tests + tests/test_views.py + tests/test_server.py +) + +EPYTEST_DESELECT=( + # Broken with network-sandbox + tests/test_buku.py::test_network_handler_with_url + tests/test_buku.py::test_fetch_data_with_url + tests/test_bukuDb.py::TestBukuDb::test_tnyfy_url + tests/test_bukuDb.py::test_add_rec_exec_arg + tests/test_bukuDb.py::test_load_firefox + tests/test_bukuDb.py::test_print_db + tests/test_bukuDb.py::test_print_rec + tests/test_bukuDb.py::test_refreshdb +) + +distutils_enable_tests pytest + +python_prepare_all() { + # Remove support for bukuserver - complex depgraph which isn't all + # sufficiently packaged in Gentoo + sed -ie '/console_scripts/s/,.*/]/' setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + newbashcomp auto-completion/bash/buku-completion.bash "${PN}" + newzshcomp auto-completion/zsh/_buku _buku + newfishcomp auto-completion/fish/buku.fish buku.fish + + doman buku.1 +}