diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-18 21:36:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-18 21:36:58 +0100 |
commit | ea4d97bae88695501ff5f5c646a57e2e0488e423 (patch) | |
tree | afc4100ae641b360049e5bc3a2e1cc4c408641bb /www-client/qutebrowser/qutebrowser-9999.ebuild | |
parent | a2f7cdda45fadf1f967379421e8d808b1a503cd3 (diff) |
gentoo auto-resync : 18:08:2023 - 21:36:58
Diffstat (limited to 'www-client/qutebrowser/qutebrowser-9999.ebuild')
-rw-r--r-- | www-client/qutebrowser/qutebrowser-9999.ebuild | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/www-client/qutebrowser/qutebrowser-9999.ebuild b/www-client/qutebrowser/qutebrowser-9999.ebuild index 8319d7eaab10..98701890400a 100644 --- a/www-client/qutebrowser/qutebrowser-9999.ebuild +++ b/www-client/qutebrowser/qutebrowser-9999.ebuild @@ -15,12 +15,17 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/qutebrowser/qutebrowser.git" else - SRC_URI="https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz" + inherit verify-sig + SRC_URI=" + https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz.asc ) + " + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/qutebrowser.gpg" KEYWORDS="~amd64 ~arm64 ~x86" fi DESCRIPTION="Keyboard-driven, vim-like browser based on Python and Qt" -HOMEPAGE="https://www.qutebrowser.org/" +HOMEPAGE="https://qutebrowser.org/" LICENSE="GPL-3+" SLOT="0" @@ -70,7 +75,12 @@ BDEPEND=" ) ') " -[[ ${PV} == 9999 ]] && BDEPEND+=" app-text/asciidoc" + +if [[ ${PV} == 9999 ]]; then + BDEPEND+=" app-text/asciidoc" +else + BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-qutebrowser )" +fi distutils_enable_tests pytest @@ -105,14 +115,19 @@ src_prepare() { "${EPYTHON}" scripts/asciidoc2html.py || die fi - # disable tests/plugins that are unncessary for us and need extras - sed -e '/pytest-benchmark/d' -e 's/--benchmark[^ ]*//' \ - -e '/pytest-instafail/d' -e 's/--instafail//' \ - -i pytest.ini || die - if [[ ${PV} == 9999 ]]; then - rm tests/unit/scripts/test_run_vulture.py || die - else - rm tests/unit/scripts/test_problemmatchers.py || die + if use test; then + # unnecessary here, and would require extra deps + sed -e '/pytest-benchmark/d' -e 's/--benchmark[^ ]*//' \ + -e '/pytest-instafail/d' -e 's/--instafail//' \ + -i pytest.ini || die + + if [[ ${PV} == 9999 ]]; then + # likewise, needs vulture + rm tests/unit/scripts/test_run_vulture.py || die + else + # https://github.com/qutebrowser/qutebrowser/issues/7620 + rm tests/unit/scripts/test_problemmatchers.py || die + fi fi } @@ -122,14 +137,15 @@ python_test() { local EPYTEST_DESELECT=( # end2end/IPC tests are broken with "Name error" if socket path is over # ~108 characters (>124 in /var/tmp/portage) due to Linux limitations, - # skip rather than bother using /tmp+cleanup over ${T} + # skip rather than bother using /tmp+cleanup over ${T} (end2end tests + # are important, but the other tests should be enough for downstream) tests/end2end tests/unit/misc/test_ipc.py # python eclasses provide a fake "failing" python2 and trips this test tests/unit/misc/test_checkpyver.py::test_old_python # not worth running dbus over tests/unit/browser/test_notification.py::TestDBus - # fails in ebuild, seems due to saving fake downloads in wrong location + # fails in ebuild, seems due to saving fake downloads in the wrong location tests/unit/browser/webengine/test_webenginedownloads.py::TestDataUrlWorkaround # may fail if environment is very large (bug #819393) tests/unit/commands/test_userscripts.py::test_custom_env\[_POSIXUserscriptRunner\] @@ -190,6 +206,5 @@ pkg_postinst() { ewarn "USE=qt6 is disabled, be warned that Qt5's WebEngine uses an older" ewarn "chromium version. While it is relatively maintained for security, it will" ewarn "cause issues for sites/features designed with a newer version in mind." - ewarn "When Qt6 support is stable enough, ebuild's Qt5 support may get removed." fi } |